![](https://img-blog.csdnimg.cn/20191007093039887.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
nginx
Charli๑
文艺程序猿一枝。
展开
-
Linux使用Nginx日志分析工具 - ngxtop
Linux使用Nginx日志分析工具 - ngxtop安装最近需要分析下接口的请求次数来做优化。选了半天选到一个感觉挺好用的,共享一下~Ngxtop - 传送地址首先得安装pipyum -y install python-pip然后使用pip安装ngxtoppip install ngxtop然后直接使用ngxtop就可以看到nginx得访问记录啦使用ngxtop或者可以指定nginx配置文件路径ngxtop -c /etc/nginx/nginx.conf常用命令访问原创 2020-11-17 09:56:30 · 398 阅读 · 0 评论 -
Nginx解决前端跨域问题
记一次使用nginx解决跨域问题的配置server{ listen 80; server_name xxx.xxx.com; location /ok { proxy_pass http://xxx.xx.xx:3000; # 指定允许跨域的方法,*代表所有 add_header Access-Control-A...原创 2019-10-16 16:24:39 · 430 阅读 · 0 评论 -
nginx 404解决
最近在公司配置https代理本地Java项目是老是访问404原配置: location /wss { proxy_pass http://127.0.0.1:10826; # tomcat服务器地址 proxy_set_header Host $host; proxy_set_hea...原创 2018-12-18 13:53:24 · 7567 阅读 · 3 评论 -
nginx语法高亮
nginx.vim下载地址mkdir -p ~/.vim/syntaxmv nginx.vim ~/.vim/syntax/vi ~/.vim/filetype.vim添加au BufRead,BufNewFile /app/software/nginx/conf/* set ft=nginx原创 2019-01-03 16:51:54 · 231 阅读 · 0 评论 -
Vue项目部署到非根目录
最近遇到一个需要把项目部署到公司的域名80端口下的子目录https://xxx.xxx.com/idolweb搞了半天终于成功,特此记录下,共勉。首先vue项目相关需要更改的地方首先是config目录下的index.js assetsPublicPath: '/',修改为 assetsPublicPath: '/idolweb/'注意:是 buil...原创 2019-01-04 17:29:45 · 3248 阅读 · 1 评论