Nginx服務(wù)管理:
nginx安裝目錄:/www/server/nginx
啟動(dòng):/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服務(wù)管理:
apache安裝目錄:/www/server/httpd
啟動(dòng):/etc/init.d/httpd start
停止:/etc/init.d/httpd stop
重載:/etc/init.d/httpd reload
apache配置文件:/www/server/apache/conf/httpd.conf
MySQL服務(wù)管理:
mysql安裝目錄:/www/server/mysql
phpmyadmin安裝目錄:/www/server/phpmyadmin
數(shù)據(jù)存儲(chǔ)目錄:/www/server/data
啟動(dòng):/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服務(wù)管理:
php安裝目錄:/www/server/php
啟動(dòng):/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
(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 start)
Redis服務(wù)管理:
redis安裝目錄:/www/server/redis
啟動(dòng):/etc/init.d/redis start
停止:/etc/init.d/redis start
redis配置文件:/www/server/redis/redis.conf