1摰鋆nginx1 b1 W( m' p t4 s, {/ Q( h
yum install nginx( r. G" Z9 n! B! W2 u$ f$ N, d" y1 G
.......... t% j. l8 O& A9 Z
Running Transaction
( m8 R# z6 S' q# N) S s Installing : GeoIP-1.5.1-5.el6.x86_64 1/32 o. M) e* j7 \7 @
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3" A" b# G4 l, ?* O! @% r! u3 F; _
Installing : nginx-1.0.15-11.el6.x86_64 3/37 {/ Y! q! }( r8 |1 J
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/31 N7 H7 M. }1 T) v1 p( F* T9 d4 N3 s; k
Verifying : nginx-1.0.15-11.el6.x86_64 2/3; `, t: Y' }7 X
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
, U( Q+ x. y7 F6 k4 b- |: P, |
* X" X0 F1 s$ {" ?6 ~3 y: Z: ZInstalled:( r- E7 Q7 p8 [
nginx.x86_64 0:1.0.15-11.el6
. `+ ~& Q3 L% z0 \9 {- B `0 l+ uDependency Installed:/ i4 i8 J4 f. M* f- r& `, E
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6$ s1 `+ y3 N& [" a4 B5 N/ E' O+ Q$ E
Complete!9 [+ @7 g; i- p* Q
& s$ s# F, m7 [8 t& e+ L4 n" T
閮剖/etc/nginx/nginx.conf, G% K3 w) c2 W ~. ~* r
* U! @1 _. f" p( _2 N
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
* a4 z5 B5 Z4 I- d) j: |閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error6 ^. B# h. A; ?9 T- U
2 t! I: C! f7 d- {0 pphp-fpm service php-fpm start
8 o% z, }. V+ B Q. c6 Qnginx service nginx start7 K4 W5 A: H! Y
蝯嚗
8 v+ B8 Z- @ R8 c; i& B: ^; c箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
9 T8 l7 S0 _' h閫瘙嚗" c7 V2 M3 G7 l" }0 [
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64: x1 n `# U' c6 z
銝甈∪nginx service nginx start
' c7 w! P* X' g. y* P5 J蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:467 ^4 {* I7 Y( q; L/ O2 f
亦nginx configure /usr/sbin/nginx -V
6 T" L4 X6 h+ Y* k- G% Mnginx version: nginx/1.0.15/ o% z/ w% c" f4 f( F( x
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)9 {! ~5 y. n3 l8 l
TLS SNI support enabled" v) G8 W9 _. a/ r6 E Z' s
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: o4 B* m; `2 ]) }( e/ n
# ?* v9 w3 W& _% a; S3 ^) h3 O. P6 M3 j9 h8 P. ~
nginx service nginx start
8 L# k4 i+ O& kerror :
4 H. P0 l3 A3 Vnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:400 X6 ]3 I5 K4 c6 K4 E( X. }
nginx: configuration file /etc/nginx/nginx.conf test failed
! a4 X8 N' D& b9 l0 e閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭0 K U+ Q# L3 ~5 i( k; [: C9 T
SELINUX = enforcing 寞 disabled . A1 o2 R1 L' \
2 @( c7 ?! u2 X- Q; G8 Y
3 t/ Q5 `. C" ]5 S3 a
1 g6 h* W" d5 D1 x {, a# M. X$ b
! n2 n. y5 @7 e9 T8 [0 h" U6 \7 ^
|
|