使用 lsof 查看端口进程
1 | lsof -i:[端口] |
1 | bogon:nginx h5$ lsof -i:4000 |
杀掉端口进程
kill [pid]
1 | kill 3636 |
nginx配置基础
try_files 指令使用说明
1 | try_files指令 |
实例说明
1 | server { |
vue 相关设置
1.router 根路由设置 ‘my’
1 | export default new Router({ |
2.打包配置 publicPath
1 | module.exports = { |
3.nginx 对应配置
1 | server { |