Service Restart Method for the Wedora Cloud

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Service Restart Method for the Wedora Cloud相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

最新cenos执行service httpd restart 报错Failed to restart httpd.service: Unit not found.

$ service apache2 restart [失败]

为啥我会优先使用“service sshd reload”而不是“service sshd restart”?

The service command supports only basic LSB actions (start, stop, restart, try-restart, reload,force

Linux网络重启(service network restart)出现错误

阿里云报错Redirecting to /bin/systemctl restart sshd.service