1摰鋆nginx% k, d4 i3 l2 E% l" b
yum install nginx
6 r! ]7 z( g. v6 }" n# d( I..........
6 Z% h" Z3 K7 y% f; G0 \Running Transaction
' J9 C* l. x# C& l* t+ t* x* ? Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
8 y1 f2 n; E% k. Z% m2 H Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
. ?" e: d9 N: B* |: f1 e3 o5 D Installing : nginx-1.0.15-11.el6.x86_64 3/3, F5 `: ~" k# f( F1 h# \- o
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
' Z3 p3 H/ q+ G: v Verifying : nginx-1.0.15-11.el6.x86_64 2/3
: x9 o) f% q q8 |7 S& N3 M Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
$ K$ F* a$ i; @; Q# m9 h7 ]( |% f2 J( Q0 j
Installed:9 E& F4 m0 O# Q* @
nginx.x86_64 0:1.0.15-11.el6
1 o) ?7 o' Q ?* o' aDependency Installed:( k9 I: q3 a B3 M& z
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el60 z! q, t6 z4 A5 @/ i7 v" X
Complete!( _1 v9 c# D- u2 Z1 ]8 ^$ [
9 e4 n; h% [* n7 f閮剖/etc/nginx/nginx.conf
9 O6 ~$ v! b( t+ L3 n& z# ~( V+ r1 T/ @5 ]# l6 k" |
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html- \; s! y( ?- n4 r* K
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error) R4 e7 B; A; q, ^! E
! A! E" C0 ?. y! yphp-fpm service php-fpm start
* [9 Y/ x/ d+ i) N8 N: S; ^' bnginx service nginx start: O# v. J- j/ I
蝯嚗- V! ]6 Z% ?) _, N0 q" I
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
( w6 g9 [) |& o! i( [/ H- t閫瘙嚗
- n- Y. g* O! L& L5 n2 k餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
; o& m' N9 I9 L2 O銝甈∪nginx service nginx start( B, v$ y9 s( @! K: e L2 U
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
0 t R6 h( ~& `. f亦nginx configure /usr/sbin/nginx -V
1 T, l" c; a, `6 R4 S- Y% c8 w4 ?2 rnginx version: nginx/1.0.15( w9 r* p' D- m; a9 A
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)" E# B6 a/ S$ C% n' w2 n
TLS SNI support enabled
' w! H' t- a' L* z3 ^+ W3 \) Econfigure 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
* V1 j; [! m0 z+ ~0 f# ?6 J% ?2 O 4 t6 d7 g4 i( ~; |/ p4 f! i9 N
" b& L1 c5 Q7 H% x& a2 |( t. H& B
nginx service nginx start # ]' L" i. ^+ w; _8 W' h
error :
5 x! f" F5 o+ _ d$ cnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
! t0 F# u: ~3 }: \% S) ^- `8 c! znginx: configuration file /etc/nginx/nginx.conf test failed
/ M) R. T9 W" l& H& b8 Z閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭& F2 U8 e3 I( M$ |$ s, g
SELINUX = enforcing 寞 disabled : |, [# y0 Y( U3 n/ A3 Y) q
5 C- H2 Q5 j* [1 l$ G5 b' }' X
, O" J [/ C7 D) e
1 z- a3 D, D# l
. ]9 I H, @5 Z9 q* { |
|