-
nginx运维中心 / operations 2dot5 写在2017年05月05日pcre zlib openssl怎么捣鼓也没搞定,无意间 ./configure –help看一下帮助说明:–with-pcre=DIR set path to PCRE library sources注意:set path to PCRE library sources是让你设置到源码目录,而不是编译安装后的目录,顿时恍然大悟。迅速把上面几个依赖包的路径都改成源码路径:./configure –prefix=/usr/local/nginx–with-openssl=/usr/include (启用ssl)–with-pcre=/usr/include/pcre/ (启用正规表达式)–with-http_stub_status_module (安装可以查看nginx状态的程序)–with-http_memcached_module (启用memcache缓存)–with-http_rewrite_module (启用支持url重写)./configure –prefix=/usr/local/nginx –with-openssl=/usr/include –with-pcre=/usr/include/pcre/ –with-http_stub_status_module –with-http_memcached_module –with-http_rewrite_moduleservice nginx startservice nginx stopservice nginx restartservice nginx reload/etc/init.d/nginx start/etc/init.d/nginx stop/etc/init.d/nginx restart/etc/init.d/nginx reloadhttp://blog.sina.com.cn/s/blog_68baf43d0100sddn.htmlhttp://developer.51cto.com/art/201005/198527.htmhttp://apps.hi.baidu.com/share/detail/42761524http://kerry.blog.51cto.com/172631/291422./configure –user=www –group=www –prefix=/usr/local/nginx/ –with-http_stub_status_module –with-http_ssl_module –with-openssl=/usr/local/openssl./configure –prefix=/usr/local/nginx –with-openssl=/usr/include –with-pcre=/usr/include/pcre/ –with-http_stub_status_module –with-openssl=/usr/local/opensslphpyum -y install curl-devellibpng-devellibmcryptfind / -name nginx.pid./configure –prefix=/usr/local/php-fcgi –enable-fpm –with-config-file-path=/usr/local/php-fcgi/etc –enable-zend-multibyte –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib-dir –with-curl –with-mhash –with-openssl –enable-bcmath –with-mcrypt=/usr/local/libmcrypt –enable-sysvsem –enable-inline-optimization –enable-soap –enable-gd-native-ttf –enable-ftp –enable-mbstring –enable-exif –disable-debug –disable-ipv6./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –disable-phar –with-mysql –with-pdo-mysql –with-mhash –with-mcrypt –enable-mbstring –enable-soap –enable-memcache –with-gd –with-jpeg-dir –with-png-dir –with-freetype-dir –with-openssl –disable-pear./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql –with-gd=/usr/local/gd –with-openssl –with-mcrypt=/usr/local/libmcrypt –enable-sysvsem –enable-inline-optimization –enable-soap –enable-gd-native-ttf –enable-ftp –enable-mbstring –enable-exif –disable-debug –disable-ipv6libjpeg./configure –prefix=/usr/local/php-fcgi –enable-fpm –with-config-file-path=/usr/local/php-fcgi/etc –enable-zend-multibyte –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib-dir –with-curl –with-mhash –with-openssl –enable-bcmath –with-mcrypt=/usr/local/libmcrypt –enable-sysvsem –enable-inline-optimization –enable-soap –enable-gd-native-ttf –enable-ftp –enable-mbstring –enable-exif –disable-debug –disable-ipv6export LDFLAGS=-L/usr/lib64/mysql./configure –prefix=/usr/local/php-fcgi –disable-phar –with-apxs2=/usr/local/apache2/bin/apxs –enable-zend-multibyte –with-mysql=/usr/share/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd=/usr/local/gd –with-jpeg-dir=/usr/local/jpeg –with-png-dir=/usr/local/libpng-1.2.8-configr –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib-dir –with-curl –with-mhash –with-openssl –enable-bcmath –enable-sysvsem –enable-inline-optimization –enable-soap –enable-gd-native-ttf –enable-ftp –enable-mbstring –enable-exif –disable-debug –disable-ipv6http://godlewis.iteye.com/blog/1136298cp php.ini-production /usr/local/php-fcgi/etc/php-fpm.confmkdir /usr/local/php-fcgi/ext./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/share/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd=/usr/local/gd –with-jpeg-dir=/usr/local/jpeg –with-png-dir=/usr/local/libpng-1.2.8-configr –enable-mbstringserver {listen 80;server_name angelcrunch.com www.angelcrunch.com;location / {if ($host = ‘angelcrunch.com’) {rewrite ^/(.*)$ http://www.angelcrunch.com/$1 permanent;}# auth_basic “Who are you ?”;# auth_basic_user_file /usr/local/nginx/conf/pevcauth;proxy_pass http://127.0.0.1:9091/;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}httpd: Syntax error on line 106 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: libjpeg.so.7: cannot open shared object file: No such file or directoryserver {listen 80;server_name bunny.claverstat.com;location / {root /date/tz;index index.html index.htm index.php;if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php;}if (!-f $request_filename){rewrite (.*) /index.php;}}location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi_params;fastcgi_param SCRIPT_FILENAME /date/tz$fastcgi_script_name;}}http://wiki.nginx.org/NginxChshttp://bbs.imp3.net/thread-10457409-1-1.htmlserver {listen 80;server_name www.test.com;location / {proxy_pass http://127.0.0.1:8080/;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}
上一篇: nginx 日志配置
下一篇: 服务安装和配置
-
虚拟服务器安装日志
df -h 格式化硬盘 fdisk /dev/vdb 1 p w...
-
Mysql 5.7.20 glibc 安装
1、下载mysql glibc 包wget https://dow...
-
nginx 日志配置
nginx 日志相关指令主要有两条, log_fo...
-
Liunx 防火墙 iptables
iptables 的命令参数 -t<表>:指...
-
mysql的编译安装
mysql的编译安装 下载目录: http://gd....
-
服务安装和配置
lvs 安装和配置方法: 参考网站:http:/...
相关推荐
您好!请登录
已有0评论