1摰鋆nginx3 j: o& {; m+ }4 s& F/ C r
yum install nginx* [$ q2 i1 ~' m0 ^1 y6 S
..........
1 H' K1 B+ W( j# Y, `( TRunning Transaction) J8 H* n K3 V8 a, p4 T* d% g4 Q
Installing : GeoIP-1.5.1-5.el6.x86_64 1/32 {1 [2 D* T+ f& l7 q
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
1 `1 _6 W( z- z6 d6 F! M% K Installing : nginx-1.0.15-11.el6.x86_64 3/3
" ?7 U# _2 r, f6 X& e0 [ Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
9 M! \ r' Y6 R' u. q3 l Verifying : nginx-1.0.15-11.el6.x86_64 2/3
! L+ i8 x( h& [- I1 o- v: }; K8 h Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
1 b( c1 h" C4 Z
1 c9 h+ j3 Q1 G! F( g) C- a) L qInstalled:- c& A# H$ e2 C0 S5 Z% s
nginx.x86_64 0:1.0.15-11.el63 W, Z; ? M+ X
Dependency Installed:
! O. C& E* Z. w! A' T2 ~$ s GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el67 @( b/ K3 R6 A$ N; j. B
Complete!
) x( t# `6 U) W& s: j5 F+ |7 H# D1 c# D! F
閮剖/etc/nginx/nginx.conf
( R4 I6 f: E& w/ h9 @8 ?- A! p! ]' `9 D4 I
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
& F; J P& @& m3 w. @( p閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
/ D. O) d0 w( ?9 D$ x& N/ r. C
S1 `) e9 f8 s. W! Vphp-fpm service php-fpm start
. o4 V) c) t$ e/ U- qnginx service nginx start$ b) t/ r6 D5 E( a* g% I; x
蝯嚗. g) _# ^) q* ~0 Q% j" o
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
/ N$ k) O/ F5 [' u; D0 c: m閫瘙嚗( k0 Q, l6 s9 I k1 x ^
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
3 R9 J9 d# y& D6 g- V& Y銝甈∪nginx service nginx start e5 z9 X/ y" W6 n' j8 ?" H
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:462 n3 R( \( ]; `; f5 S
亦nginx configure /usr/sbin/nginx -V
0 P- I' ]1 [8 znginx version: nginx/1.0.155 z! \' l/ ]. R; b& T+ p
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)* o" U/ [) Q$ L _2 O0 Y
TLS SNI support enabled/ e* L9 n8 F5 L% G: ]9 a
configure 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
D% `* ^' Q, e. K) R ( N& k1 ?1 f3 q, m2 G! I0 \
9 p/ K8 [$ X( Onginx service nginx start
& U f& n1 [8 V# y8 Serror : ) E! m: |) ], v
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
( n; Z! `; T* n# n3 M* pnginx: configuration file /etc/nginx/nginx.conf test failed
8 s* G+ s1 N7 M4 e0 l- t E閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭3 _9 L, U0 Z+ ?+ m. [) a( X
SELINUX = enforcing 寞 disabled 4 O, V& c' H! p; M
. l0 t/ I% a; F+ m7 P" @* g( J) v
( H, t% h: |( ?& P8 R% T/ v( s1 }1 Q& g: q) F/ f
+ h P: m! `8 \* O- w) z |
|