1摰鋆nginx# j" I3 V3 Y- R$ e% r# i! m0 ^
yum install nginx1 V% H* G* I# Y% k O
..........
2 y5 k/ @2 b" C8 sRunning Transaction }$ K. s1 E1 \# {5 Y9 G& l0 Q8 T
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
: R( z+ ?3 x' T; y Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
% d- l+ K* A7 ~* F2 x9 k* S Installing : nginx-1.0.15-11.el6.x86_64 3/3
( e/ O$ i, r- T7 Q+ h Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
7 |* @* {. L! ^5 W4 [1 x7 @ Verifying : nginx-1.0.15-11.el6.x86_64 2/3# }5 C0 |: s5 k6 | f c
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
( L3 O' ]" m" U% `
! r5 w( \( w3 U% a4 @+ d4 K/ S. lInstalled:
7 s8 G/ \9 {% V8 M nginx.x86_64 0:1.0.15-11.el6. h2 m- k% J7 h$ I a4 ~( v
Dependency Installed:4 G9 i5 R1 F! q& K: D ~
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el66 [: l' m6 k- x7 o- K; e2 e1 r, J. T
Complete!
1 s2 @1 E3 F( o- s& p+ w4 M) ]$ R
+ L- ~! d; a# c/ ?- M" f- u閮剖/etc/nginx/nginx.conf9 @9 N' T6 t' y2 W% R2 m. }9 Y
- L( k- ^ R5 |+ ?! Q0 M1 @
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
: t6 d' r; U y7 \閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error: B, d5 o. W- ?
# w! @+ L" z! ]" h3 P V- p
php-fpm service php-fpm start5 D0 A) x, o2 Q6 y+ N
nginx service nginx start
+ _* d, r6 L: {1 f1 Q1 P8 [蝯嚗4 c# [5 x9 G7 z- _
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory5 m; L+ Z) D. Y @2 }
閫瘙嚗; ]! A: {( p% N/ v) d% [# l& |: _
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
- `( c" b$ A" ~銝甈∪nginx service nginx start0 I, M, U. S/ }3 x7 d9 G! U
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
. L; Y, \# H9 C7 ^; _/ D7 I* W' o/ G2 M亦nginx configure /usr/sbin/nginx -V4 l9 c4 G2 \" M/ U( J
nginx version: nginx/1.0.15! C# O( z( o/ f4 O( y q
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
, {# @$ B- h0 n/ w, I4 X; E! m' BTLS SNI support enabled
% o: }2 q1 i3 E+ t8 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
9 L& Q9 s k- n
. d4 Q8 ?& p. b, o9 S, f
# g. E' ^$ N. `$ A( U j8 @% Tnginx service nginx start
' j; W( ?7 g, f) s; \error :
+ \1 ]/ X9 h. u4 g6 E' p; Dnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
( M* U8 E# D1 y5 knginx: configuration file /etc/nginx/nginx.conf test failed6 i1 D8 Z' c# g% n; s7 `, {
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
% c; @" H3 @0 e+ [. s4 oSELINUX = enforcing 寞 disabled
) M1 L0 R4 e7 a3 W L- ] w! S' X3 o Z+ l' ]- r. D) D) r
4 A2 J6 Y, d0 i. S1 X
$ H7 @/ A/ |$ p0 _9 S
$ P; P& q. s- C- r& o" f" ~6 A |
|