修改/en目录及其子元素的所属组与所有者
chown -R www:www /en
修改data目录及其子元素的权限为777
chmod -R 777 /data
du -sh * 查看当前目录下的各文件及子目录的容量
查找php主进程
ps aux | grep php-fpm | grep master
平滑重启php-fpm
kill -USR2 上面查到的pid
平滑重启php-fpm方法二:(注意每个项目的php-fpm的pid文件位置都不一样哦,下面的路径需要改成自己的路径)
kill -USR2 `cat /xxx/php5.7/var/run/php-fpm-5.7.pid`
#同时创建多个文件
touch index1.html index2.html
#同时创建多个目录
mkdir {css,js,img}
netstat -ntlp //查看当前所有tcp端口
netstat -ntulp |grep 80 //查看所有80端口使用情况
netstat -an | grep 3306 //查看所有3306端口使用情况
netstat -lanp //查看一台服务器上面哪些服务及端口
ps -ef |grep mysqld //查看一个服务有几个端口。比如要查看mysqld
netstat -pnt |grep :3306 |wc //查看某一端口的连接数量,比如3306端口
netstat -anp |grep 3306 //查看某一端口的连接客户端IP 比如3306端口