1摰鋆nginx1 D5 F7 w4 J; j! l
yum install nginx. i- G8 O1 l+ E
..........) Y9 i. Y W9 d' I/ s
Running Transaction( Q5 w* m& R/ x. N+ {- r0 A. r& Q! x
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
% \# x# J+ m6 T Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
" t! Y7 `1 N" ~! W: o$ L* m) A" ` h Installing : nginx-1.0.15-11.el6.x86_64 3/3; ]+ z$ i2 Y w3 w
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
/ z8 X, n4 L9 |4 w/ ] d; H Verifying : nginx-1.0.15-11.el6.x86_64 2/3* q" F6 c o7 R3 l
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3! X2 M1 J0 C" p2 K
4 A; ~6 a. U! n! ~) h* N
Installed:
4 [, j( m& S9 e. ^# b; k- n0 @ nginx.x86_64 0:1.0.15-11.el6
4 h- Z9 s+ |4 lDependency Installed:! E! z+ `. x5 q) V: B3 _
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6% }$ T. u2 a* ^ z, P, U
Complete!5 b; v% P6 K0 }1 o3 U
: a8 O/ i! Y" v! ^
閮剖/etc/nginx/nginx.conf: L8 c) g9 D7 z V+ n X2 i' b% S
7 f& V n& Z3 h4 h5 n
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html2 c5 |6 q, M, d! c% ^
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error3 n- _+ L& @1 P0 n! h7 n
7 n+ k/ V% }( |
php-fpm service php-fpm start2 c' \9 {' H; k, _7 z
nginx service nginx start
0 Q% e' A& T( j! i蝯嚗, {8 S& h" y4 X6 B
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory9 `6 C' n6 [' _4 K' s
閫瘙嚗
! _) J0 c" K, D; o( m/ |餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64/ P* O9 o1 J E4 q! u5 o
銝甈∪nginx service nginx start8 n& `. [- i& F' ~5 u
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
/ C! c8 \+ k* i/ E亦nginx configure /usr/sbin/nginx -V5 Q& Y& V( D5 ?" A& a/ p5 F
nginx version: nginx/1.0.15, p& H) d) [% |, t5 u$ J
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
9 M( T4 ?, x' w2 MTLS SNI support enabled
" I5 y2 q/ p4 ?1 X/ d, O( b mconfigure 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- I N; l. o8 _) Q& t5 S; i
4 M# P+ N" a( i" o' W, b$ A
/ Y/ p$ x" z; H! Z5 ^& g$ W
nginx service nginx start
q" w H2 f: A8 o4 L$ r) Werror : 5 D; s) B9 U! w4 j4 d
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
_9 P4 c% w; _$ M$ j" F6 Jnginx: configuration file /etc/nginx/nginx.conf test failed
5 F3 G' d ~$ t: p. L6 S閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
/ C3 a% H0 T+ F( J$ a0 R7 bSELINUX = enforcing 寞 disabled
& I4 X" } O- c. p4 Z! e8 r
5 O! R( _$ l" B9 C2 a4 E
9 Q2 [) ?% E# a+ f0 S( c1 W
2 m& E$ w7 A2 m; d$ j! f
0 g/ Q. s D" U; { |
|