너 바보 아니야

LNMP一键安装包常用命令及配置文件路径

2017-12-06

LNMP常用命令

状态管理LNMP状态管理:

lnmp [start|stop|reload|restart|kill|status]

Nginx状态管理:

/etc/init.d/nginx [start|stop|reload|restart]

PHP-FPM状态管理:

/etc/init.d/php-fpm [start|stop|quit|restart|reload|logrotate]

MySQL状态管理:

/etc/init.d/mysql [start|stop|restart|reload|force-reload|status]

Apache状态管理:

/etc/init.d/httpd [start|stop|restart|graceful|graceful-stop|configtest|status]

配置文件路径

MySQL目录:

/usr/local/mysql/

MySQL配置文件:

/etc/my.cnf


PHP目录:

/usr/local/php/

PHP配置文件:

/usr/local/php/etc/php.ini


网站目录:

/home/wwwroot/default/

Nginx配置文件:

/usr/local/nginx/conf/nginx.conf

Nginx日志目录:

/home/wwwlogs/

Nginx虚拟主机配置文件:

/usr/local/nginx/conf/vhost/域名.conf

常用Linux命令:

  • top
  • df -m[k]
  • find / -type f -size +1G
  • [> filename]

Notice

如若需要,请戳 [ About ] 下联系我 欢迎联系.ok,enjoy it !

标签: lnmp
使用支付宝打赏
使用微信打赏

欢迎点击上方按钮对我打赏,谢谢你给我吃糖果