随笔分类 -  Ngnix

Nginx 服务器重启命令,关闭
摘要:nginx -s reload :修改配置后重新加载生效 nginx -s reopen :重新打开日志文件nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确关闭nginx:nginx -s stop :快速停止nginx quit :完整有序的停止ngi 阅读全文
posted @ 2017-03-23 17:32 Isuty 阅读(330) 评论(0) 推荐(0)
Nginx启动报错: could not open error log file: open() &q
摘要:启动nginx报如下错误: nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13:Permission denied) 2014/08/04 20:35:45 阅读全文
posted @ 2016-11-28 14:26 Isuty 阅读(20122) 评论(1) 推荐(0)
Ngnix反向代理react-router配置问题解决方法
摘要:项目以react router实现,用ngnix做反向代理的时候出现404找不到页面,有两种解决方法。 第一种 将<Route path="*" component={NotFound} />对应的component改为<IndexRoute>对应的component,如下: const Route 阅读全文
posted @ 2016-11-15 17:11 Isuty 阅读(607) 评论(0) 推荐(0)