Nginx:
- 查看端口:netstat -ntpl;
- 结束监听:kill (number)
- 启动nginx服务:sudo service nginx start
- 停止nginx服务:sudo service nginx stop
- 重启nginx服务:service nginx restart;systemctl restart nginx
- nginx访问日志的默认路径:/var/log/nginx
- nginx配置文件:/etc/nginx/nginx.conf
- nginx服务器默认目录:/usr/share/nginx/html
- nginx -t 测试配置文件语法,同时告诉配置文件位置
PHP
- 查看php所有软件包:rpm -qa|grep php