Nginx
文章平均质量分 70
Kiro君
out of the black
展开
-
Nginx+Tomcat实现负载均衡、动静分离集群部署
Nginx+Tomcat负载均衡原创 2022-06-06 08:18:45 · 551 阅读 · 1 评论 -
Nginx 重写功能(location / rewrite)
Nginx 重写功能一、Nginx常见模块二、访问路由location2.1 location常用正则表达式2.2location的分类2.3location 常用的匹配规则2.4location优先级排列说明2.5 location实例2.6location 优先级总结2.7实例2.7.1location = / {} 与 location / {}2.7.2 location = /index.html {} 与 location / {}2.7.3location = /1.jpg {} 和 loca原创 2022-05-28 10:40:53 · 2810 阅读 · 0 评论 -
Nginx优化与防盗链
Nginx优化与防盗链一、隐藏nginx版本号1.1查看版本号1.2隐藏版本信息二、修改用户与组三、缓存时间四、日志分割五、连接超时六、更改进程数七、配置网页压缩八、配置防盗链8.1 网页准备8.2 配置防盗链【扩充】一、隐藏nginx版本号1.1查看版本号方法一:curl命令可以在 CentOS 中使用命令 curl -I http://192.168.59.118 显示响应报文首部信息。curl -I http://192.168.59.118方法二:在网页中查看1. #切换至htm原创 2022-05-26 15:25:59 · 182 阅读 · 0 评论 -
LNMP的安装部署
一、安装Nginx服务准备工作:关闭防火墙和安全机制systemctl stop firewalldsystemctl disable firewalld setenforce 01、安装依赖包yum -y install pcre-devel zlib-devel gcc gcc-c++ make2、创建运行用户(Nginx 服务程序默认以 nobody 身份运行,建议为其创建专门的用户账号,以便更准确地控制其访问权限)useradd -M -s /sbin/nologin n原创 2022-05-24 14:28:07 · 149 阅读 · 0 评论 -
Nginx网站服务
Nginx网站服务原创 2022-05-23 22:46:52 · 179 阅读 · 0 评论