1摰鋆nginx
2 B% F# A1 N4 v" `) E yum install nginx
" x6 ?0 y8 D u( J' k..........! z9 V5 r; Y# t! C5 B Z1 a
Running Transaction
& F; q. a; L) c6 G* V9 n& M# Z1 N# Y Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
4 E g1 _; V T( n( E# ~# f! b' W Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
) `( ]8 ~3 }; n0 { Installing : nginx-1.0.15-11.el6.x86_64 3/3% P, o3 K. p% x
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3 [, F5 H# c4 o; u5 _3 O* I
Verifying : nginx-1.0.15-11.el6.x86_64 2/35 v( P' ]. D W: Q" D; T
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3# n- C9 H. o5 v; ]" T# }
; r/ w, \3 [. r5 x
Installed:4 r( i" R. Y9 p% P/ M
nginx.x86_64 0:1.0.15-11.el6
|( f1 j' {8 d# x% zDependency Installed:
8 p% \- n- o8 u8 H GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
! i3 s$ h. N' O0 W( bComplete!6 h/ l" @* a% Y* o! I( i7 L) I
# f7 t9 c b. t% L# U0 ^閮剖/etc/nginx/nginx.conf0 G, ^8 y- \3 M+ l; V
5 K w0 o8 F9 R; B. X6 K, A8 G
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
" d: c& n$ L7 @( z9 V, S閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error7 ^7 y2 y: n5 A: S* m/ v
) C) J$ s2 T3 R0 ^' Z: {5 A+ iphp-fpm service php-fpm start
' t' l# s1 s' ynginx service nginx start+ c/ |$ w7 x6 j) ^" i0 _+ v
蝯嚗
+ D/ b* T2 j2 u箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory8 l) `$ F1 N- x$ V9 [3 Y& T3 z
閫瘙嚗
6 }( V: [& U3 Q, b餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
+ ?( [9 n9 b6 T( X銝甈∪nginx service nginx start% r$ K# e3 D0 S7 @) t
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
* D. N' B& N: d& g亦nginx configure /usr/sbin/nginx -V
D# u5 s' L/ Y# T' T: T. b: f. Snginx version: nginx/1.0.15/ T2 H* M$ h7 M. O1 T" Q
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
: [& @/ w5 o7 d) b: |/ ]6 h4 CTLS SNI support enabled4 o% R B2 L5 {. G- O
configure 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
3 j; _( g5 @7 k( } 7 x1 }4 q S( {6 ^0 n
6 |+ s( Q% G" C& n) K. ]* Pnginx service nginx start - T! o8 s' |8 i
error :
9 W2 r; Y6 U: m4 Y( z" f0 r& i! snginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40% N( G' v8 ~5 H: R; ]* U2 J- a
nginx: configuration file /etc/nginx/nginx.conf test failed
8 J" A2 H( T# j" ~5 A \: Y* e閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
? t8 B/ K4 R& w! iSELINUX = enforcing 寞 disabled ; z! y5 g% X4 w6 a" x
0 u- p0 o, Z$ W$ ?8 b3 f8 q ?
' w1 y: a8 H4 g9 O0 s# j( q9 P. M
* H" B( ]3 w7 Z+ N! p4 r |
|