1摰鋆nginx" }4 m( p9 @$ Y! u+ G
yum install nginx$ H8 M* W* v5 ?) K T1 I- F
..........
: b. T. A/ a- ^Running Transaction' a! R. ]" \3 B4 M
Installing : GeoIP-1.5.1-5.el6.x86_64 1/38 O) ]' F1 \# V. o& f3 y1 t+ X
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
1 e" e& w' o& v0 i7 {6 A5 \ Installing : nginx-1.0.15-11.el6.x86_64 3/3* n5 n4 j& [, P; J/ ^- x( E- l( W4 C, e
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/36 Z+ Z" e5 ~- W* v# C W
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
/ ?/ c, v$ f. @( S& n Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
: f" u, Y6 A2 ^0 |) k5 r6 y' u# r: v6 r6 g9 X3 O
Installed:
" K. A) `( F; j7 U/ W% c) u nginx.x86_64 0:1.0.15-11.el6- K# W4 s" ~! j$ {
Dependency Installed:
' y9 o9 D7 A5 H; T! N, B( T0 U% Q GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6( Z6 K# ~4 u4 [9 F' n
Complete!
' T2 N' E3 o% t
: q8 m' a6 _) q; U閮剖/etc/nginx/nginx.conf
" P# y9 q& i; }7 |# x; b, x" p+ A6 A+ G, b+ k, `( c
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html/ C) |6 Q$ @0 a8 b- O0 Q0 B* N
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
8 T) J) |! @# k) D5 B1 X2 z6 q. g, ^
php-fpm service php-fpm start: \7 V5 C+ D4 b, U, n- i
nginx service nginx start
7 T* ?7 [2 V4 J% l! M$ x/ z蝯嚗
1 k+ k- x n+ }箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory' N' I! k8 f+ P+ {$ R1 R
閫瘙嚗
' c% E, Q: `- j3 ^8 X& f餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
. Z* y: k9 ]- Y4 k: D銝甈∪nginx service nginx start1 w5 ~' n! V C) f3 H
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:464 t( G! t1 ]6 [+ t% h4 \6 f
亦nginx configure /usr/sbin/nginx -V" T5 [0 i5 D; u, U. {
nginx version: nginx/1.0.152 ^4 z: Y8 |! l$ i* p9 [, v
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)+ e8 F0 G: I+ o* o" C, E$ g/ M: e
TLS SNI support enabled
$ E4 W* q1 f6 n, V( }1 a# Cconfigure 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,-E5 x( _9 Q. y" U% v$ b
7 X$ y; N+ V, ^- y( _& ]2 g* ?5 _4 H
/ v5 U' @: Y/ ^/ X/ I
nginx service nginx start
1 L. v9 i( A. [* O5 Ferror : , x6 A. s9 X' A* R. o3 v
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
) [9 q/ T% H* O9 r6 B% O7 I' Xnginx: configuration file /etc/nginx/nginx.conf test failed
- F/ W, d% }' O$ \8 G+ C) B! q* N+ B閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭) H, E5 G ]5 L1 l, B3 j
SELINUX = enforcing 寞 disabled & r$ q( J# I( H# X! p( n, `4 n
! D. v8 v3 @; E- Z1 F6 C6 Z
m7 s2 S: D1 d, }. n/ s- G* ~
4 k$ e6 b# H1 P
6 \, x. X0 x! }! m' L8 Z/ ]4 Z |
|