1摰鋆nginx" K G- n6 W- F5 H/ z7 l) O
yum install nginx6 T$ Q5 |8 W: b( B$ D+ T p
..........- {3 l8 v2 _# I
Running Transaction' I; D! ]2 P2 E* e" f. {% y
Installing : GeoIP-1.5.1-5.el6.x86_64 1/36 e& D( P3 q5 U
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/37 M9 f& n4 D" E; h8 R7 g) ?
Installing : nginx-1.0.15-11.el6.x86_64 3/34 k0 ]8 Q% v# C. T" j7 |
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
. c7 U( h! L0 b6 C Verifying : nginx-1.0.15-11.el6.x86_64 2/3# m! D& O( [7 ]; X9 J' p
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3# p9 g; o/ I2 f1 j# X0 b( e3 p/ H
5 j- `3 a2 d5 N/ Y/ b) _9 h1 d; J" SInstalled:
; v, h0 |! W3 C: }8 r4 a nginx.x86_64 0:1.0.15-11.el6' Y. Q% k3 l$ K) g+ G7 D
Dependency Installed:
a: i- D$ o) @0 ?, F GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
2 u+ G9 Y5 ?( {1 `+ U- C; m, l& rComplete!1 d2 }1 N* V/ z( g7 E
8 ]6 Q: h' D( T+ I |
閮剖/etc/nginx/nginx.conf& x _6 p/ W" I8 n+ `. U+ a
9 o" \6 h1 q+ Q9 c/ N, K
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
2 m! C$ a: g! }閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error E3 [1 @( C* |; c1 X( R2 c% t
: V# i! Y6 a. D9 C ]
php-fpm service php-fpm start
7 R* L! \) O3 C. S4 I ^9 Gnginx service nginx start4 Z& L+ U) R! N, y, }+ z; N* a1 u
蝯嚗0 q/ B7 F! i( f4 N$ @
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory. R5 C/ u1 `6 n0 ]
閫瘙嚗* p) W$ t" E* p5 P) x/ S: f
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64- F" q5 p7 ~# a2 p, g% A2 H
銝甈∪nginx service nginx start
1 J- O- S0 G d7 e1 W蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46" O# F* @9 ^% t) o& s. P
亦nginx configure /usr/sbin/nginx -V" z( d- A8 t: H3 z
nginx version: nginx/1.0.15) h/ A, v1 X$ e/ n5 X
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)! I; J9 T( g6 m- R7 b6 u
TLS SNI support enabled4 v+ d- U- M+ l* v. w
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 |; P5 m- t: d3 h6 J( o
" Q$ V, F! W$ o- x1 y: y+ _
8 g2 h$ u! X( L* lnginx service nginx start
7 e! I7 `2 c' T# m/ z/ Ferror : ' U2 C1 u, V8 c, i
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
5 i- p0 m @9 Knginx: configuration file /etc/nginx/nginx.conf test failed
4 h$ ^+ B, d4 F閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭, J. ^/ |: E7 O9 e' i* d
SELINUX = enforcing 寞 disabled
9 R, S4 S7 o" k' y9 @2 F+ h! {% E1 ?! B7 g) o3 Y
, e8 O6 z6 a- j8 E, n& o8 c. n: v3 h( |; _; r
: S& j% Y4 a0 j
|
|