1摰鋆nginx
, t$ |3 _+ }0 o# Y' j" n yum install nginx
' p5 G$ p0 H. l! I..........
- _) L2 L! E+ dRunning Transaction3 j/ s! h7 s0 r$ d. v
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3' a! W7 M9 C8 y
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
6 e4 @& S6 o9 m/ C7 F Installing : nginx-1.0.15-11.el6.x86_64 3/3
! f" m' Z7 v3 W; M% h0 U Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/39 G m( V) x8 e9 s9 c
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
- [6 A0 c6 w& n# v Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
% {( ]8 Z. b2 D- J
; z/ h e- K& q- D+ Y l& F E- G2 ]Installed:
4 ~; j3 A. G, f/ n) t4 P' _ nginx.x86_64 0:1.0.15-11.el6* \; ]% I2 V8 l6 @6 |( w U. [
Dependency Installed:
7 A9 p' k1 A9 u# R9 a& E GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
# O& I! x3 k3 P& U: IComplete!6 x" X$ c& a, L
" O0 g l) u. c! G: T閮剖/etc/nginx/nginx.conf
4 n' A3 x3 ^: B' S8 e1 E' T
* r5 v {" H3 u) `5 ]- R" t2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html& q3 E) L# s* v) h2 ]% C* q
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error6 Z5 I ^5 O; O$ V8 g0 S% L$ _, p
' N# I5 E) U! p
php-fpm service php-fpm start
: i2 E% e( j, p: h* _4 \nginx service nginx start2 I( W& v5 G0 k! J M
蝯嚗
1 u- I: A# `' J6 b. o2 a3 _/ g箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, _! o* z3 |& r" l7 ?
閫瘙嚗
% ^1 w, S j' m" @餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
- P$ C3 \- A2 H: N. E% ]+ ~銝甈∪nginx service nginx start3 i( B' }, y$ j( @4 T+ i6 s
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46+ q" r- Z+ `) x
亦nginx configure /usr/sbin/nginx -V
* \# V6 P! |/ }! rnginx version: nginx/1.0.15: c- J- Y: G2 U: j
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
. {6 s8 E! e* g$ r" ~" G0 s" }TLS SNI support enabled
, s/ J3 ]3 D/ b0 Q! Rconfigure 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
2 @) ^: k8 z5 x2 ~- G5 W& J
+ N- v* U; ?* b. Z L8 A
; w( p1 `1 F' q7 P5 O5 C; D# unginx service nginx start
, g5 W0 {. y" \error :
9 P, c; U2 X' ~3 Y' P) b+ Z1 y2 u% wnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40, }) d8 f$ k" O* [7 |
nginx: configuration file /etc/nginx/nginx.conf test failed
+ a9 M/ M4 `. }* x: ]閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭$ I6 @: v) A! t2 i; V: s% p
SELINUX = enforcing 寞 disabled ) ] d, F" |' c% b
/ J: t Z4 p4 n
3 d! H& U9 U# W I( y
' n% x* G! D! U4 G |9 N1 `7 y! M2 Z+ A& f
|
|