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状态管理:  {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}
Redis状态管理: /etc/init.d/redis {start|stop|restart|kill}

ftp账号增加:lnmp ftp add

网站(虚拟主机):lnmp vhost  {list(列出)、del(删除)、add增加}

##默认网站(虚拟主机)##

LNMP默认网站配置文件:/usr/local/nginx/conf/nginx.conf
LNMPA默认网站配置文件:/usr/local/nginx/conf/nginx.conf 和 /usr/local/apache/conf/extra/httpd-vhosts.conf
LAMP默认网站配置文件:/usr/local/apache/conf/extra/httpd-vhosts.conf

数据库管理

添加数据库命令:lnmp database add
编辑数据库用户密码命令:lnmp database edit
删除数据库命令:lnmp database del
列出所有数据库命令:lnmp database list

ftp管理和数据库管理一样

vi命令:

:wq!强制保存和退出

原文地址:https://www.cnblogs.com/tangbomao/p/6779132.html