Linux宝塔面板服务管理相关命令

2023-06-29 17:01:54 649

Nginx服务管理:

nginx安装目录:/www/server/nginx

启动:/etc/init.d/nginx start

停止:/etc/init.d/nginx stop

:/etc/init.d/nginx restart

重载:/etc/init.d/nginx reload

nginx配置文件:/www/server/nginx/conf/nginx.conf

 

Apache服务管理:

apache安装目录:/www/server/httpd

启动:/etc/init.d/httpd start

停止:/etc/init.d/httpd stop

重载:/etc/init.d/httpd reload

apache配置文件:/www/server/apache/conf/httpd.conf

 

MySQL服务管理:

mysql安装目录:/www/server/mysql

phpmyadmin安装目录:/www/server/phpmyadmin

数据存储目录:/www/server/data

启动:/etc/init.d/mysqld start

停止:/etc/init.d/mysqld stop

重启:/etc/init.d/mysqld restart

重载:/etc/init.d/mysqld reload

mysql配置文件:/etc/my.cnf

 

PHP服务管理:

php安装目录:/www/server/php

启动:/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start

停止:/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop

重启:/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart

重载:/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload

配置文件:/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini

(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54 start)

 

 

Redis服务管理:

redis安装目录:/www/server/redis

启动:/etc/init.d/redis start

停止:/etc/init.d/redis start

redis配置文件:/www/server/redis/redis.conf


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: