随笔分类 -  Nginx

摘要:如何修改nginx拦截所有请求指向一个固定页面 server { listen 8080; server_name localhost; location / { root html index index.html try_files $uri $uri/ /index.html; #try_fi 阅读全文
posted @ 2023-03-30 19:53 JOKI丶 阅读(10) 评论(0) 推荐(0) 编辑
摘要:普通启动服务:/usr/local/nginx/sbin/nginx 配置文件启动:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 暴力停止服务:/usr/local/nginx/sbin/nginx -s stop 优 阅读全文
posted @ 2023-03-28 11:47 JOKI丶 阅读(25) 评论(0) 推荐(0) 编辑
摘要:离线安装nginx 前提需要安装gcc 、c++、 pcre、zlib 、openssl和openssl-devel 安装gcc c++ 下载地址: https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/os/x86_64/Packages/ h 阅读全文
posted @ 2023-03-28 10:35 JOKI丶 阅读(127) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示