1. 登陆服务器
ssh root@47.107.55.130
mysql -h localhost -P 3306 -u root -proot
2. 服务器管理密码,8-30个字符,必须同时包含下面四项中的三项:
大写字母、小写字母、数字、和特殊字符,仅支持下列特殊字符 ( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /
3. ① LNMP默认位置
cd /home/wwwroot/default/
② 加载nginx配置
nginx -s reload
4. ① 从本地上传文件文件 or 文件夹到服务器 :
scp -r e:/head/* root@47.107.55.130:/head/
scp -r e:/head/ root@47.107.55.130:/ooxx/
② 从服务器下载文件 or 文件夹到本地
scp -r root@47.107.55.130:/head/* e:/head/
scp -r root@47.107.55.130:/ooxx/ e:/head/
5. 上传ssl证书文件
scp -r D:\desktop\cert\* root@47.107.55.130:/usr/local/nginx/conf/cert
6. ① 查找文件/文件名
find / -name "nginx/a.pem"
② 移动、重命名文件夹和文件
mv /usr/she/* /gyy/she/ mv /usr/she/ /gyy/
mv /usr/she/ /usr/he/
7. LNMP重启
service php-fpm restart
service mysql restart
service nginx restart
nginx -s reload