1摰鋆nginx' M! S8 G2 f: A8 p
yum install nginx6 ]) l' N4 o, i
..........( W, l. _: i( C2 j
Running Transaction. h& n2 t/ w, n- e+ ?6 @7 v p2 u
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3; u4 s4 @& m3 y. N& a6 s- Q
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3 T1 X# i$ t* F1 j
Installing : nginx-1.0.15-11.el6.x86_64 3/38 y& j% a6 n0 B8 I8 D& P) w
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
: m4 W; g% l' M; x# E" |0 ^- e+ P Verifying : nginx-1.0.15-11.el6.x86_64 2/39 j5 p* X3 b4 O' k+ u" y
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
, b/ S& b5 |8 L" _& B! n3 U! H
" w0 U! d: w8 u2 h5 e4 ~/ p. `Installed:
# y1 r2 L8 }4 }9 y$ M0 j nginx.x86_64 0:1.0.15-11.el67 u. u+ }2 }7 n; I7 V1 ?
Dependency Installed:
. U+ ]7 _( M- E GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
8 {. W8 P' B! L8 x$ {, D: FComplete!
; k8 m. c! r6 e
0 x+ y0 \# L- g2 v閮剖/etc/nginx/nginx.conf
0 `; \/ e: |: G& X7 m7 a% U; ?& D+ e: f
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html( i! O9 ]6 d4 D9 r! b# @6 O
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
4 L; J5 m* E" S) P3 y: [5 k- @& Q" I9 I1 C
php-fpm service php-fpm start6 O0 d! E8 \7 G; [' Q: Q# o( [
nginx service nginx start! q" r* k9 {5 [* x( U5 u) `
蝯嚗0 n, ?3 s5 Q: m$ j
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
$ {1 `2 f+ s# C" C* @閫瘙嚗
" A* _( G5 J- V( C餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
) a( J, y7 C+ `8 L) _4 j2 ?銝甈∪nginx service nginx start
. a/ M. _5 o8 `% H蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
2 X: ?2 Z+ |3 C: w6 Y亦nginx configure /usr/sbin/nginx -V$ ^' }& [, n* K
nginx version: nginx/1.0.15
4 q! [/ O7 G1 L$ Y: Obuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)6 c6 W0 m, V$ f
TLS SNI support enabled
; u) x% [, E7 l5 D5 r3 Lconfigure 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
) H6 Q' w9 o9 U& u% S) B9 y : M& g. E9 E0 O' a' j
- f9 T: m: |, u( U0 u5 J! V2 H
nginx service nginx start * @) ~8 I& C3 a
error :
) C# s) m/ s* c; M, Y. o8 [+ C' Onginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
6 I, j* Q6 |( r' U6 Tnginx: configuration file /etc/nginx/nginx.conf test failed
4 x: `4 @7 E& h- U& W, g閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
+ K& y/ c* c/ y& R( F8 u* }SELINUX = enforcing 寞 disabled
7 ?. C! m, _/ e" ], H
% ?, ~4 w# w: p5 @ \1 s
f+ z( x2 F6 {( R- E; Z: j* r' S+ \2 W+ z* v/ n
: {: Z% m2 w: v K
|
|