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

  免費注冊 查看新帖 |

Chinaunix

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

[FastDFS] 安裝nginx1.6.2 報錯,求問如何解決 [復(fù)制鏈接]

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:09
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2015-02-12 19:35 |只看該作者 |倒序瀏覽
的nginx版本是1.6.2 fastdfs v5.05  fastdfs-nginx-module v1.16 ,fastdfs部署好了,上傳一個文件測試成功,開始安裝nginx,如下執(zhí)行:
1.執(zhí)行
./configure \
> --prefix=/home/nginx/nginx-1.6.2 \
> --sbin-path=/home/nginx/nginx-1.6.2/nginx \
> --conf-path=/home/nginx/nginx-1.6.2/nginx.conf \
> --pid-path=/home/nginx/nginx-1.6.2/nginx.pid \
> --with-http_ssl_module \
> --with-openssl=/root/Downloads/openssl-1.0.2 \
> --add-module=/home/nginx/fastdfs-nginx-module/src
結(jié)果:
checking for OS
+ Linux 2.6.34-12-desktop x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux)
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
configuring additional modules
adding module in /home/nginx/fastdfs-nginx-module/src
+ ngx_http_fastdfs_module was configured
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for zlib library ... found
creating objs/Makefile

Configuration summary
  + using system PCRE library
  + using OpenSSL library: /root/Downloads/openssl-1.0.2
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

  nginx path prefix: "/home/nginx/nginx-1.6.2"
  nginx binary file: "/home/nginx/nginx-1.6.2/nginx"
  nginx configuration prefix: "/home/nginx/nginx-1.6.2"
  nginx configuration file: "/home/nginx/nginx-1.6.2/nginx.conf"
  nginx pid file: "/home/nginx/nginx-1.6.2/nginx.pid"
  nginx error log file: "/home/nginx/nginx-1.6.2/logs/error.log"
  nginx http access log file: "/home/nginx/nginx-1.6.2/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"

2、執(zhí)行make
-lpthread -lcrypt -L/usr/local/lib -lfastcommon -lfdfsclient -lpcre /root/Downloads/openssl-1.0.2/libssl.a /root/Downloads/openssl-1.0.2/libcrypto.a -ldl -lz
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_mod_init':
/home/nginx/fastdfs-nginx-module/src/common.c:149: undefined reference to `trunk_shared_init'
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_load_groups_store_paths':
/home/nginx/fastdfs-nginx-module/src/common.c:124: undefined reference to `storage_load_paths_from_conf_file_ex'
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_mod_init':
/home/nginx/fastdfs-nginx-module/src/common.c:216: undefined reference to `storage_load_paths_from_conf_file'
/home/nginx/fastdfs-nginx-module/src/common.c:226: undefined reference to `g_fdfs_connect_timeout'
/home/nginx/fastdfs-nginx-module/src/common.c:233: undefined reference to `g_fdfs_network_timeout'
/home/nginx/fastdfs-nginx-module/src/common.c:250: undefined reference to `fdfs_http_params_load'
/home/nginx/fastdfs-nginx-module/src/common.c:281: undefined reference to `g_tracker_group'
/home/nginx/fastdfs-nginx-module/src/common.c:281: undefined reference to `fdfs_load_tracker_group_ex'
/home/nginx/fastdfs-nginx-module/src/common.c:293: undefined reference to `fdfs_load_storage_ids_from_file'
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_get_params_from_tracker':
/home/nginx/fastdfs-nginx-module/src/common.c:1276: undefined reference to `g_tracker_group'
/home/nginx/fastdfs-nginx-module/src/common.c:1276: undefined reference to `fdfs_get_ini_context_from_tracker'
/home/nginx/fastdfs-nginx-module/src/common.c:1292: undefined reference to `g_tracker_group'
/home/nginx/fastdfs-nginx-module/src/common.c:1292: undefined reference to `fdfs_get_storage_ids_from_tracker_group'
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_mod_init':
/home/nginx/fastdfs-nginx-module/src/common.c:336: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:339: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:341: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:339: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:347: undefined reference to `g_storage_id_count'
/home/nginx/fastdfs-nginx-module/src/common.c:347: undefined reference to `g_tracker_group'
/home/nginx/fastdfs-nginx-module/src/common.c:347: undefined reference to `g_fdfs_network_timeout'
/home/nginx/fastdfs-nginx-module/src/common.c:347: undefined reference to `g_fdfs_connect_timeout'
/home/nginx/fastdfs-nginx-module/src/common.c:347: undefined reference to `g_fdfs_base_path'
objs/addon/src/ngx_http_fastdfs_module.o: In function `fdfs_http_request_handler':
/home/nginx/fastdfs-nginx-module/src/common.c:647: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:647: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:647: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:680: undefined reference to `g_fdfs_store_paths'
/home/nginx/fastdfs-nginx-module/src/common.c:703: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:704: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:715: undefined reference to `fdfs_http_check_token'
/home/nginx/fastdfs-nginx-module/src/common.c:750: undefined reference to `storage_split_filename_no_check'
/home/nginx/fastdfs-nginx-module/src/common.c:772: undefined reference to `fdfs_check_data_filename'
/home/nginx/fastdfs-nginx-module/src/common.c:778: undefined reference to `fdfs_get_file_info_ex1'
/home/nginx/fastdfs-nginx-module/src/common.c:804: undefined reference to `trunk_file_stat_func_ex'
/home/nginx/fastdfs-nginx-module/src/common.c:821: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:821: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:886: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:969: undefined reference to `fdfs_http_get_file_extension'
/home/nginx/fastdfs-nginx-module/src/common.c:999: undefined reference to `fdfs_get_file_info_ex1'
/home/nginx/fastdfs-nginx-module/src/common.c:1047: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:1058: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:1120: undefined reference to `storage_download_file_ex1'
/home/nginx/fastdfs-nginx-module/src/common.c:1149: undefined reference to `trunk_get_full_filename_ex'
/home/nginx/fastdfs-nginx-module/src/common.c:821: undefined reference to `fdfs_http_get_parameter'
/home/nginx/fastdfs-nginx-module/src/common.c:969: undefined reference to `fdfs_http_get_file_extension'
/home/nginx/fastdfs-nginx-module/src/common.c:969: undefined reference to `fdfs_http_get_file_extension'
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/nginx/nginx-1.6.2'
make: *** [build] Error 2
請問如果解決該問題,第一次搞這玩意,被這個問題搞死了,希望大家多多指點。

論壇徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亞洲杯之伊拉克
日期:2015-03-09 13:57:11
2 [報告]
發(fā)表于 2015-02-13 09:42 |只看該作者
回復(fù) 1# xxxdad


cd fastdfs-nginx-module/src

vi config,原來是: CORE_INCS="$CORE_INCS /usr/local/include/fastdfs /usr/local/include/fastcommon/"

改成:CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"

你可以自己查看在 /usr/local/include/路徑下是否有fastdfs

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:09
3 [報告]
發(fā)表于 2015-02-13 10:00 |只看該作者
回復(fù) 2# FILERF

已經(jīng)修改成:CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"
config文件內(nèi)容如下:
#################################
ngx_addon_name=ngx_http_fastdfs_module
HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon"
CORE_LIBS="$CORE_LIBS -L/usr/local/lib -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
#################################

并確認(rèn)過/usr/include/fastdfs和 /usr/include/fastcommon/這兩個目錄中有文件:
#################################
linux-bxew:/usr/include/fastcommon # ls
_os_bits.h         fast_mblock.h      ioevent.h        pthread_func.h
avl_tree.h         fast_task_queue.h  ioevent_loop.h   sched_thread.h
base64.h           fast_timer.h       local_ip_func.h  shared_func.h
chain.h            hash.h             logger.h         sockopt.h
common_define.h    http_func.h        md5.h
connection_pool.h  ini_file_reader.h  process_ctrl.h
linux-bxew:/usr/include/fastcommon # cd /usr/local/include
linux-bxew:/usr/local/include # ls
pcre.h          pcre_stringpiece.h  pcrecpparg.h  zconf.h
pcre_scanner.h  pcrecpp.h           pcreposix.h   zlib.h
#################################


---但/usr/local/include/路徑下沒有fastdfs,請問如何解決。

論壇徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亞洲杯之伊拉克
日期:2015-03-09 13:57:11
4 [報告]
發(fā)表于 2015-02-13 10:26 |只看該作者
回復(fù) 3# xxxdad


    ---但/usr/local/include/路徑下沒有fastdfs,請問如何解決。

那你看看/usr/include/路徑下沒有fastdfs,如果有,將配置文件改為CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon" 再次重新編譯運行就可以了

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:09
5 [報告]
發(fā)表于 2015-02-13 10:38 |只看該作者
回復(fù) 4# FILERF


    配置文件已經(jīng)修改為CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon"了,還是不行,是不是版本的兼容的問題引起的。

論壇徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亞洲杯之伊拉克
日期:2015-03-09 13:57:11
6 [報告]
發(fā)表于 2015-02-13 11:02 |只看該作者
回復(fù) 5# xxxdad


    不清楚,這個問題我也是昨天解決的 。

我安裝的版本如下:

FastDFS_v5.05.tar.gz ,fastdfs-nginx-module_v1.15.tar.gz,libfastcommon-master.zip,nginx-1.4.7.tar.gz

1.安裝前先安裝這些東西:
yum -y install gcc

yum -y install gcc-c++

yum -y install zlib-devel

yum -y install pcre-devel

yum -y install openssl openssl-devel

-------------------
我是統(tǒng)一將這些壓縮包放在/usr/local目錄下解壓后順序安裝:libfastcommon-master   執(zhí)行 ./make.sh   ./make.sh install

FastDFS  執(zhí)行 ./make.sh   ./make.sh install

nginx-1.4.7  執(zhí)行./configure --prefix=/usr/local/nginx --add-module=../fastdfs-nginx-module/src,這個執(zhí)行完后執(zhí)行 make && make install ,會提示安裝失敗,原因

是FastDFS安裝成功后,/usr/local/include/路徑下沒有fastdfs,而是在/usr/include/路徑下,所以這里修改之前說的配置文件的路徑后再次執(zhí)行:

./configure --prefix=/usr/local/nginx --add-module=../fastdfs-nginx-module/src     make && make install

就安裝完成了






論壇徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亞洲杯之伊拉克
日期:2015-03-09 13:57:11
7 [報告]
發(fā)表于 2015-02-13 11:09 |只看該作者
回復(fù) 5# xxxdad


   

FastDFS_v5.05.tar.gz

337.3 KB, 下載次數(shù): 88

fastdfs-nginx-module_v1.15.tar.gz

16.86 KB, 下載次數(shù): 87

libfastcommon-master.zip

99.71 KB, 下載次數(shù): 76

nginx-1.4.7.tar.gz

751.13 KB, 下載次數(shù): 77

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:09
8 [報告]
發(fā)表于 2015-02-13 12:51 |只看該作者
回復(fù) 7# FILERF


    謝謝,我試試
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(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