码迷,mamicode.com
首页 > 其他好文 > 详细

Service Restart Method for the Wedora Cloud

时间:2017-03-02 15:16:54      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:gre   nohup   mongodb   date   res   rtu   automatic   startup   png   

Supplement

Service Restart Method

Mysql

Stop:

#service mysqld stop

Start:

#service mysqld start

技术分享

mongo

Stop:

#ps -ef|grep mongo

#kill -9 {PID}

技术分享

 

Start:

#/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/mongodb.conf--auth

#ps -ef|grep mongo

技术分享

 

#tail -f /usr/local/mongodb/data/logs/mongodb.log

Msgbus

Restart:

#ps -ef|grep msbgus

技术分享

#kill -9 {PID}

#kill -9 {PID}

#cd /usr/local/wedora/msgbus

#ps -ef|grep msgbus

#nohup ./msgbus_start.sh 2> /dev/null 2>&1 &

技术分享

 

#tail -f /usr/local/wedora/msgbus/log/hd.log

 

 

 

Tomcat

Stop:

#ps -ef|grep tomcat7

#Kill -9 {PID}

技术分享

Start:

#cd /usr/local/wedora/tomcat7/bin/

View:

#ps -ef|grep tomcat

技术分享

Start:

#./startup.sh

#ps -ef|grep tomcat

技术分享

#cd/usr/local/wedora/tomcat7/logs

#tail -f /usr/local/wedora/tomcat7/logs/app.log

 

 

ibserver

Stop:

#ps -ef|grep ibserver

技术分享

#cd /usr/local/wedora/ibserver/

#./shutdown.sh

技术分享

#ps -ef|grep ibserver

 

技术分享( The PID is change from 31853 to 62702, i.e. ibserver service is restart)

 

Start:

#./startup.sh

 

技术分享

(Automatic input log information, by Ctrl+C to exit)

#ps -ef|grep ibserver

(The python ibserver.py service is started)

 

 

wmmp

Stop:

#ps –ef|grep wmmp

技术分享

#kill -9 {PID1} **(As show in figure, kill the 33895 script process)

#kiil -9 {PID2} **(Then kill the 33881 wmmp service)

#ps -ef|grep wmmp

技术分享

(The wmmp1_startup.sh and wmmp1 fep -n fep.wmmp1 processes don‘t exit, mean wmmp service is stopped)

Start:

#cd /usr/local/wedora/wmmp1/

#nohup ./wmmp1_startup.sh 2> /dev/null 2>&1 &

#ps -ef|grep wmmp

技术分享

(wmmp1_startup.sh(PID=55038) and wmmp1 fep -n fep.wmmp1(PID=55059) processes start, mean the wmmp service is started)

 

Log: (you can check the log to validate after the restart service)

#cd /usr/local/wedora/wmmp1/log/

#tail -f hd.log

技术分享

Service Restart Method for the Wedora Cloud

标签:gre   nohup   mongodb   date   res   rtu   automatic   startup   png   

原文地址:http://www.cnblogs.com/henrych/p/6490570.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!