windows cmd登录服务器/ linux语句

2 篇文章 0 订阅
1 篇文章 0 订阅

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值