LNMP状态管理命令:
LNMP 1.2+状态管理:lnmp {start|stop|reload|restart|kill|status}
LNMP 1.2+各个程序状态管理:lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status}
LNMP 1.1状态管理:/root/lnmp {start|stop|reload|restart|kill|status}
Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}
MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
PHP-FPM状态管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
PureFTPd状态管理:/etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理:/etc/init.d/proftpd {start|stop|restart|reload}
Redis状态管理:/etc/init.d/redis {start|stop|restart|kill}
虚拟主机命令
添加网站(虚拟主机):lnmp vhost add
列出网站(虚拟主机):lnmp vhost list
删除网站(虚拟主机):lnmp vhost del
配置文件地址
LNMP默认网站配置文件:/usr/local/nginx/conf/nginx.conf
LNMP其他网站配置文件:/usr/local/nginx/conf/vhost/xxx.conf
数据库命令
添加数据库命令:lnmp database add
编辑数据库用户密码命令:lnmp database edit
删除数据库命令:lnmp database del
列出所有数据库命令:lnmp database list
删除虚拟主机根目录的.user.in
chattr -i .user.ini
rm -rf .user.ini