1摰鋆nginx9 p# Y6 r: \7 f+ N
yum install nginx( G" I1 E$ q3 j5 C) s; g
..........3 |9 b. e& O; J) b% {" f
Running Transaction
, [7 R+ I0 J6 F" F' c4 n+ q/ f Installing : GeoIP-1.5.1-5.el6.x86_64 1/3" k$ z: {2 p7 G5 X( G
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/39 `8 }/ U1 a: q
Installing : nginx-1.0.15-11.el6.x86_64 3/30 O: @0 ~, |+ r8 u1 t4 c; q
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
5 p1 S) ]5 V$ n C7 {# C Verifying : nginx-1.0.15-11.el6.x86_64 2/3
9 v, {) n& S; o9 d% ?* p Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3! H$ j+ x7 {3 b
. N6 F. c9 N/ }# k" [- [1 O. [Installed:: S6 }6 w( ~8 C3 w1 z% E# e
nginx.x86_64 0:1.0.15-11.el6
, L0 z7 L0 E/ G# K& R* yDependency Installed:- _8 {/ W6 R. a& Q3 o2 l6 K
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6* T9 U3 `% T! {& D4 g$ {; m
Complete!
) a7 K8 c/ k- V% L6 c4 N# Z9 o6 e' y1 K% U* w5 F; @4 H
閮剖/etc/nginx/nginx.conf
: i* o1 H) p! c7 D, g
6 Y& C) m) h9 J; q2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html1 n2 o$ A, N' \, L" f$ @
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
# V9 F# o( B9 U7 x0 Z; G' m3 O- z J/ U8 w/ v* ~ b! O' T* K
php-fpm service php-fpm start% v- f6 A2 g+ O( k
nginx service nginx start
3 H9 X; ?+ g& ~$ f蝯嚗1 O8 g/ W% f9 N( p4 r
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
2 X& X6 D9 J% O% N! h8 A閫瘙嚗 T7 i% z) E0 c0 `# R2 L
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64) ^/ L. F$ X1 T5 y* o$ P: Y' @8 R
銝甈∪nginx service nginx start
% G) f. `; Z2 f! s* I9 m蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46/ j8 O& T% N. R* n
亦nginx configure /usr/sbin/nginx -V5 w$ C$ |0 Q6 c+ V7 p7 u( H
nginx version: nginx/1.0.15+ Y# \( i+ e6 [0 Z$ t; H
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)- l6 e- D* t8 @& u, Y% `
TLS SNI support enabled
- U. ?( C( P( Q+ b' n! u5 T$ sconfigure 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
' Y- {# O, `# }$ F" h; ]& B* { 1 L8 B, B6 s+ I1 T2 ?- j& l
8 Q5 D! T6 Q# k: r6 g3 fnginx service nginx start : W( O& ]1 W, [- u2 k% m) C' A8 s
error :
5 r4 r0 U+ X9 t( n& dnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
, p# `" x7 z9 g, J( [' W7 n) C* cnginx: configuration file /etc/nginx/nginx.conf test failed( z" c9 [. U+ o& S
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
t, h2 S3 p1 Q/ M# Z" PSELINUX = enforcing 寞 disabled % n- t) a& Q6 } h6 ?
" @4 N8 D. w; y7 l- ^% z. C
; j8 k' L, H2 F8 n9 h' i5 \% V2 }. x: O3 [7 @/ z
$ b# k5 K. r s6 f3 ]+ w) _ |
|