1摰鋆nginx
6 m7 y8 g( Z7 h% l3 u6 p* T6 o yum install nginx: |4 V4 z% y' T3 r
.........." v" {7 ?1 Q7 M* c* I7 B6 N
Running Transaction& y5 a4 U9 Q) l3 b
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
& f, O$ B0 Q( W& y: O% x! L Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3% b& R2 u" a& [5 l4 t
Installing : nginx-1.0.15-11.el6.x86_64 3/3
. e. H; K7 B; g: b& Y% ] Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3: q. z9 `" M% m2 i7 p; c
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
! E2 `1 q: N# M( U) b) k Verifying : GeoIP-1.5.1-5.el6.x86_64 3/32 \9 J/ j* k! Q1 a& F
- @( J; R+ S# X/ C' b- j" e
Installed:
) N& V( r, w! N: ^/ ^ nginx.x86_64 0:1.0.15-11.el6' |/ j3 H7 ^1 H& I, t
Dependency Installed:
0 Z$ ]6 A$ l: S( l8 d# q5 a GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6/ c/ r( _% B. G" ^% ^8 h& |: e' @- T
Complete!' |, l& g' B. c! S" U
& V- T9 k6 g; H! u閮剖/etc/nginx/nginx.conf
. r3 Y3 a; X) b1 [0 z, ?. A7 I/ j: [" m7 w
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html% Y9 [+ v- M4 }' z7 x* z
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error' N& V4 [9 X) T4 v. n5 u& F
7 I& I( X$ ^. M2 Wphp-fpm service php-fpm start y5 f2 E8 m# f: y" a3 J
nginx service nginx start
2 q1 c# U3 q T- H+ i; x( ]蝯嚗
" _" B' N; c* p% C" x箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
2 r- \" g6 a: F閫瘙嚗
) @: ?% d# b( {; j( g餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64 C9 E$ M2 v& x$ [" Z: v5 l6 o
銝甈∪nginx service nginx start. C+ L0 X% a7 S3 d1 R3 H- J
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
/ ~; V: f( A" o亦nginx configure /usr/sbin/nginx -V
J! g* N7 D: u9 U4 w7 s! Qnginx version: nginx/1.0.154 L! x$ X# _4 \
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)( n& v7 A O3 H
TLS SNI support enabled
. L! D3 s8 `7 t: G( _; {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,-E5 s; c4 w- t0 i0 a
0 {* L3 s) i A3 @4 d1 f" @
+ p% P t/ w! X: Dnginx service nginx start . g' R: ]4 I2 l/ g
error : - ?) `+ t; E _6 l; I
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40% Y" U7 }4 {3 W x' M) N# G* ^; K
nginx: configuration file /etc/nginx/nginx.conf test failed
) r. @- R0 _$ v& ~閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭; a" L& m& V9 t' h2 ~' E5 z
SELINUX = enforcing 寞 disabled : G8 F2 u z, ~3 e. c
1 T6 E- d" `' \! ~, H) Q5 j
$ |% ^( C, f+ g( a! G- f4 o) v
. e! T5 d$ i6 w" Y2 n6 ?
; Z+ Q! A( u! O# s8 ]$ R" q- M |
|