• server

    香港独立服务器

    免费IPMI/ 免费WEB环境配置/ 网络优质/ 价格实惠

    联系客服咨询
  • 阿里云香港ECS特惠销售

    全场八折优惠促销,冲1000元得1200元

    查看套餐 产品介绍

  • server

    香港PHP独立IP虚拟主机


    查看套餐

Ubuntu系统下安装Nginx碰着的问题以及办理步伐

当前位置: 首页  >> 常见问题  >> 服务器常见问题  >> 查看详情

./configure:error:theHTTPrewritemodulerequiresthePCRElibrary.
办理要领:
apt-getinstalllibpcre3-dev
./configure:error:theHTTPgzipmodulerequiresthezliblibrary.
办理要领:
sudoapt-getinstallzlib1g-dev
再次编译:
[email protected]:~/nginx/nginx-1.0.14$./configure
checkingforOS
+Linux4.2.0-16-generici686
checkingforCcompiler...found
+usingGNUCcompiler
+gccversion:5.2.120151010(Ubuntu5.2.1-22ubuntu2)
checkingforgcc-pipeswitch...found
checkingforgccbuiltinatomicoperations...found
checkingforC99variadicmacros...found
checkingforgccvariadicmacros...found
checkingforunistd.h...found
checkingforinttypes.h...found
checkingforlimits.h...found
checkingforsys/filio.h...notfound
checkingforsys/param.h...found
checkingforsys/mount.h...found
checkingforsys/statvfs.h...found
checkingforcrypt.h...found
checkingforLinuxspecificfeatures
checkingforepoll...found
checkingforsendfile()...found
checkingforsendfile64()...found
checkingforsys/prctl.h...found
checkingforprctl(PR_SET_DUMPABLE)...found
checkingforsched_setaffinity()...found
checkingforcrypt_r()...found
checkingforsys/vfs.h...found
checkingfornobodygroup...notfound
checkingfornogroupgroup...found
checkingforpoll()...found
checkingfor/dev/poll...notfound
checkingforkqueue...notfound
checkingforcrypt()...notfound
checkingforcrypt()inlibcrypt...found
checkingforF_READAHEAD...notfound
checkingforposix_fadvise()...found
checkingforO_DIRECT...found
checkingforF_NOCACHE...notfound
checkingfordirectio()...notfound
checkingforstatfs()...found
checkingforstatvfs()...found
checkingfordlopen()...notfound
checkingfordlopen()inlibdl...found
checkingforsched_yield()...found
checkingforSO_SETFIB...notfound
checkingforSO_ACCEPTFILTER...notfound
checkingforTCP_DEFER_ACCEPT...found
checkingforaccept4()...found
checkingforintsize...4bytes
checkingforlongsize...4bytes
checkingforlonglongsize...8bytes
checkingforvoid*size...4bytes
checkingforuint64_t...found
checkingforsig_atomic_t...found
checkingforsig_atomic_tsize...4bytes
checkingforsocklen_t...found
checkingforin_addr_t...found
checkingforin_port_t...found
checkingforrlim_t...found
checkingforuintptr_t...uintptr_tfound
checkingforsystemendianess...littleendianess
checkingforsize_tsize...4bytes
checkingforoff_tsize...8bytes
checkingfortime_tsize...4bytes
checkingforsetproctitle()...notfound
checkingforpread()...found
checkingforpwrite()...found
checkingforsys_nerr...found
checkingforlocaltime_r()...found
checkingforposix_memalign()...found
checkingformemalign()...found
checkingformmap(MAP_ANON|MAP_SHARED)...found
checkingformmap("/dev/zero",MAP_SHARED)...found
checkingforSystemVsharedmemory...found
checkingforPOSIXsemaphores...notfound
checkingforPOSIXsemaphoresinlibpthread...found
checkingforstructmsghdr.msg_control...found
checkingforioctl(FIONBIO)...found
checkingforstructtm.tm_gmtoff...found
checkingforstructdirent.d_namlen...notfound
checkingforstructdirent.d_type...found
checkingforsysconf(_SC_NPROCESSORS_ONLN)...found
checkingforPCRElibrary...found
checkingforsystemmdlibrary...notfound
checkingforsystemmd5library...notfound
checkingforOpenSSLmd5cryptolibrary...notfound
checkingforsha1insystemmdlibrary...notfound
checkingforOpenSSLsha1cryptolibrary...notfound
checkingforzliblibrary...found
creatingobjs/Makefile
Configurationsummary
+usingsystemPCRElibrary
+OpenSSLlibraryisnotused
+usingbuiltinmd5code
+sha1libraryisnotfound
+usingsystemzliblibrary
nginxpathprefix:"/usr/local/nginx"
nginxbinaryfile:"/usr/local/nginx/sbin/nginx"
nginxconfigurationprefix:"/usr/local/nginx/conf"
nginxconfigurationfile:"/usr/local/nginx/conf/nginx.conf"
nginxpidfile:"/usr/local/nginx/logs/nginx.pid"
nginxerrorlogfile:"/usr/local/nginx/logs/error.log"
nginxhttpaccesslogfile:"/usr/local/nginx/logs/access.log"
nginxhttpclientrequestbodytemporaryfiles:"client_body_temp"
nginxhttpproxytemporaryfiles:"proxy_temp"
nginxhttpfastcgitemporaryfiles:"fastcgi_temp"
nginxhttpuwsgitemporaryfiles:"uwsgi_temp"
nginxhttpscgitemporaryfiles:"scgi_temp"
[email protected]:~/nginx/nginx-1.0.14$
启动时,发明端口80被占用:
[email protected]:/usr/local/nginx/sbin$sudo./nginx
nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)
nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)
nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)
nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)
nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)
nginx:[emerg]stillcouldnotbind()
[email protected]:/usr/local/nginx/sbin$
查察一下端口环境:
[email protected]:/usr/local/nginx/sbin$netstat-ntpl
(Notallprocessescouldbeidentified,non-ownedprocessinfo
willnotbeshown,youwouldhavetoberoottoseeitall.)
ActiveInternetconnections(onlyservers)
ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/Programname
tcp00127.0.1.1:530.0.0.0:*LISTEN-
tcp000.0.0.0:220.0.0.0:*LISTEN-
tcp00127.0.0.1:6310.0.0.0:*LISTEN-
tcp00127.0.0.1:250.0.0.0:*LISTEN-
tcp00127.0.0.1:60100.0.0.0:*LISTEN-
tcp600:::80:::*LISTEN-
tcp600:::22:::*LISTEN-
tcp600::1:631:::*LISTEN-
tcp600::1:25:::*LISTEN-
tcp600::1:6010:::*LISTEN-
[email protected]:/usr/local/nginx/sbin$
修改一下Nginx的默认端口:
[email protected]:/usr/local/nginx$vimconf/nginx.conf
将listen80变动为8080
从头启动,ok!

,韩国主机 韩国游戏代理