in a devstack Openstack env, how to start a service, such as aodh-listener
2016-05-18 15:11
239 查看
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
root@localhost: ~ # screen
if appear the following question, it indicate that the current user is nested in other user, ple exit this user.
stack@localhost:~$ screen
Cannot open your terminal '/dev/pts/1' - please check.
after enter a new screen, swtich to the right user, and run the command:
stack@localhost: ~$ /usr/bin/python /usr/local/bin/aodh-listener --config-file /etc/aodh/aodh.conf
exit the screen:
Ctrl+a, d
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
root@localhost: ~ # screen
if appear the following question, it indicate that the current user is nested in other user, ple exit this user.
stack@localhost:~$ screen
Cannot open your terminal '/dev/pts/1' - please check.
after enter a new screen, swtich to the right user, and run the command:
stack@localhost: ~$ /usr/bin/python /usr/local/bin/aodh-listener --config-file /etc/aodh/aodh.conf
exit the screen:
Ctrl+a, d
相关文章推荐
- MKMapItem openMapsWithItems调用系统的导航
- 【架构】微服务系列文章
- Linux基本命令
- [转]Linux下的Makefile
- Nginx简要安装配置方法图文教程
- 玩转 Linux 之:磁盘分区、挂载知多少?
- zabbix监控tomcat主机,并自动部署新主机
- Linux 查看系统硬件信息(实例详解)
- linux下生成bmp图片的测试程序
- 远程访问本地的网站 网站样式加载不上
- Centos Bind 配置 域名 MX记录
- 在Tomcat中部署war
- 架构Android ...最清晰的方式是?
- linux--shell--字符串操作
- echop二次开发——电子票
- linux基础学习笔记-3-shell变量
- PopupWindow
- Maven 集成Tomcat插件自动发布项目到tomcat的webapps目录下
- 开发天气预报 各网站的接口和实例
- linux iostat详解