Linux中Apahce与Tomcat的启动停止

Apahce基本的操作方法:
若apahce安装目录为/usr/local/apache2,进入bin目录

apahce启动命令:
./apachectl start 

apache停止命令:
./apachectl stop 

apache重启命令:
./apachectl restart

Tomcat基本的操作方法:

若Tomcat安装目录为 /server/apache-tomcat-7.0.54

Tomcat启动:进入安装bin目录 执行 ./startup.sh 
Tomcat关闭:查找进程:ps -ef|grep tomcat
                        关闭进程:kill -9 进程号

Tomcat日志查看:tail -f  /server/apache-tomcat-7.0.54/logs/catalina.out 


 

猜你喜欢

转载自blog.csdn.net/langzichanglu/article/details/81870672