nginx
小小菜菜程序员
这个作者很懒,什么都没留下…
展开
-
nginx 配置dist 加上跨域配置
server { listen 3010; server_name localhost; location / { root /usr/s_sinux_project/dist;#你的dist目录 index index.html index.htm; try_files $uri $uri/ /index.html; } loca..原创 2022-04-27 16:25:02 · 1930 阅读 · 0 评论 -
centos7 Failed to start nginx.service:unit not found
Failed to start nginx.service:unit not found1.在/etc/init.d下新建nginx文件2.插入代码3.进入目录/etc/init.d4.添加权限5.添加config配置6.开启nginx 1.在/etc/init.d下新建nginx文件 vim /etc/init.d/nginx 2.插入代码 #!/bin/sh # nginx - this script starts and stops the nginx daemin # # chkconfig:原创 2022-04-27 15:08:52 · 2115 阅读 · 0 评论