Common command records under centos (continuously updated)

 1. Basics

pwd current directory

ps -ef|grep php view process


2. Firewall

firewall-cmd --zone=public --add-port=6379/tcp --permanent
firewall-cmd --reload

firewall-cmd --list-ports

3.nginx

 nginx -t 

nginx -s reload

4.php

php -i|grep .ini View configuration


5. Quickly find various configuration file paths

1. Direct-t test 

php-fpm -t


2.ps -ef | grep php-fpm

root       832     1  0 Apr20 ?        00:00:11 php-fpm: master process (/etc/php-fpm.conf)



6. php-fpm restart

pkill php-fpm

php-fpm -R






Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325954704&siteId=291194637