1摰鋆nginx
/ V1 N1 x: c0 s( ^/ b2 C yum install nginx: u- u$ ~- }8 H7 ?( r
..........5 s5 ~. e0 k E
Running Transaction
3 n* o; T( O O# e. O Installing : GeoIP-1.5.1-5.el6.x86_64 1/34 L& m7 k* h$ J
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
+ `; u( Y2 A) K- b Installing : nginx-1.0.15-11.el6.x86_64 3/3
/ h, [) r; N @: r# T Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3. q4 A# K4 v. A8 z
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
0 N P& G/ M- e' ^9 H2 ] Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
) ?6 C* S& J( D7 W, y5 _9 r7 g) t. ~5 g) A1 B6 S) `1 }3 J
Installed:" L- o3 k4 B( R2 X% R. R
nginx.x86_64 0:1.0.15-11.el6
. R) T& h. X+ }! e, R% m7 MDependency Installed:" J0 ^6 X8 x/ a4 {3 a
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
4 h) |7 w) M- w1 l0 RComplete!
; o( n7 Z# b8 s1 k! x, m4 @. O/ ^" N
閮剖/etc/nginx/nginx.conf- Z& q0 |' S, Z' b
- M3 v, K0 u: D6 P. |% `, s8 w! t
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html9 @0 h' c( q: ?: B+ S
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error# K4 G7 t0 i: [+ W: H
9 \( S" Y1 Z" K% `php-fpm service php-fpm start c8 l' W% k1 M6 T
nginx service nginx start
8 j6 g' t9 ]" a3 q9 {: d5 ?/ P- Q6 O蝯嚗
( u, N. y; G* S6 f箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory' S" p, n9 P2 B" I4 A& e* s
閫瘙嚗7 l( N+ u7 h" g' E) e
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64& U8 j! x! Z0 m+ J6 o4 h
銝甈∪nginx service nginx start! n: \5 `8 o" W9 f8 s6 A2 _+ c1 m m
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
' B0 `* x' p# r) @1 m亦nginx configure /usr/sbin/nginx -V
t8 H4 n0 l: Z9 f7 Q; ~+ W) Nnginx version: nginx/1.0.15 @5 l. K/ J# M5 z3 i) H' i% x
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
2 j: f# L* `. X0 l" {TLS SNI support enabled) q2 l- j% ~/ t& i3 A
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
% O+ O+ y6 r7 g! D$ v' W- s t
7 V' K: T1 C; E$ W5 l4 K5 u( v0 u G9 Q
* z4 B" ^1 X4 X7 q ynginx service nginx start
$ @6 T5 o9 I- F& A2 _. u p& Yerror :
$ P# c/ F! A- \8 Unginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:405 _8 S! d; B. C+ p( l* T2 E5 X: F
nginx: configuration file /etc/nginx/nginx.conf test failed
$ M+ {5 V( {- q$ A% ^閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
- R& G9 v1 }* p; q1 |- O8 qSELINUX = enforcing 寞 disabled
4 ?4 U% }, p9 u$ U+ J
. D' j# ]( c9 D" f2 A% M( @; B$ ]& \. r$ C6 e$ a+ y
2 K, |0 z8 } v, A9 k, f# |( t. z1 J& U
|
|