OneinStack常用的服务管理命令汇总

VPS新手教程OneinStack常用的服务管理命令汇总已关闭评论阅读模式

前面的文章里讲过搬瓦工VPS安装OneinStack,在实际使用过程中,有时候需要重启某一项的服务,当然最省事的就是直接reboot的VPS,但是有点儿太简单粗暴了,所以这里就把各个服务常用的管理命令整理汇总一下。

1、Nginx管理命令。

查看Nginx状态:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service nginx status

重启Nginx命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service nginx restart

停止Nginx命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service nginx stop

2、PHP管理命令

查看PHP状态:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service php-fpm status

重启PHP命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service php-fpm restart

停止PHP命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service php-fpm stop

3、MySQL管理命令。

查看MySQL状态:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service mysqld status

重启MySQL命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service mysqld restart

停止MySQL命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

service mysqld stop

4、OneinStack常用命令

OneinStack升级命令:文章源自搬瓦工-https://www.bwhcn.com/3064.html

~/oneinstack/upgrade.sh

OneinStack卸载命令:

~/oneinstack/uninstall.sh

更多的使用命令可以去官方网站查看:https://oneinstack.com/install/

 
  • 本文由 admin 发表于 2022年6月27日 23:44:19
  • 转载请务必保留本文链接:https://www.bwhcn.com/3064.html