in a devstack Openstack env, how to start a service, such as aodh-listener

in terminal, when start the service, the service will run in this terminal, and if kill this terminal or command, this service will be killed.

look up the other service, each service is running in a single pts. So should start a new pts and start this service.

# ps -ef| grep aodh

root 7373 11359 0 03:20 pts/1 00:00:00 grep --color=auto aodh
root 9403 9196 0 May11 pts/35 00:00:00 sudo tail -f /var/log/apache2/aodh.log
root 9408 9403 0 May11 pts/35 00:00:00 tail -f /var/log/apache2/aodh.log
root 9675 9471 0 May11 pts/36 00:00:00 sudo tail -f /var/log/apache2/aodh_access.log
root 9680 9675 0 May11 pts/36 00:02:18 tail -f /var/log/apache2/aodh_access.log
stack 10276 10068 0 May11 pts/37 00:01:55 /usr/bin/python /usr/local/bin/aodh-notifier --config-file /etc/aodh/aodh.conf
stack 26200 8818 0 May15 ? 00:06:27 (wsgi:aodh-api) -k start
stack 26201 8818 0 May15 ? 00:06:43 (wsgi:aodh-api) -k start

solution:

start a new screen

[email protected]: ~ # screen

if appear the following question, it indicate that the current user is nested in other user, ple exit this user.

[email protected]:~$ screen
Cannot open your terminal ‘/dev/pts/1‘ - please check.

after enter a new screen, swtich to the right user, and run the command:

[email protected]: ~$ /usr/bin/python /usr/local/bin/aodh-listener --config-file /etc/aodh/aodh.conf

exit the screen:

Ctrl+a, d

时间: 2024-10-06 04:09:51

in a devstack Openstack env, how to start a service, such as aodh-listener的相关文章

Ubuntu 14.04 - devstack + openstack +ceph统一存储

安装步骤 apt-get update  apt-get upgrade apt-get install git python-pip cd /opt/ git clone https://git.openstack.org/openstack-dev/devstack cd /opt/devstack ./tools/create-stack-user.sh    # 创建stack用户 vim local.conf   # 创建local.conf文件 [[local|localrc]] G

ubuntu18.04 devstack openstack stein部署

local.conf cat local.conf[[local|localrc]]# Define images to be automatically downloaded during the DevStack built process.DOWNLOAD_DEFAULT_IMAGES=FalseIMAGE_URLS="http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img" # use TrySta

Openstack组件部署 — Keystone Install & Create service entity and API endpoints

目录 目录 前文列表 Install and configure Prerequisites 先决条件 Create the database for identity service 生成一个随机数 Install and configure components Configure the Apache HTTP server Create the service entity and API endpoints Prerequisites 先决条件 Create the service e

安装配置openstack 中的 Open vSwitch (OVS) service

?          # yum install openstack-neutronopenstack-neutron-ml2 openstack-neutron- openvswitch Edit the/etc/neutron/plugins/ml2/ml2_conf.ini file and complete the fol-lowing actions: a. In the [ml2] section,enable the flat and generic routingencapsul

[Openstack]使用devstack自动化安装

os环境为: ubuntu14.04 安装步骤: 更新系统软件包: sudo apt-get dist-upgrade #出现无法访问到ubuntu官网的错误. 安装git: sudo apt-get install git 下载项目: git clone https://github.com/openstack-dev/devstack.git 切换命令: cd devstack 查看分支: git branch -a #可以切换到不同的版本 切分支: git checkout -b hava

devstack自动部署openstack之localrc文件及遇到的问题解决

做完前期准备后,在devstack目录下创建localrc文件,最好不要直接上传,然后将下面的内容贴进去即可,下面是我转载的,以下有出处,但是部署期间有几个问题,我也列出来了. # Misc DATABASE_PASSWORD=123456ADMIN_PASSWORD=123456SERVICE_PASSWORD=123456SERVICE_TOKEN=123456RABBIT_PASSWORD=123456 # Reclone each timeRECLONE=yes ## For Keyst

centos6.5上使用devstack部署openstack开发环境

一.环境准备 1.操作系统配置 关闭selinux,并重启系统. [[email protected] ~]# cat /etc/sysconfig/selinux SELINUX=disabled 2.安装所需的包 [[email protected] ~]# yum -y install vim git python-setuptools yum安装的pip包版本不对,安装时会出错,从网上下载pip源码包,源码安装pip包 pip源我们采用系统默认的源就好,安装pip源码 [[email p

devstack screen 详解

n my previous blog i discussed how to install devstack based openstack. Now if I need to restart individual services of openstack, in a typical openstack install I would restart the service of each component, example nova-network service, horizon etc

ubuntu 14.04安装 DevStack的脚本配置文件——localrc

本文ubuntu 14.04安装 DevStack的脚本配置文件——localrc,本文件名已经逐渐被取代,但是出于后向兼容性,使用该文件仍然可以为stack.sh安装脚本指定安装DevStack时的配置信息. 以下是localrc文件的一些常用配置及解释 # Misc DATABASE_PASSWORD=123456 ADMIN_PASSWORD=123456 SERVICE_PASSWORD=123456 SERVICE_TOKEN=123456 RABBIT_PASSWORD=123456