简单说明一下lnmp一键安装后常用到的目录和命令
软件安装目录
- /usr/local/mysql/
- /usr/local/php/
- /usr/local/nginx/
数据存储目录
- /data/mysql
- /data/wwwlogs
- /data/wwwroot/
常用命令
- #nginx
- vim /usr/local/nginx/conf/nginx.conf #编辑nginx主配置文件
- vim /usr/local/nginx/conf/vhost/example.conf #编辑虚拟主机(域名)配置文件
- nginx -t #检测nginx配置文件是否正确
- service nginx start
- service nginx stop
- service nginx reload
- #php
- vim /usr/local/php/etc/php.ini #php.ini配置文件
- vim /usr/local/php/etc/php-fpm.conf #php-fpm.conf配置文件
- service php-fpm start
- service php-fpm stop
- service php-fpm reload
- #mysql
- service mysql start
- service mysql stop
- service mysql reload
- #iptables操作
- vim /etc/sysconfig/iptables #编辑iptables配置
- service iptables reload #重载iptables配置