记录一下LNMP状态管理命令汇总,方便新手查询

简介

做为记录贴来记录需要经常会用到的命令,省却了大家去查询的时间,这里记录一下LNMP状态管理的命令

 

- QQ%E5%9B%BE%E7%89%8720230429105840

 

LNMP命令

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}

多PHP版本状态管理:/etc/init.d/php-fpm5.5 {start|stop|quit|restart|reload|logrotate} 前面5.5为对应的PHP版本,其他版本自行替换。

如重启LNMP,1.2+输入命令:lnmp restart 即可;单独重启mysql:/etc/init.d/mysql restart 也可以 lnmp mysql restart ,两个是一样的。

 

LNMPA状态管理命令:

LNMPA 1.2+状态管理: lnmp {start|stop|reload|restart|kill|status}
LNMPA 1.2+各个程序状态管理: lnmp {httpd|mysql|mariadb|pureftpd} {start|stop|reload|restart|kill|status}
LNMPA1.1状态管理: /root/lnmpa {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}
PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
ProFTPd状态管理: /etc/init.d/proftpd {start|stop|restart|reload}
Apache状态管理:/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}

 

LAMP状态管理命令:

LAMP 1.2+状态管理: lnmp {start|stop|reload|restart|kill|status}
LAMP 1.2+各个程序状态管理: lnmp {httpd|mysql|mariadb|pureftpd} {start|stop|reload|restart|kill|status}
上一篇 Linux修改Mysql默认3306端口教程
下一篇 cubecloud:#五一假期特惠#全场88折,香港CN2 GIA(原生IP),美国CN2 GIA

投稿邮箱:
ivpsr888@gmail.com (投稿详情)

TG订阅频道:
t.me/ivpsr_news 网站最新内容推送

TG交流群:
(点击加入) 用户交流

文章列表
1
解决CentOS/RHEL 7中,Yum命令失败并显示“另一个应用程序当前持有 yum锁定”的教程
解决CentOS/RHEL 7中,Yum命令失败并显示“另一个应用程序当前持有 yum锁定”的教程
2
raksmart美国CN2+CMIN2独立服务器$116/月起,30M独享带宽不限流量
raksmart美国CN2+CMIN2独立服务器$116/月起,30M独享带宽不限流量
3
列出v2ray伪装TLS常见的http和https的端口
列出v2ray伪装TLS常见的http和https的端口
4
linux系统一键式部署Guacamole可浏览器网页访问的vnc/rdp桌面环境
linux系统一键式部署Guacamole可浏览器网页访问的vnc/rdp桌面环境
5
linode日本大阪ntt线路深度测评,linode实测数据告诉你它到底如何?
linode日本大阪ntt线路深度测评,linode实测数据告诉你它到底如何?
6
Thaihosting泰国原生VPS简单测评,让你看看怎么样,可解锁泰国Netflix
Thaihosting泰国原生VPS简单测评,让你看看怎么样,可解锁泰国Netflix
7
CloudCone云服务器详细测评,用真实数据告诉你CloudCone云服务器怎么样
CloudCone云服务器详细测评,用真实数据告诉你CloudCone云服务器怎么样
8
raksmart暑期特惠服务器及站群,可选香港、美国、日本机房、网络可选国际、大陆优化、精品CN2
raksmart暑期特惠服务器及站群,可选香港、美国、日本机房、网络可选国际、大陆优化、精品CN2
9
Maple-Hosting荷兰高防抗投诉服务器优惠上线,10Gbps大带宽不限流量 $189/月起
Maple-Hosting荷兰高防抗投诉服务器优惠上线,10Gbps大带宽不限流量 $189/月起
10
hostdare:#女神节特惠#,美国VPS KVM 6.8折优惠,电信CN2 GIA/联通/移动直连,200Mbps带宽
hostdare:#女神节特惠#,美国VPS KVM 6.8折优惠,电信CN2 GIA/联通/移动直连,200Mbps带宽