Chinaunix
标题:
配置网站nginx在centos6.4安装问题
[打印本页]
作者:
eremiter
时间:
2014-01-24 13:12
标题:
配置网站nginx在centos6.4安装问题
下载了一份mysql5+php+nginx的配置老是出问题,几个问题不明白,下载的东西,要上传哪个目录合理,我是上传到根目录tmp下,即与boot同一级。
第二
安装的东西,会跑到哪个目录上
。
还有编译时候,有好多行命令看不懂,即红色部份,是一行一行输入,还是一次复制,粘贴到命令行,我是使用一次复制,请指点,谢谢
安装 nginx
tar -zxvf nginx-1.4.3.tar.gz
cd nginx-1.4.3
./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/usr/local/src/pcre \
--with-zlib=/usr/local/src/zlib \
--with-openssl=/usr/local/src/openssl
make
make install
[root@webserver tmp]# ls
libmcrypt-2.5.8 nginx-1.5.9 php-5.3.28.tar.gz
libmcrypt-2.5.8.tar.gz nginx-1.5.9.tar.gz
MySQL-5.5.35-1.el6.x86_64.rpm-bundle.tar php-5.3.28
[root@webserver tmp]# cd nginx-1.5.9
[root@webserver nginx-1.5.9]# ./configure --sbin-path=/usr/local/nginx/nginx \
> --conf-path=/usr/local/nginx/nginx.conf \
> --pid-path=/usr/local/nginx/nginx.pid \
> --with-http_ssl_module \
> --with-pcre=/usr/local/src/pcre \
> --with-zlib=/usr/local/src/zlib \
> --with-openssl=/usr/local/src/openssl
checking for OS
+ Linux 2.6.32-358.6.2.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-4) (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 EPOLLRDHUP ... found
checking for O_PATH ... not 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 TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... not found
checking for TCP_INFO ... 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 byte ordering ... little endian
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 sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
creating objs/Makefile
Configuration summary
+ using PCRE library: /usr/local/src/pcre
+ using OpenSSL library: /usr/local/src/openssl
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using zlib library: /usr/local/src/zlib
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/nginx"
nginx configuration prefix: "/usr/local/nginx"
nginx configuration file: "/usr/local/nginx/nginx.conf"
nginx pid file: "/usr/local/nginx/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/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"
[root@webserver nginx-1.5.9]# make
make -f objs/Makefile
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 1
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [build] Error 2
[root@webserver nginx-1.5.9]# make install
make -f objs/Makefile install
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 1
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [install] Error 2
[root@webserver nginx-1.5.9]#
复制代码
作者:
amarant
时间:
2014-01-24 14:00
/bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
从出错信息想想是为什么
作者:
eremiter
时间:
2014-01-25 11:05
我到src下建立相应的目录,还是出错,真是奇怪,如果使用yum安装即可以,但不是想要的版本
[root@webserver nginx-1.5.9]# make
make -f objs/Makefile
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [build] Error 2
[root@webserver nginx-1.5.9]# make install
make -f objs/Makefile install
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [install] Error 2
[root@webserver nginx-1.5.9]
复制代码
作者:
chenyx
时间:
2014-01-26 09:28
你的pcre的库是安装到/usr/local/src/pcre下面的吗?如果不是,将--with-pcre=/usr/local/src/pcre \这个参数=到\之间的参数=/usr/local/src/pcre去掉,看看configure能不能找到你系统安装的pcre
作者:
eremiter
时间:
2014-01-26 13:02
最后搞得没办法,使用.configure安装,其它的选项都不加,到时安装成功了,看了linux还真不好搞
作者:
humjb_1983
时间:
2014-01-26 14:46
需要慢慢琢磨才行~~
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2