1摰鋆nginx
4 Y8 ?+ {) _' ]+ C yum install nginx
0 n0 L- L- n# d; N5 _..........! ]2 B: e$ w) B3 c) f7 I( [# y
Running Transaction1 j j1 E- A+ k8 a. Z
Installing : GeoIP-1.5.1-5.el6.x86_64 1/35 a! e6 u( e5 y+ F' t b
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3% T+ [, E0 l4 H
Installing : nginx-1.0.15-11.el6.x86_64 3/3) q; v/ H6 k* c/ ?0 r/ K9 z) D
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
- i, o; ~9 K r& V Verifying : nginx-1.0.15-11.el6.x86_64 2/36 U. Q8 f, M" t3 W0 t8 I3 {. E0 g
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/39 u6 P; D& _" A C0 [
: F) L" x$ |* V' t% \
Installed:% ]" H3 E( t7 {) s8 b1 ?5 R
nginx.x86_64 0:1.0.15-11.el61 g4 l. J. |! w% b1 S5 I- j
Dependency Installed:
5 g2 s$ g' ]9 x GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
" H& J+ P b0 u( @) q: ?6 r# @Complete!, o' b6 J9 a# b# t0 E: ?$ q* v/ ~
2 \, j2 \* B3 [; s( A- h& I% W
閮剖/etc/nginx/nginx.conf) J i# ^! A9 U6 \ Y& H
, p8 x$ b% E) \: r1 g6 {" M. N
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
( {4 D ^2 }4 u& r% [" L閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
$ ^* W9 [8 D& K# k# P2 v8 M- l0 s- U7 m$ ~9 }2 [
php-fpm service php-fpm start1 J( x6 o/ s4 T2 u
nginx service nginx start# }" ?, g3 Q: a3 h5 E: W: w
蝯嚗
- C3 U2 U8 Z4 N+ Q箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
* d$ Z S1 F% j/ @閫瘙嚗$ |& d1 h: e4 P
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib644 A4 G& ~5 `! d& }
銝甈∪nginx service nginx start
& k0 u8 |1 S7 ?2 J9 B8 W蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
4 B! U0 x6 |2 b6 @8 K亦nginx configure /usr/sbin/nginx -V9 {3 H* ?' c, J; [
nginx version: nginx/1.0.15
9 `6 S4 H4 }. ]8 x2 _built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)' R7 d6 F6 v N5 W# q( D
TLS SNI support enabled
" a ?: k2 G/ x0 ^: f. ?+ F U$ oconfigure 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% L9 A! y+ E8 F% p8 p$ @ [
1 a$ ^0 m4 f D( y4 v) C: M+ m g4 S- Z2 j' @. s
nginx service nginx start # x! C+ i( V8 \# C; }% T
error :
& p1 l1 b: `: J1 @+ F0 S$ H/ vnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40/ f& j B$ ~: R
nginx: configuration file /etc/nginx/nginx.conf test failed
' o7 G, d# S9 v h0 k2 ?. K閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
" r8 p' s; T4 q5 @' YSELINUX = enforcing 寞 disabled
$ D* B: k( ]8 X0 v+ ^
& c' s2 F& J. S" f$ z0 c% u7 G! v" s; b7 A+ o4 T' q% O# `
) w3 O! Z2 f2 J1 }% G: [% @2 R& {' m! F- J
|
|