使用notepad++来连接linux,好处是使用notepad++来编辑linux中文件的批量文字,会比直接在linux中操作方便快捷很多.
1.Notepad 插件中安装NppFTP

2.打开NppFTP

3.选择设置

4.配置连接信息

5.连接

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

sbin/nginx -s reload
http://192.168.52.100 访问第一个server
http://192.168.52.100:81/ 访问第二个server