1摰鋆nginx5 `: Y$ S9 u7 x- [- b
yum install nginx
( [4 \ T* y) L w" ~( g8 Q..........! X' |0 p/ x. p& P# M& x0 M
Running Transaction
5 t9 p$ g% O. T/ S- a Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
7 O* s( T+ i# \: @# @ Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
$ C' N7 c5 R" O) ` Installing : nginx-1.0.15-11.el6.x86_64 3/3, l8 P" ]3 j8 w5 h+ G& x
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3# }) g0 J9 K! E% @/ X
Verifying : nginx-1.0.15-11.el6.x86_64 2/3: S! T9 ]% |9 H+ e' |% V
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
m: _- J' ]$ g. V& e& d3 u7 X7 ^
5 |8 x% w* r+ w: _6 ]3 J& }* r9 T# h( IInstalled:
' A n8 A2 t; M7 Q# q) [ nginx.x86_64 0:1.0.15-11.el6
s+ `+ ?2 `, ^ l5 U+ ]- }" I+ }Dependency Installed:
6 J; o9 u. y: _% Q1 X2 r" X7 U GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
; z& \- b; [# l$ ]: W* m0 MComplete!+ U( I5 y0 U# p& F; l/ x! b/ F& G: \+ ]
/ M% O0 K4 F2 W( k6 m6 u
閮剖/etc/nginx/nginx.conf
4 z: H4 g6 v! c$ Q8 d1 ^/ L: L
; e9 |# G9 r3 h# t4 L0 c/ I2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html) {4 m \9 C8 L( g$ s2 S5 D8 L
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
% @3 a4 a$ R+ @- a% \1 l) M- T9 ]
php-fpm service php-fpm start# c" s) A+ K E1 Q, C1 {+ F+ R( ]
nginx service nginx start
( F0 S, s& o5 I2 A0 o# e蝯嚗
7 N# w/ Q. i0 v" ]箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory) O7 H& i- x6 Y
閫瘙嚗 |! T3 j& H+ X9 \
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
: f8 E K+ w5 p5 y銝甈∪nginx service nginx start5 q( I8 |7 G" k e1 Y
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46 ^: A0 c, m9 X9 ^* o1 y X
亦nginx configure /usr/sbin/nginx -V6 @6 T6 E) q& O# q8 G3 d+ g1 X
nginx version: nginx/1.0.159 ~8 S3 R' c" C4 S+ L7 N
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
, G: [- z" O5 K0 o+ Z# KTLS SNI support enabled: [, U: S; D! l! L
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' F4 q5 y8 a0 P, R" g' R
2 d! x- g3 f; G5 G
5 T+ Y2 [% L9 }( J$ Y; @
nginx service nginx start
0 F3 }0 n h/ Y% @error :
9 K4 j- b4 p: M: Q" E; knginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:404 _! r& H8 m9 O) A6 \3 F" a/ r
nginx: configuration file /etc/nginx/nginx.conf test failed
) A* j+ w1 D- t% z( Z7 f" P閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭; [, m9 F9 A0 r+ _; L
SELINUX = enforcing 寞 disabled 2 \5 e1 n( m( _( N& V- w. K: X
0 h; M: E* J( |" e* h3 h' Y' Q
8 P- Y* b; f9 U% e* a, [9 C* ^8 a8 r
: K7 Y' V1 @, S N
|
|