1摰鋆nginx
7 T/ m! K% Z# x1 C yum install nginx( G* _0 S) t, q/ s J. ^7 z# V, y, \
..........* m. j5 g" S6 h( E. E: p
Running Transaction( G: Y& Z1 D# o! A
Installing : GeoIP-1.5.1-5.el6.x86_64 1/39 D0 n, i; l, L. Y: g
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
+ E( V) }7 H% E' [ Installing : nginx-1.0.15-11.el6.x86_64 3/3! e$ L: @4 E0 \0 q
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
1 Z% A$ [. v* S4 p9 q, r Verifying : nginx-1.0.15-11.el6.x86_64 2/3. _; g4 q( b- d; N
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3& x/ a8 A$ @$ d
" Y. Q, i/ a3 q; o& z4 d
Installed:! v P* z& c2 t
nginx.x86_64 0:1.0.15-11.el6' Q$ D, W; S* t/ O! t$ N" @
Dependency Installed:& l! Y& G; d3 c6 w7 h0 d# q
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
. C) r. M1 q h. b& S9 N+ V, jComplete!% G& I! h- D# d/ G; s; F
+ a' B4 P1 U0 v
閮剖/etc/nginx/nginx.conf" \( v( m. Z& D% V% Q
4 ]: I8 X: p- O. } @( k
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
; ~' Q% c; c. a; E* O( _ }% _閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
3 ^9 N6 Q% y* N, d- @2 X" s" P/ K9 y" L7 f" d; M/ e
php-fpm service php-fpm start0 @% |6 U2 j' q" I1 J
nginx service nginx start. P- ]* P' D0 S# m" m
蝯嚗
9 d0 q8 h8 Q( {1 W/ C ~箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory5 C2 N9 H3 V5 I* X. a) n
閫瘙嚗
9 L) a4 n! q! H% N/ ^8 `餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
2 D, E M. t" g, s c3 |銝甈∪nginx service nginx start2 f" N, }% p( H( K
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46( B0 ~; p- k1 I" U9 C
亦nginx configure /usr/sbin/nginx -V
4 T' V- Y9 f5 o- Ynginx version: nginx/1.0.15
$ ]" F h# A/ ]3 F J4 C1 p4 ?built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
$ J# g1 e2 V& c8 q( e4 sTLS SNI support enabled
1 a& q- S) c7 T1 O6 Sconfigure 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,-E3 }$ E3 ?2 N& @" |
& n5 N. H% [4 D% h( \ K% _0 b) h+ a! _; \0 x9 ~
nginx service nginx start
6 ^/ q( ]4 M& O! ] lerror : ) H% Y) z; I* o. H
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40- m5 q& d! s P' d/ W
nginx: configuration file /etc/nginx/nginx.conf test failed* } w9 Y* f( A& i
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭% ^- u+ b/ U& i, x& y
SELINUX = enforcing 寞 disabled
5 m( b( L1 Y* B" \, E/ p4 Z c5 c5 s7 v; F% D, @1 }6 N- f
! R" o3 c' s8 F1 Z t3 u0 v- ?+ u- ]! C1 D
9 }$ f0 b; q8 C) e: A |
|