检查安装
[root@kurolz ~] #, rpm -qa pcre * pcre -猛击- 7.8 - 6. - el6.x86_64 pcre el6.x86_64——7.8 - 6. (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:,,错误:,,HTTP rewrite module requires 从而PCRE 图书馆。
报错,原因:没有安装pcre-devel
解决,挂载系统盘,找到rpm包安装:
[root@kurolz 包]#,ls pcre * pcre - 7.8 - 6. - el6.i686.rpm , pcre - 7.8 - 6. - el6.x86_64.rpm , pcre -猛击- 7.8 - 6. - el6.i686.rpm , pcre -猛击- 7.8 - 6. - el6.x86_64.rpm (root@kurolz 包)#,rpm -ivh pcre -猛击- 7.8 - 6. - el6.x86_64.rpm 警告:,pcre -猛击- 7.8 - 6. - el6.x86_64.rpm:, Header V3 RSA/SHA256 签名,,key ID fd431d51: NOKEY 准备……,,,,,,,,,,,,,,,,# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #,(100%) ,,1:pcre-devel ,,,,,,,,,,,, # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #, [100%]
重新安装成功:
[root@kurolz nginx-1.10.3] #,。/configure checking for 操作系统 ,+ Linux 2.6.32-358.el6.x86_64  x86_64 checking for  C compiler …发现 ,+ using GNU  C 编译器 ,+ gcc 版本:,4.4.7 20120313, (Red Hat  4.4.7-3), (GCC), checking for  gcc -pipe  switch ……,发现 …… nginx 才能http client  request body temporary 文件:,“client_body_temp” nginx 才能http proxy  temporary 文件:,“proxy_temp” nginx 才能http fastcgi  temporary 文件:,“fastcgi_temp” nginx 才能http uwsgi  temporary 文件:,“uwsgi_temp” nginx 才能http scgi  temporary 文件:,“scgi_temp” [root@kurolz nginx-1.10.3] #, [root@kurolz nginx-1.10.3] #, make 安装
主页测试:
[root@kurolz ~] #, cd /usr/地方/nginx/html [root@kurolz html] #, cat 指数。html
灵活;br/比; Commercial support  is available & lt; a  href=" http://nginx.com/"祝辞nginx.com灵活;/p> & lt; p> & lt; em> Thank 你for using nginx。;/em> & lt;/p> & lt;/body> & lt;/html>
出错,没有开启服务:
[html] root@kurolz #, curl http://localhost curl:,(7),也't connect 用主机
开启服务测试成功:
[root@kurolz ~] #, cd /usr/地方/nginx/sbin [root@kurolz sbin] #, curl http://localhost & lt; ! DOCTYPE html> & lt; html> & lt; head> & lt; title> Welcome 用nginx ! & lt;/title> & lt; style> ,,,body { ,,,,,,,宽度:,35 em; ,,,,,,,保证金:,0,汽车; ,,,,,,,字体类型:,大河马字体,,Verdana,, Arial,,无衬线; ,,,} & lt;/style> & lt;/head> & lt; body> & lt; h2> Welcome 用nginx ! & lt;/h2> & lt; p> If 你阅读却;能够页面,从而nginx web server is successfully installed 工作只Further configuration  is 需要灵活;/p> null null null null null null nullLinux-rhel6.4部署nginx