linux常用命令
1,文件拷贝:
服务器之间拷贝:
#scp abc.zip root@168.1.1.1:/var/www/html -P 22 (注意:P是大写)
2,压缩解压缩:
解压缩: unzip harris.zip
压缩文件: zip harris.zip harris.php
压缩文件夹:zip -r harris.zip harris
3,查看当前httpd连接数:#pgrep httpd|wc -l 或 ps aux | grep httpd | wc -l
实时检测HTTPD连接数:watch -n 1 -d "pgrep httpd|wc -l"
4,查看目录文件的大小:# ls -lh
其他总结:
1,查看域名指向的ip:nslookup www.baidu.com
2,phpMyAdmin文件夹在linux的权限不能是777,会报文件配置写入错误,需要将其附755权限