Linux-rhel6.4部署nginx
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,检查安装[root@kurolz ~]# rpm -qa pcre*pcre-devel-7.8-6.el6.x86_64pcre-7.8-6.el6.x86_64[root@kurolz ~]# r
千家信息网最后更新 2025年12月03日Linux-rhel6.4部署nginx
检查安装
[root@kurolz ~]# rpm -qa pcre*pcre-devel-7.8-6.el6.x86_64pcre-7.8-6.el6.x86_64[root@kurolz ~]# rpm -qa openssl*openssl-1.0.0-27.el6.x86_64
安装nginx
包下载地址:http://nginx.org/en/download.html
[root@kurolz ~]# tar -zxvf nginx-1.10.3.tar.gz[root@kurolz ~]# cd ngunx-1.10.3[root@kurolz ~]# ./configure./configure: error: the HTTP rewrite module requires the PCRE library.
报错,原因:没有安装pcre-devel
解决,挂载系统盘,找到rpm包安装:
[root@kurolz Packages]# ls pcre*pcre-7.8-6.el6.i686.rpm pcre-7.8-6.el6.x86_64.rpm pcre-devel-7.8-6.el6.i686.rpm pcre-devel-7.8-6.el6.x86_64.rpm[root@kurolz Packages]# rpm -ivh pcre-devel-7.8-6.el6.x86_64.rpm warning: pcre-devel-7.8-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYPreparing... ########################################### [100%] 1:pcre-devel ########################################### [100%]
重新安装成功:
[root@kurolz nginx-1.10.3]# ./configure checking for OS + Linux 2.6.32-358.el6.x86_64 x86_64checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) checking for gcc -pipe switch ... found...... nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"[root@kurolz nginx-1.10.3]# make[root@kurolz nginx-1.10.3]# make install
主页测试:
[root@kurolz ~]# cd /usr/local/nginx/html[root@kurolz html]# cat index.html
Welcome to nginx! Welcome to nginx!
If you see this page, the nginx web server is successfully installed andworking. Further configuration is required.
For online documentation and support please refer tonginx.org.
Commercial support is available atnginx.com.Thank you for using nginx.
出错,没有开启服务:
[root@kurolz html]# curl http://localhostcurl: (7) couldn't connect to host
开启服务测试成功:
[root@kurolz ~]# cd /usr/local/nginx/sbin[root@kurolz sbin]# curl http://localhostWelcome to nginx! Welcome to nginx!
If you see this page, the nginx web server is successfully installed andworking. Further configuration is required.
For online documentation and support please refer tonginx.org.
Commercial support is available atnginx.com.Thank you for using nginx.
成功
服务
测试
主页
原因
地址
系统
检查
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
第七章计算机网络技术及应用3
12306软件开发成本
网络安全知识竞赛活动策划案
互联网科技有限公司注册条件
网络安全知识计划
长宁区正规软件开发要多少钱
网络安全竞赛颁奖典礼致辞
对网络安全评估多久一次
统一软件开发过程 rup
宁波品牌网络技术市场价格
护苗 网络安全简讯
数据库编程经典语言
超威服务器管理口密码默认是多少
软件开发 pm 简历
陌生人交友直播软件开发
数据库一体机技术方案
软件开发用哪个软件
数据库支付管理表
db2展示所有数据库
太空狼人杀服务器已满怎么玩儿
软件开发销售人员工作计划
教师招聘网络技术基础考试卷
pop3sohu是什么服务器
北京志翔软件开发公司
一个稳定的服务器
贵州创新服务器单价
封剑神录服务器爆满
河南指尖跳动网络技术有限公司
互联网金融数字科技
迁安网络营销软件开发创造辉煌