使用远程服务器:
setuossh.exe;ssh软件
软件安装后需要修改随意文件
打开 cmd
账号 ssh root@'ip地址' //有端口号的话 +'-p 8080'
密码 盲输入 ,无法看到密码是否输入
nginx 服务器刷新页面 404的问题
找到/usr/local/nginx/conf/nginx.conf文件
修改
server {
listen 80;
server_name localhost;
#access_log logs/host.access.log main;
#服务器放置页面路径
root /usr/local/nginx/html
#页面刷新404
location / {
try_files $uri $uri/ /index.html;
}
#配置代理
location /v1/{
proxy_pass http://192.168.0.7:8080/;
}
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
命令 重启nginx
cd /usr/local/nginx/sbin
./nginx -s reload