使用notepad++来连接linux,好处是使用notepad++来编辑linux中文件的批量文字,会比直接在linux中操作方便快捷很多.
1.Notepad 插件中安装NppFTP
![](https://i-blog.csdnimg.cn/blog_migrate/3a174ac1e5a877be4cc47c917f2bd83a.png)
2.打开NppFTP
![](https://i-blog.csdnimg.cn/blog_migrate/e44ddbb3e5cc41eafb69fe275e8c2ac8.png)
3.选择设置
![](https://i-blog.csdnimg.cn/blog_migrate/be0ad265531276db4b7c8de3b07e0a7a.png)
4.配置连接信息
![](https://i-blog.csdnimg.cn/blog_migrate/e4ba021b5dacd5d4e5150f957b1ae551.png)
5.连接
![](https://i-blog.csdnimg.cn/blog_migrate/db469d8eb41a6d895793adbca483e27b.png)
6.配置nginx.conf
- 使用Notpad 在nginx.conf 中添加一个 新的server
http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; location / { root html; index index.html index.htm; } } # 配置新的server server { listen 81; # 修改端口 server_name localhost; location / { root html81; # 重新制定一个目录 index index.html index.htm; } } } |
cp -r html html81
![](https://i-blog.csdnimg.cn/blog_migrate/2eb30e4f6f9922aadb4f39f4e6ee207b.png)
sbin/nginx -s reload
http://192.168.52.100 访问第一个server
http://192.168.52.100:81/ 访问第二个server