1摰鋆nginx
: [6 s6 F0 ?1 N8 q7 c yum install nginx. L* h" ]0 v9 S2 Q( r
..........& v' I- k3 g x8 c& e# P
Running Transaction6 N5 N0 w8 o) I" J
Installing : GeoIP-1.5.1-5.el6.x86_64 1/36 F/ t5 ^$ W% e2 g6 w6 v, W7 L
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
0 g4 P7 |4 t; i; |/ g$ I) Y- c Installing : nginx-1.0.15-11.el6.x86_64 3/3
: p2 ~% V0 E* L% ^& }3 c6 D Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3/ R: C) t+ Q9 t6 y; [# q- w
Verifying : nginx-1.0.15-11.el6.x86_64 2/3% r z5 G* D: G% e6 C
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
$ n4 [6 j4 w6 I- x
5 s. n. X `1 SInstalled:+ `% s* a j5 \
nginx.x86_64 0:1.0.15-11.el6' {8 h0 `2 e5 K8 m) y0 O
Dependency Installed:8 r4 M3 X" _+ P* v3 ?' g6 ^
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6* b7 i6 C+ l) p3 r" ?$ c' @6 V
Complete!7 |( m3 ^, X3 ? N1 s$ I7 F
7 C5 R* {; } B" }& M閮剖/etc/nginx/nginx.conf5 ?" y: v- J$ j
! w& g: {3 Y' }$ J1 F* b
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
: \. X% V: D' I# e3 Y4 q' z閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error" Z! {. ~1 q1 D
o+ {' f% L$ a+ gphp-fpm service php-fpm start
5 r4 {" z2 t9 E& R8 B1 Fnginx service nginx start
+ W' ?. X2 b; i" B) _# w蝯嚗 e! V4 g/ Z* o+ P# M
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory8 a. f5 [" m5 y* ]2 f
閫瘙嚗
5 k6 S+ \* R9 S6 |& ?: Q餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib647 c5 C/ u8 c: C: T
銝甈∪nginx service nginx start
' V% y) ]6 w. A* a1 D蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
7 F& ]- Q/ q1 E- {亦nginx configure /usr/sbin/nginx -V
0 U- W) l$ I6 a- Vnginx version: nginx/1.0.157 O( p. l9 e& X0 m
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
\/ z( L) g* b- {( i+ {0 eTLS SNI support enabled
" b, A1 F3 V) j5 D1 N$ N% I! Pconfigure 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) k4 Z2 I3 I& W" @2 Y- J: s
3 U9 k& N3 n! G4 {. U" J" d) |0 I+ D" V8 p
nginx service nginx start
9 p; a/ ^9 u/ l5 c2 Q, verror : $ d% f+ G. m7 K. f
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
2 _: ?' e. P: R; G8 bnginx: configuration file /etc/nginx/nginx.conf test failed S# ~9 E( F' X3 a, y5 T: ^- m
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭8 h" w' x) G. a0 [: Y/ `) S+ d
SELINUX = enforcing 寞 disabled 4 h/ ?2 ^+ q' @% i8 n
& |& x3 y7 W; R; i& ?9 {/ H- j
: A4 c3 O9 g6 n1 ?# ^' X _
( ^0 \7 q- T( s( |7 h5 m
2 j/ Q" y {7 F7 W# J |
|