亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2534 | 回復(fù): 5
打印 上一主題 下一主題

[系統(tǒng)安裝] 配置網(wǎng)站nginx在centos6.4安裝問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2014-01-24 13:12 |只看該作者 |倒序瀏覽
下載了一份mysql5+php+nginx的配置老是出問題,幾個問題不明白,下載的東西,要上傳哪個目錄合理,我是上傳到根目錄tmp下,即與boot同一級。
第二安裝的東西,會跑到哪個目錄上

還有編譯時候,有好多行命令看不懂,即紅色部份,是一行一行輸入,還是一次復(fù)制,粘貼到命令行,我是使用一次復(fù)制,請指點,謝謝

安裝 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
  1. [root@webserver tmp]# ls
  2. libmcrypt-2.5.8                           nginx-1.5.9         php-5.3.28.tar.gz
  3. libmcrypt-2.5.8.tar.gz                    nginx-1.5.9.tar.gz
  4. MySQL-5.5.35-1.el6.x86_64.rpm-bundle.tar  php-5.3.28
  5. [root@webserver tmp]# cd nginx-1.5.9
  6. [root@webserver nginx-1.5.9]# ./configure --sbin-path=/usr/local/nginx/nginx \
  7. > --conf-path=/usr/local/nginx/nginx.conf \
  8. > --pid-path=/usr/local/nginx/nginx.pid \
  9. > --with-http_ssl_module \
  10. > --with-pcre=/usr/local/src/pcre \
  11. > --with-zlib=/usr/local/src/zlib \
  12. > --with-openssl=/usr/local/src/openssl
  13. checking for OS
  14. + Linux 2.6.32-358.6.2.el6.x86_64 x86_64
  15. checking for C compiler ... found
  16. + using GNU C compiler
  17. + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
  18. checking for gcc -pipe switch ... found
  19. checking for gcc builtin atomic operations ... found
  20. checking for C99 variadic macros ... found
  21. checking for gcc variadic macros ... found
  22. checking for unistd.h ... found
  23. checking for inttypes.h ... found
  24. checking for limits.h ... found
  25. checking for sys/filio.h ... not found
  26. checking for sys/param.h ... found
  27. checking for sys/mount.h ... found
  28. checking for sys/statvfs.h ... found
  29. checking for crypt.h ... found
  30. checking for Linux specific features
  31. checking for epoll ... found
  32. checking for EPOLLRDHUP ... found
  33. checking for O_PATH ... not found
  34. checking for sendfile() ... found
  35. checking for sendfile64() ... found
  36. checking for sys/prctl.h ... found
  37. checking for prctl(PR_SET_DUMPABLE) ... found
  38. checking for sched_setaffinity() ... found
  39. checking for crypt_r() ... found
  40. checking for sys/vfs.h ... found
  41. checking for nobody group ... found
  42. checking for poll() ... found
  43. checking for /dev/poll ... not found
  44. checking for kqueue ... not found
  45. checking for crypt() ... not found
  46. checking for crypt() in libcrypt ... found
  47. checking for F_READAHEAD ... not found
  48. checking for posix_fadvise() ... found
  49. checking for O_DIRECT ... found
  50. checking for F_NOCACHE ... not found
  51. checking for directio() ... not found
  52. checking for statfs() ... found
  53. checking for statvfs() ... found
  54. checking for dlopen() ... not found
  55. checking for dlopen() in libdl ... found
  56. checking for sched_yield() ... found
  57. checking for SO_SETFIB ... not found
  58. checking for SO_ACCEPTFILTER ... not found
  59. checking for TCP_DEFER_ACCEPT ... found
  60. checking for TCP_KEEPIDLE ... found
  61. checking for TCP_FASTOPEN ... not found
  62. checking for TCP_INFO ... found
  63. checking for accept4() ... found
  64. checking for int size ... 4 bytes
  65. checking for long size ... 8 bytes
  66. checking for long long size ... 8 bytes
  67. checking for void * size ... 8 bytes
  68. checking for uint64_t ... found
  69. checking for sig_atomic_t ... found
  70. checking for sig_atomic_t size ... 4 bytes
  71. checking for socklen_t ... found
  72. checking for in_addr_t ... found
  73. checking for in_port_t ... found
  74. checking for rlim_t ... found
  75. checking for uintptr_t ... uintptr_t found
  76. checking for system byte ordering ... little endian
  77. checking for size_t size ... 8 bytes
  78. checking for off_t size ... 8 bytes
  79. checking for time_t size ... 8 bytes
  80. checking for setproctitle() ... not found
  81. checking for pread() ... found
  82. checking for pwrite() ... found
  83. checking for sys_nerr ... found
  84. checking for localtime_r() ... found
  85. checking for posix_memalign() ... found
  86. checking for memalign() ... found
  87. checking for mmap(MAP_ANON|MAP_SHARED) ... found
  88. checking for mmap("/dev/zero", MAP_SHARED) ... found
  89. checking for System V shared memory ... found
  90. checking for POSIX semaphores ... not found
  91. checking for POSIX semaphores in libpthread ... found
  92. checking for struct msghdr.msg_control ... found
  93. checking for ioctl(FIONBIO) ... found
  94. checking for struct tm.tm_gmtoff ... found
  95. checking for struct dirent.d_namlen ... not found
  96. checking for struct dirent.d_type ... found
  97. checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
  98. checking for openat(), fstatat() ... found
  99. checking for getaddrinfo() ... found
  100. creating objs/Makefile

  101. Configuration summary
  102.   + using PCRE library: /usr/local/src/pcre
  103.   + using OpenSSL library: /usr/local/src/openssl
  104.   + md5: using OpenSSL library
  105.   + sha1: using OpenSSL library
  106.   + using zlib library: /usr/local/src/zlib

  107.   nginx path prefix: "/usr/local/nginx"
  108.   nginx binary file: "/usr/local/nginx/nginx"
  109.   nginx configuration prefix: "/usr/local/nginx"
  110.   nginx configuration file: "/usr/local/nginx/nginx.conf"
  111.   nginx pid file: "/usr/local/nginx/nginx.pid"
  112.   nginx error log file: "/usr/local/nginx/logs/error.log"
  113.   nginx http access log file: "/usr/local/nginx/logs/access.log"
  114.   nginx http client request body temporary files: "client_body_temp"
  115.   nginx http proxy temporary files: "proxy_temp"
  116.   nginx http fastcgi temporary files: "fastcgi_temp"
  117.   nginx http uwsgi temporary files: "uwsgi_temp"
  118.   nginx http scgi temporary files: "scgi_temp"

  119. [root@webserver nginx-1.5.9]# make
  120. make -f objs/Makefile
  121. make[1]: Entering directory `/tmp/nginx-1.5.9'
  122. cd /usr/local/src/pcre \
  123.         && if [ -f Makefile ]; then make distclean; fi \
  124.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  125.         ./configure --disable-shared
  126. /bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
  127. make[1]: *** [/usr/local/src/pcre/Makefile] Error 1
  128. make[1]: Leaving directory `/tmp/nginx-1.5.9'
  129. make: *** [build] Error 2
  130. [root@webserver nginx-1.5.9]# make install
  131. make -f objs/Makefile install
  132. make[1]: Entering directory `/tmp/nginx-1.5.9'
  133. cd /usr/local/src/pcre \
  134.         && if [ -f Makefile ]; then make distclean; fi \
  135.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  136.         ./configure --disable-shared
  137. /bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
  138. make[1]: *** [/usr/local/src/pcre/Makefile] Error 1
  139. make[1]: Leaving directory `/tmp/nginx-1.5.9'
  140. make: *** [install] Error 2
  141. [root@webserver nginx-1.5.9]#
復(fù)制代碼

論壇徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16賽季CBA聯(lián)賽之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金雞報曉
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年紀念徽章
日期:2016-11-09 13:19:1015-16賽季CBA聯(lián)賽之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序設(shè)計版塊每日發(fā)帖之星
日期:2015-12-03 06:20:002015七夕節(jié)徽章
日期:2015-08-21 11:06:17IT運維版塊每日發(fā)帖之星
日期:2015-08-09 06:20:002015亞冠之吉達阿赫利
日期:2015-07-03 08:39:42
2 [報告]
發(fā)表于 2014-01-24 14:00 |只看該作者
/bin/sh: line 0: cd: /usr/local/src/pcre: No such file or directory
從出錯信息想想是為什么

論壇徽章:
0
3 [報告]
發(fā)表于 2014-01-25 11:05 |只看該作者
我到src下建立相應(yīng)的目錄,還是出錯,真是奇怪,如果使用yum安裝即可以,但不是想要的版本
  1. [root@webserver nginx-1.5.9]# make
  2. make -f objs/Makefile
  3. make[1]: Entering directory `/tmp/nginx-1.5.9'
  4. cd /usr/local/src/pcre \
  5.         && if [ -f Makefile ]; then make distclean; fi \
  6.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  7.         ./configure --disable-shared
  8. /bin/sh: line 2: ./configure: No such file or directory
  9. make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
  10. make[1]: Leaving directory `/tmp/nginx-1.5.9'
  11. make: *** [build] Error 2
  12. [root@webserver nginx-1.5.9]# make install
  13. make -f objs/Makefile install
  14. make[1]: Entering directory `/tmp/nginx-1.5.9'
  15. cd /usr/local/src/pcre \
  16.         && if [ -f Makefile ]; then make distclean; fi \
  17.         && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
  18.         ./configure --disable-shared
  19. /bin/sh: line 2: ./configure: No such file or directory
  20. make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
  21. make[1]: Leaving directory `/tmp/nginx-1.5.9'
  22. make: *** [install] Error 2
  23. [root@webserver nginx-1.5.9]
復(fù)制代碼

論壇徽章:
381
CU十二周年紀念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [報告]
發(fā)表于 2014-01-26 09:28 |只看該作者
你的pcre的庫是安裝到/usr/local/src/pcre下面的嗎?如果不是,將--with-pcre=/usr/local/src/pcre \這個參數(shù)=到\之間的參數(shù)=/usr/local/src/pcre去掉,看看configure能不能找到你系統(tǒng)安裝的pcre

論壇徽章:
0
5 [報告]
發(fā)表于 2014-01-26 13:02 |只看該作者
最后搞得沒辦法,使用.configure安裝,其它的選項都不加,到時安裝成功了,看了linux還真不好搞

論壇徽章:
15
射手座
日期:2014-02-26 13:45:082015年迎新春徽章
日期:2015-03-04 09:54:452015年辭舊歲徽章
日期:2015-03-03 16:54:15羊年新春福章
日期:2015-02-26 08:47:552015年亞洲杯之卡塔爾
日期:2015-02-03 08:33:45射手座
日期:2014-12-31 08:36:51水瓶座
日期:2014-06-04 08:33:52天蝎座
日期:2014-05-14 14:30:41天秤座
日期:2014-04-21 08:37:08處女座
日期:2014-04-18 16:57:05戌狗
日期:2014-04-04 12:21:33技術(shù)圖書徽章
日期:2014-03-25 09:00:29
6 [報告]
發(fā)表于 2014-01-26 14:46 |只看該作者
需要慢慢琢磨才行~~
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP