1摰鋆nginx
' m# A6 `8 v" h6 f2 V yum install nginx6 R" |! F& M3 i# r8 c
..........
, V6 U2 n6 q( E3 @; b# wRunning Transaction
, H0 ]# l6 ~0 s0 R5 Y Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
( c) ^; C+ h: _7 ^7 W Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
: E r$ J( ~6 k1 Z' q4 n( K9 r Installing : nginx-1.0.15-11.el6.x86_64 3/3
0 @* Q7 C! M6 M Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3% W M& W; }% K% o% _7 y
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
7 h+ j# W) n& I1 H Verifying : GeoIP-1.5.1-5.el6.x86_64 3/31 i8 `3 z8 U. K
9 B5 D, g$ f: @2 f+ |* `% lInstalled:
: j# p; U/ X" Y- u& m2 q- F nginx.x86_64 0:1.0.15-11.el6
9 S4 G% i4 r! D: C3 Y2 r% DDependency Installed:" b% t9 ?; P7 D+ K- C, [/ ~
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
& |( x5 ?2 [: I9 rComplete!9 I, j# y) @6 e) q
6 B5 M5 }$ d% H7 u0 ^. b$ s
閮剖/etc/nginx/nginx.conf
, T0 ], U) c l' x$ H* d ^2 I2 e, x) J r; J. K
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html7 D3 e. c; s$ l
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error! L* [, f7 I3 N, t3 P( M5 c7 Y" q
: B* x, l/ G0 c8 Z
php-fpm service php-fpm start7 T) }) H, A# q# T- `
nginx service nginx start
9 x6 B J9 U1 h0 e5 s/ B8 k蝯嚗
% r1 Y3 e0 o: M; W; g5 o* ^1 W/ {箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
! L( p& `* q* ~9 |! O閫瘙嚗0 M2 `, [& D3 F' T
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64* ^2 e( j G$ D$ v0 d, F8 W* u/ ]- |
銝甈∪nginx service nginx start
+ k4 w" |5 i3 B6 r+ |" p蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
( [6 M/ c2 n+ l- x4 C& S: R8 M亦nginx configure /usr/sbin/nginx -V
; a, g/ a5 {# [ k% u9 d- N' \; ^nginx version: nginx/1.0.153 L' b. k% S% O. C- W
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)! r) n' Y& {* I: J2 [" {3 j9 B
TLS SNI support enabled$ \! F2 Y9 b7 W( 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,-E4 I7 b) l2 U% Q+ y* a% d
% }$ [. G8 f" c9 y
0 w; K1 y% _& ]2 x6 h5 n/ M
nginx service nginx start
- c) V; g' d* I8 Oerror :
R) I+ v* l. q. p. M" Jnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40 c2 Z( ?, S# A/ L! V5 x
nginx: configuration file /etc/nginx/nginx.conf test failed0 T. [& b q# Z) |: L2 l
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭$ b0 r+ b( n5 d) ]: g" X
SELINUX = enforcing 寞 disabled
* c3 ]3 r# Z" n& j ~9 ]7 o; x& U4 y2 L! w% ?% W
( r$ ^; V5 n/ J. @4 z0 b
! J- `( x% V$ m/ K Q( x% b1 K' q
* j0 r7 |9 P2 K% h! B
|
|