Linux常用命令 持续更新

定时任务

crontab -e -u www

检查nginx

nginx -t

部署路径

/usr/local/nginx/conf/vhost

Nginx进程查看

ps -ef|grep nginx

重启进程

kill -HUP 进程

Yum安装

web:https://www.cnblogs.com/areyouready/p/8909665.html
yum -y install wget

安装LNMP稳定版

web:https://lnmp.org/install.html
wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7 && ./install.sh lnmp

mysql linux查看配置文件my.cnf位置

mysql --help | grep ‘Default options’ -A 1

Vim显示行号

set number/set nonumber

猜你喜欢

转载自blog.csdn.net/weixin_43784997/article/details/115292890