win7下ngnix mysql php的安装_php mysql安装_安装php mysql

电脑杂谈  发布时间:2019-07-09 22:04:41  来源:网络整理

win7下ngnix mysql php的安装_php mysql安装_安装php mysql

#tar zxvf nginx-1.2.4.tar.gz

#cd nginx-1.2.4

#./configure --with-http_stub_status_module --with-http_gzip_static_module

--prefix=/usr/local/nginx

#make

#makeinstall

注:--with-http_stub_status_module 可以用来启用Nginx的NginxStatus功能win7下ngnix mysql php的安装,以监控Nginx的当前状态。

--with-http_gzip_static_module 支持实时压缩输出数据流。

问题:

win7下ngnix mysql php的安装_php mysql安装_安装php mysql

1、若在./configure后配置刚才的参数,提示一下的错误:

objs/src/http/modules/ngx_http_browser_module.o \

objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \

objs += ../hardware/src/gpio.o 。objs += ../hardware/src/gpio.o。ar crus lib/libjemalloc.a src/jemalloc.o src/arena.o src/atomic.o src/base.o src/bitmap.o src/chunk.o src/chunk_dss.o src/chunk_mmap.o src/ckh.o src/ctl.o src/extent.o src/hash.o src/huge.o src/mb.o src/mutex.o src/prof.o src/quarantine.o src/rtree.o src/stats.o src/tcache.o src/util.o src/tsd.o。

objs/src/http/modules/ngx_http_upstream_keepalive_module.o \

objs/ngx_modules.o \

-lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz

objs/src/core/ngx_regex.o: In function `ngx_pcre_free_studies':

/home/youfu/test.c:10: undefined reference to `cpu_zero'。ccld gobject-query./.libs/libgobject-2.0.so: undefined reference to `ffi_type_pointer'。./.libs/libgobject-2.0.so: undefined reference to `ffi_type_float'。

php mysql安装_win7下ngnix mysql php的安装_安装php mysql

collect2: ld returned 1 exit status

make[1]: *** [objs/nginx] Error 1

make[1]: Leaving directory `/share/nginx-1.2.4'

make: *** [build] Error 2

解决方法:

wget - c zxvf /usr/local/src/test-1.0.0.tar.gzcd /usr/local/src/test-1.0.0./configure --prefix=/usr/local/test --exec--prefix=/usr/local/mysqlmake testmake install。big_mirror=0"tar zxvf libmcrypt-2.5.8.tar.gzcd libmcrypt-2.5.8/./configure --prefix=/server/libsmakemake installcd libltdl/./configure --prefix=/server/libs --enable-ltdl-installmakemake installcd ../../。perl configure vc-win32 --prefix=d:\opensource\openssl// prefix指定安装位置。

PS: ./configure --prefix=/usr/localnx --without-http_autoindex_module --without-http_geo_module --with-pcre=../pcre-8.31

注意:把--with-pcre=../pcre-8.31换成你的pcre解压缩包的路径

2、若在“./configure”后方加入了“--with-http_gzip_static_module”(添加gzip压缩模块)提 示以下错误:

安装php mysql_php mysql安装_win7下ngnix mysql php的安装

./configure: error: the HTTP gzip module requires the zlib library.

you can unlock a workstation either manually or by means of a program (for example, by using a screen saver). when the workstation is locked and you attempt to unlock it, you can observe standard expected behaviors from the unlocking process.。now you need to save this shim database file (a small database including the shim information is created), and install it. you can either install it by right-clicking on the shim and pressing the install button, or by using a command-line option, sdbinst.exe .。windows hook. for desktop app on win 7/8, touch events can be easily hooked by using setwindowshookex with wh_callwndproc or wh_getmessage. for metro app on win 8, only the first pointer event can be detected in the message loop of the window. although a pointer event can be occurred by either a click or a tap, getpointertype can tell you if its a touch pointer or a mouse pointer. samples for using hooks can be found at here.。

option, or install the zlib library into the system, or build the zlib library

statically from the source with nginx by using --with-zlib=<path> option.

解决办法:安装zlib-devel包

#yum -y install zlib-devel

启动Nginx出现的问题:

# /usr/local/nginx/sbin/nginx

/usr/local/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: no such file or directory。/usr/local/gcc-4.8.3/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: no such file or directory。/usr/local/gcc-4.6.1/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: no such file or directory。

php mysql安装_安装php mysql_win7下ngnix mysql php的安装

从错误看出是缺少lib文件导致,进一步查看下

# ldd $(which /usr/local/nginx/sbin/nginx)

linux-gate.so.1 => (0x0071b000)

libpthread.so.0 => /lib/libpthread.so.0 (0×00498000)

libcrypt.so.1 => /lib/libcrypt.so.1 (0×00986000)

libpcre.so.1 => not found

/usr/lib/libcrypto.so.0.9.8: version `openssl_0.9.8' not found。\system\lib\libcrypto.so 加密组件。\\system\\lib\\libcrypto.so 加密组件。

libz.so.1 => /lib/libz.so.1 (0×00610000)

libc.so.6 => /lib/libc.so.6 (0x002d7000)

/lib/ld-linux.so.2 (0x006a8000)

libdl.so.2 => /lib/libdl.so.2 (0x008c3000)

可以看出 libpcre.so.1 => not found 并没有找到win7下ngnix mysql php的安装,进入/lib目录中手动链接下

# ln -s libpcre.so.0.0.1 libpcre.so.1


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-111707-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 申新贞
        申新贞

        在维护国家主权的问题上

      • 韩哀侯
        韩哀侯

        一会儿又说是伊拉克对几个谋杀萨达姆的刺客判处了死刑要入侵伊拉克并依此为由绞死了萨达姆

      热点图片
      拼命载入中...