1摰鋆nginx1 w" J; Z9 z- P+ X$ ]' ^6 I
yum install nginx
1 z" ~9 A k, e; c0 o; ]: ?' Y.........." l. r' C2 p4 }. Q( m
Running Transaction
& {3 K2 ]$ [% T3 c! W Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
! E; o* j' j9 O! ?+ x Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3) F8 U7 z" W5 @ }* }
Installing : nginx-1.0.15-11.el6.x86_64 3/3, h( _! ?( ?/ L( `& G, h5 G i
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
$ X; A0 b6 q8 p% V3 D Verifying : nginx-1.0.15-11.el6.x86_64 2/3
7 s# y7 T; b- `! f0 L Verifying : GeoIP-1.5.1-5.el6.x86_64 3/33 ]' H- K+ V/ h' f" Y
( }- Z& a) `, g0 w$ ~. ~0 o$ O VInstalled:9 K; L6 j4 ?; X, l$ Y" @( w
nginx.x86_64 0:1.0.15-11.el66 Q$ P- R# q: V, s/ P
Dependency Installed:
0 F/ i, B$ C+ \; x GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el63 Y! X1 P+ i- u$ E7 `" S% Q1 X7 Y6 G
Complete!+ I- b; T8 f1 T/ P% Y' N
) Y W; g! i! [閮剖/etc/nginx/nginx.conf
2 S. w) T0 j, o4 l" n/ Q: k# c% ]- {
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html6 g* N4 J, e5 T& V( P L
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
9 H1 y, Y$ y6 f; q0 ]1 `4 M. c
( |8 X6 h# h% R' fphp-fpm service php-fpm start8 ~: o) [0 l4 @, Q4 ?: l( i' m
nginx service nginx start
/ n; R& ^" {) Z4 d! F& E8 N4 ^2 J A蝯嚗
( g; Y) P- P, z K& f% T( a箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
$ V" ?9 s7 N6 H! z0 E8 ]閫瘙嚗$ y: p0 e! i. h; h1 ^+ H
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64" F+ X& C2 | z! I3 L1 h# t. F' I5 v
銝甈∪nginx service nginx start. l3 ~3 j% N( I' {5 K
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46 \/ m9 `' L! L0 R& ^
亦nginx configure /usr/sbin/nginx -V4 }- j o3 S6 {+ n- D4 L3 A
nginx version: nginx/1.0.15, j" ^, u! g* L) j. }4 k
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
3 P0 D4 T7 p/ @0 `: kTLS SNI support enabled
3 F1 `$ d( D- d8 Mconfigure 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,-E8 q& ?; x, t; n! ^4 Z; N- ]0 ~ x
2 ^( `$ r5 V3 R/ e; {$ y! E6 f- E2 x A& J
nginx service nginx start ; |. ]7 Z) `* b
error : 4 _9 z6 U: k; E. n# Z. `$ b
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:402 h- }, e! z& p/ \; f2 E) |) E
nginx: configuration file /etc/nginx/nginx.conf test failed
( G# W2 G2 |' W3 c閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭1 p& ?9 L9 [ d& R' R4 G; V# O$ {& _
SELINUX = enforcing 寞 disabled - F% x& f, V8 v' g2 y) i/ Y+ E: s
* W/ H3 G/ B u- u' a1 s
# ~' U- ^0 D! F, [. H7 T
8 b* X9 i1 w; q. V. N% o9 c6 }* g2 A) p" _7 _ l$ d
|
|