重启nginx: service nginx restart
配置文件修改重装载命令:nginx -s reload
监听:ps -ef|grep nginx
查看端口是否成功启动:netstat anp|grep 端口号
查看进程:losf -i :端口号
重命名:mv 名字 重命名
编辑:vim 文件(ESC:q! 不保存,退出、 ESC:wq保存,退出)
赋权限:chmod 777 /tmp/wxnewtest (把wxnewtest赋较高权限)
查看内容空间:df -h(h方便阅读方式显示)
进入根目录:cd /
复制文件夹: cp -r 文件夹名字 位置
查找某个文件:
1.whereis tomact(查找tomact)
2.find -name tomact(应该先进入根目录,然后会进行全局查找)
3.find /usr/ -name tomact (/usr是你已知的目录)
打包命令:tar -zcvf t_apprp_web.tar.gz /srv/www/app/t_appro_web (当前的文件目录) //t_apprp_web.tar.gz压缩后的文件名
解压:
1.tar -xvzf文件名
忽略某个文件夹 --exclude =
tar_crzf t_apprp_web.tar.giz t_appro_web(当前的文件目录) --exclude = (忽略的目录)
2.unzip 文件名