配置文件地址:
Apache: /etc/httpd/conf/httpd.conf
tomcat: /usr/local/tomcat/conf/server.xml
Nginx : /usr/local/nginx/conf/nginx.conf
开机启动文件:/etc/rc.d/rc.local
启动方式:
Apache: service httpd start 启动
service httpd restart 重新启动
service httpd stop 停止服务
tomcat: 启动./usr/local/tomcat/startup.sh
关闭./usr/local/tomcat/shutdown.sh
Nginx : 启动./usr/local/nginx/sbin/nginx
关闭./usr/local/nginx/sbin/nginx -s stop
查看进程端口:
netstat -tunlp
ps -aux|grep httpd
关闭进程:
ps -ef 获得PID kill –pid 杀死进程
kill -l PID 已注销的方式结束进程
killall httpd 杀死同一进程组内的所有进程
kill -TERM PPID 杀死进程和它的子进程。
kill -HUP PID 停止和重启进程