View Tomcat under linux state, and open stop service command

1. First, enter your tomcat's bin directory

cd / your installation directory / tomcat / bin

View service starts circumstances

ps -ef | grep java This command specific meaning ps: will be shown a process

-A display all programs.

-e effect and specify this parameter "A" of the same parameters.

-f display UID, PPIP, C and STIME field.

grep command is to find

 

 

Before starting the service, turn off the service

./shutdown.sh

Close unsuccessful, it can be used. kill the process kill -9 7010 7010. Note that 7010 is the id of the current process of tomcat

 

Start Service:
./startup.sh // direct start

 

nohup ./startup.sh & // started as a service

./catalina.sh run // console output dynamic way to start, dynamic display tomcat console output, Ctrl + c to exit and stop services

 

Tomcat under linux live view operation logs

cd .. // go back one level

cd tomcat / logs // switch directories.

tail -f catalina.out // view the log, the same Ctrl + c to exit

Guess you like

Origin www.cnblogs.com/xuxiaobai13/p/11846737.html