1摰鋆nginx* y* A, W0 K8 N. d' c. z+ ^: M
yum install nginx( _9 V5 j* a7 o" o, i% C6 ]: q. u
..........1 _ o0 z2 ]/ f" \
Running Transaction
2 r; c5 j [5 Q3 ]% n8 N1 ~- } Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
4 T( `+ L, l* A Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3. o- ]* A' q( N' t
Installing : nginx-1.0.15-11.el6.x86_64 3/3
/ e4 n' n* b" K# s: U/ }1 T Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/38 I$ g/ Y5 y% p( C
Verifying : nginx-1.0.15-11.el6.x86_64 2/3, f n* M4 Z* K! W2 a3 h M
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3" {5 O# M% a+ g) L8 b5 J- ^$ l
y$ v5 O; A9 A' ~, pInstalled:
; Q* N4 p" v" F% j/ W) I/ E nginx.x86_64 0:1.0.15-11.el6/ W+ n* ?& g4 u) ~! L" B0 y
Dependency Installed:
0 _7 E* C \! J g GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6$ E3 C; {5 V7 b/ w
Complete!9 s: o$ ?2 ?! ], Z! e0 ~1 I5 o, A5 G2 X
3 U* f8 i! F' X% ~( }& u' c閮剖/etc/nginx/nginx.conf
% T8 d1 s. q6 e( S
$ O% K. j4 N$ V/ `$ }7 `3 e. C2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
( G w# V% a T$ ~閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
* K1 N5 H* T* R2 E8 j/ p" M. o
( }8 n1 v# w5 N9 c. H5 {, zphp-fpm service php-fpm start+ N7 e; _/ N5 Q6 L- ?
nginx service nginx start
$ o1 J5 ~: n' E1 I Z) y0 R蝯嚗
4 L+ F/ \( l7 _7 B) j b0 o, B/ s箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory% c4 e4 j, W- @) r. {( C- N
閫瘙嚗
' Z/ X. \- l" J. w( A餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
4 ^4 C8 J" Y, J% P銝甈∪nginx service nginx start
1 {. Q l; V1 b P2 N5 Y蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46* q+ d1 s3 R+ U' e) b( M; _ o
亦nginx configure /usr/sbin/nginx -V
0 q0 S9 j# J( D7 j2 i( mnginx version: nginx/1.0.15
) ^# q( s( l3 r! U% [, Wbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
* h9 e/ d: W( Q* f; o' t. m" q; V8 y: yTLS SNI support enabled' d2 @" h5 M& F5 Y+ Q! Y9 x
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& ~9 x3 g8 M7 u) T/ `
$ W {2 X Q9 ]4 N9 m
7 V+ C+ ?9 S& ?! anginx service nginx start
6 Z9 n+ A. ]8 werror : & ?7 K0 Q; P: F3 G" j- g) g+ Z
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
# L3 [1 K$ u" y! G0 cnginx: configuration file /etc/nginx/nginx.conf test failed0 _0 t; X* T. G; U
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭2 ?7 u3 h) t4 D3 d' w! o' E( u
SELINUX = enforcing 寞 disabled # l, G. D9 k* w9 }1 {3 r
; }+ j! M& b9 M# C4 L4 R' y# v
4 t! J+ ~7 v! j7 |3 x% i
0 T2 L" B6 _0 W( P% r3 x" j1 B
# J% ^5 d. @3 I8 P. [ L |
|