1摰鋆nginx
5 c* f x, f* d+ m* {" M: W; \ yum install nginx5 K- _' W2 H3 e( i% X/ W
........../ E" D1 g7 g" U8 i) C& g
Running Transaction
* W# H8 l7 K" N Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
2 z7 i- M4 n( x Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
0 g3 p* l/ x5 F1 G Installing : nginx-1.0.15-11.el6.x86_64 3/3
' i |9 O s; B5 t, G Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
* M5 f! R: }! b- Y5 @( G/ } Verifying : nginx-1.0.15-11.el6.x86_64 2/3. _, u* M2 j) u& W9 Q( ~( D
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
" T" U5 l4 L' y+ k5 i1 L; @4 Z) V5 _; W2 w- S3 N! h
Installed:/ i' w3 y; P: |* S& M0 N
nginx.x86_64 0:1.0.15-11.el6' |. C1 z3 n0 Q3 e' x( B& U
Dependency Installed:
3 }% Y! n' E4 j GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
0 `, k4 V3 Y8 z9 H7 X0 UComplete!; f% Y& r4 P( \: `
# X) t# r) e4 n/ D$ r閮剖/etc/nginx/nginx.conf
1 o5 l$ ^& j V+ Z9 g- Z0 Y$ \# P( U4 P4 \0 m% @
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
}& {1 s2 E3 T6 s% r閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
5 Z8 z, x# C; w$ i" D. ]0 e4 k5 C
php-fpm service php-fpm start
# _, i# Q$ X0 w4 C0 j5 z1 anginx service nginx start: d3 Z3 \3 j t/ _" a8 f
蝯嚗1 ?1 F) ]* S3 d9 \4 ?1 s8 R
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
. \. M7 i! R" x" g閫瘙嚗: E/ M: S2 U w& `! Z
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
+ C5 f6 [8 v6 \* d銝甈∪nginx service nginx start$ r4 P5 ~8 {* v& G8 j) `1 P; d
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46# a: U! v" L* g
亦nginx configure /usr/sbin/nginx -V7 ~: ?1 m: p, D* M' i# `$ W4 d
nginx version: nginx/1.0.159 f, Y& q* g: V9 \; c
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
* ]0 F. V( Z( fTLS SNI support enabled
+ f3 ~8 G9 k2 k; Fconfigure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E
4 b' ]1 o" p% G: L
6 p& `- p% D; m# l8 `$ |( h& W
& _4 K u/ ~4 o( xnginx service nginx start
7 y- Z% Y, i5 c. D% |* `' Y* Ierror : " ]$ `1 o1 S. |8 V
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40; } k% P) J- }+ e* W7 G
nginx: configuration file /etc/nginx/nginx.conf test failed
! w8 G3 h; h. I5 m% t閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
+ M, f# `, V* }SELINUX = enforcing 寞 disabled / Q. A3 X, h, z9 X1 j9 M
, k. Q! v. p5 L- x' v8 c! R
- ]" v( Z7 p& Z+ |! q
9 L! A" Z7 m1 E. U' U6 v
: T& Q7 F9 k0 d |
|