centos6.4安装docker怎么安装nignx

当前访客身份:游客 [
当前位置:
centos6是最小安装的,看提示是缺少 PCRE,
但是 rpm -qa pcre显示有安装 pcre-7.8-3.1.el6.x86_64 这个问题谁能帮忙看下,先谢谢了!
[root nginx-1.0.11]# ./configure --prefix=/opt/nginx
checking for OS
&+ Linux 2.6.32-71.el6.x86_64 x86_64
checking for C compiler ... found
&+ using GNU C compiler
&+ gcc version: 4.4.4
(Red Hat 4.4.4-13) (GCC)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap(&/dev/zero&, MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=&path& option.
共有5个答案
<span class="a_vote_num" id="a_vote_num_
pcre-devel包装上就好
<span class="a_vote_num" id="a_vote_num_
单独装一下
组件就可以了
--- 共有 2 条评论 ---
: 你最好直接装 rpm 包,装了就肯定不会报 pcre 的错
(4年前)&nbsp&
我在nginx中安装了最新的pcre使用命名捕获还是报错,请问这个问题咋解决啊 先谢过
(4年前)&nbsp&
<span class="a_vote_num" id="a_vote_num_
安装好pcre-devel,zlib-devel,openssl-devel后其他都好了,下面2个包也都装了
openssl-1.0.0-4.el6.x86_64,openssl-devel-1.0.0-4.el6.x86_64
但是还报OpenSSL library is not used
Configuration summary & + using system PCRE library & + OpenSSL library is not used & + md5: using system crypto library & + sha1: using system crypto library & + using system zlib library
checking for OS
&+ Linux 2.6.32-71.el6.x86_64 x86_64
checking for C compiler ... found
&+ using GNU C compiler
&+ gcc version: 4.4.4
(Red Hat 4.4.4-13) (GCC)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system endianess ... little endianess
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap(&/dev/zero&, MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for PCRE library ... found
checking for system md library ... not found
checking for system md5 library ... not found
checking for OpenSSL md5 crypto library ... found
checking for sha1 in system md library ... not found
checking for OpenSSL sha1 crypto library ... found
checking for zlib library ... found
creating objs/Makefile
Configuration summary
& + using system PCRE library
& + OpenSSL library is not used
& + md5: using system crypto library
& + sha1: using system crypto library
& + using system zlib library
& nginx path prefix: &/opt/nginx&
& nginx binary file: &/opt/nginx/sbin/nginx&
& nginx configuration prefix: &/opt/nginx/conf&
& nginx configuration file: &/opt/nginx/conf/nginx.conf&
& nginx pid file: &/opt/nginx/logs/nginx.pid&
& nginx error log file: &/opt/nginx/logs/error.log&
& nginx http access log file: &/opt/nginx/logs/access.log&
& 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&
<span class="a_vote_num" id="a_vote_num_
./configure --prefix=/usr/local/nginx --with-openssl=/usr/include (启用ssl)
安装完成!谢谢大家!
<span class="a_vote_num" id="a_vote_num_
推荐自己下载pcre,并自己编译安装,然后再装nginx
更多开发者职位上
有什么技术问题吗?
chunbin...的其它问题
类似的话题当前访客身份:游客 [
活着是一种修行
:此http连接池可主要应用于spider网络爬虫系统中...
:最近也遇到这个问题了,感谢分享
:引用来自“OSer_Merlin”的评论看了博主博文,感...
:看了博主博文,感觉Ubuntu还是别更新的好。
:楼主,我遇到了这个情况。找了半天找到你的文章,...
:引用来自“天窗2013”的评论纯诋毁文,逻辑不通 ...
:纯诋毁文,逻辑不通
:一窍不通
:引用来自“抢小孩糖吃”的评论阿里上个20年进行的...
今日访问:28
昨日访问:97
本周访问:441
本月访问:1516
所有访问:15031
CentOS6.5使用yum命令方便快捷安装Nginx
发表于2年前( 14:09)&&
阅读(3551)&|&评论()
0人收藏此文章,
当然,首先要求是可以联网的CentOS系统,因为yum安装需要互联网连接。1.为了追加 nginx 的 yum 仓库,需要创建一个文件 /etc/yum.repos.d/nginx.repo,并将下面的内容复制进去:
&&&&[nginx]&&
&&&&name=nginx&repo&&
&&&&baseurl=http://nginx.org/packages/centos/$releasever/$basearch/&&
&&&&gpgcheck=0&&
&&&&enabled=1
2.编辑并保存/etc/yum.repos.d/nginx.repo文件后,在命令行下执行
&&&&[root@localhost&~]#&yum&list&|&grep&nginx&&
&&&&nginx.i386&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&1.4.7-1.el6.ngx&&&&&&&&&&&&&&&@nginx&&&&&
&&&&nginx-debug.i386&&&&&&&&&&&&&&&&&&&&&&&&&1.4.7-1.el6.ngx&&&&&&&&&&&&&&&nginx
会发现就是最新的稳定版于是直接执行
&&&&yum&-y&install&nginx
安装即可3.这种安装和从源代码编译Nginx的安装,文件所处的位置不一样,安装完执行下面的命令
&&&&[root@localhost&~]#&find&/&-name&*nginx*&&
&&&&/etc/nginx/nginx.conf&&
&&&&[root@localhost&~]#&whereis&nginx&&
&&&&nginx:&/usr/sbin/nginx&/etc/nginx&/usr/share/nginx
你会发现主要文件安装到了/etc/nginx下接下来是启动Nginx服务,可以执行
&&&&[root@localhost&~]#&service&nginx&start&&
&&&&正在启动&nginx:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]
接着查看Nginx的进程
&&&&[root@localhost&~]#&netstat&-lntp&|&grep&nginx&&
&&&&tcp&&&&&&&&0&&&&&&0&0.0.0.0:80&&&&&&&&&&&&&&&&&&0.0.0.0:*&&&&&&&&&&&&&&&&&&&LISTEN&&&&&&7910/nginx&&&&&&&&&&&&
&&&&[root@localhost&~]#&ps&-ef&|&grep&nginx&&
&&&&root&&&&&&7910&&&&&1&&0&23:43&?&&&&&&&&00:00:00&nginx:&master&process&/usr/sbin/nginx&-c&&&
&&&&/etc/nginx/nginx.conf&&
&&&&nginx&&&&&&&0&23:43&?&&&&&&&&00:00:00&nginx:&worker&process&&&&&&&&&&&&&&&&&&&&&
&&&&root&&&&&&&&0&23:52&pts/1&&&&00:00:00&grep&nginx
缺省是一个master,一个slave,可以在配置nginx.conf文件里调整4.设置开机自动启动在centos6.5下测试了一下,不用设置
chkconfig&nginx&on
可以自行开机自动启动
更多开发者职位上
1)">1)">1" ng-class="{current:{{currentPage==page}}}" ng-repeat="page in pages"><li class='page' ng-if="(endIndex<li class='page next' ng-if="(currentPage
相关文章阅读本文来自:,永久链接:
后发表评论.
02:45:06 11:23:35 07:58:12 15:38:15 12:41:29
Powered by WordPress
Designed by NextPage

我要回帖

更多关于 centos 6.4 u盘安装 的文章

 

随机推荐