Service Restart Method for the Wedora Cloud

Supplement

Service Restart Method

Mysql

Stop:

#service mysqld stop

Start:

#service mysqld start

Service Restart Method for the Wedora Cloud

mongo

Stop:

#ps -ef|grep mongo

#kill -9 {PID}

Service Restart Method for the Wedora Cloud

 

Start:

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

#ps -ef|grep mongo

Service Restart Method for the Wedora Cloud

 

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

//#whereis mongodb.log

//#find / -name mongodb.log

Msgbus

Restart:

#ps -ef|grep msbgus

Service Restart Method for the Wedora Cloud

#kill -9 {PID}

#kill -9 {PID}

#cd /usr/local/wedora/msgbus

#ps -ef|grep msgbus

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

Service Restart Method for the Wedora Cloud

 

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

 

 

 

Tomcat

Stop:

#ps -ef|grep tomcat7

#Kill -9 {PID}

Service Restart Method for the Wedora Cloud

Start:

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

View:

#ps -ef|grep tomcat

Service Restart Method for the Wedora Cloud

Start:

#./startup.sh

#ps -ef|grep tomcat

Service Restart Method for the Wedora Cloud

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

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

//or #tail -f /usr/local/wedora/tomcat7/webapps/wedora/logs/app.log
//# find / -name app.log

 

 

ibserver

Stop:

#ps -ef|grep ibserver

Service Restart Method for the Wedora Cloud

#cd /usr/local/wedora/ibserver/

#./shutdown.sh

Service Restart Method for the Wedora Cloud

#ps -ef|grep ibserver

 

Service Restart Method for the Wedora Cloud( The PID is change from 31853 to 62702, i.e. ibserver service is restart)

 

Start:

#./startup.sh

 

Service Restart Method for the Wedora Cloud

(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

Service Restart Method for the Wedora Cloud

#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

Service Restart Method for the Wedora Cloud

(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

Service Restart Method for the Wedora Cloud

(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