1摰鋆nginx) y7 Z. J6 N4 N j: }9 `( E0 A; c# g
yum install nginx( @% v: k, J' ^$ o1 d5 o9 r3 q- ^* K
..........: S5 `& I/ L1 W
Running Transaction: `5 W, S( j- u/ F. w/ a) v# Y1 ~
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3. T. m- B( B* q4 g7 s* d9 w
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/39 Q2 q, F* V6 k6 q
Installing : nginx-1.0.15-11.el6.x86_64 3/31 [' P8 p! \0 |0 _9 C
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
% y' \$ F5 f/ _" \5 K, | Verifying : nginx-1.0.15-11.el6.x86_64 2/3
+ M% H6 s0 Z; x( Z9 f& ^) h( e Verifying : GeoIP-1.5.1-5.el6.x86_64 3/38 o7 X/ A d/ X! ^: [
! c, X* h P, R" l; E
Installed:
1 {+ X/ s" O( N- D nginx.x86_64 0:1.0.15-11.el66 b) G" O5 w/ @0 z0 J( w7 ?
Dependency Installed:
# E5 v7 P3 S( L0 l GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el68 J: j$ T6 r8 ^% X v" `
Complete!0 K: {0 i% u, A$ \; v
/ h9 i; ]: s( h1 q
閮剖/etc/nginx/nginx.conf
$ G+ c2 z# j, G+ o( H5 _' W2 H
. U' d4 ? H9 g6 w! B! v2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html! b* O2 i" m$ W
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error9 d/ C `' C& w8 Y2 A; Y+ [9 s
& g6 A E2 q* g+ }
php-fpm service php-fpm start! S* p) U, P& W3 E+ t" q
nginx service nginx start5 _0 G3 A- G$ V1 L' P1 T) [9 B
蝯嚗/ U3 X! c* [, e2 A6 J. R- V
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory. P& D0 k1 \( p- Z+ k! ?3 X
閫瘙嚗
* j, F8 x$ t$ V2 B v餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64( z' m' m$ p9 N9 Z) E" E/ {1 G
銝甈∪nginx service nginx start
! n( X4 ^! W. g% {' }& e, g$ G& Z蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
$ a1 e4 K" e8 z" B& l+ F亦nginx configure /usr/sbin/nginx -V
1 N% o$ N& }3 O Q" M' onginx version: nginx/1.0.15# K1 a5 A. M( r% Z
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
9 u) d" R! w. g- c. P( \TLS SNI support enabled
2 S$ @# J+ B) ^$ O& l' dconfigure 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" ]. f, l X# P. [
. D# V9 C% g0 X0 `
) e T$ e- q2 q9 \6 F6 f
nginx service nginx start
8 j' i1 I" a# D( Y) N) v* e& C1 v& cerror : : b+ T" m2 H. T- ]% [" f
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40$ g" J" o* L* z4 m: d
nginx: configuration file /etc/nginx/nginx.conf test failed4 ^. Y/ R6 H0 Y4 M6 J) t- m! V* |
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭: V- {( b; {* {
SELINUX = enforcing 寞 disabled
: N; w0 t' M; i3 f$ E# C6 ?
d3 X3 J9 X, T5 A- a6 j4 q
, Z0 x% ~0 B2 D$ X& w- x/ R+ P5 U& s/ x9 m+ J+ M
" s- j# j- h' O2 `9 P |
|