1摰鋆nginx
. d4 R- Y' I1 w) J yum install nginx
9 U2 E- x9 y' F3 @1 U..........' D5 w( \# y2 G6 \" o2 t
Running Transaction. F4 w! E* @, s9 n
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
, \ j4 J. ]) F: A+ m" X, S Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/30 D% c9 a9 D/ a; g6 M: T
Installing : nginx-1.0.15-11.el6.x86_64 3/3
8 l! p. K! r8 O Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
* A! Y5 A. S; @; h/ A' F Verifying : nginx-1.0.15-11.el6.x86_64 2/3
l: O6 C6 Z% [" @) {5 \ Verifying : GeoIP-1.5.1-5.el6.x86_64 3/31 V+ [ o+ C) ~ {
* ~; a5 b$ L* y: \Installed:
! P* X q% a0 X5 j! K9 d0 Y nginx.x86_64 0:1.0.15-11.el6
$ J0 T/ K2 J& m) R* K3 `" j0 o7 ?Dependency Installed:( o: p* s M2 E9 M3 ~1 ~6 W
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
* B" t/ S( _! j: S3 eComplete!
3 ]& k q! f! M" t, z P3 L) y8 A
閮剖/etc/nginx/nginx.conf% I; D9 [4 {' Q g
0 j# I& m' c+ P2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html) a! j: M6 g: L; U" f
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
1 R- w( M. ]9 B
3 a/ I- ~& B9 N+ P- z: rphp-fpm service php-fpm start0 `. s2 c1 g& p6 e
nginx service nginx start. Y& Y! x) L! N9 A
蝯嚗
7 t& f: I4 R- b8 ?/ j箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
) W" O+ K! O/ @ X0 K閫瘙嚗2 d% V4 `- w5 h# P$ g% t* E
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib640 e7 V/ U, I# [. k7 c- h
銝甈∪nginx service nginx start3 f$ C& n$ U- J2 e8 H
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
( v6 o" ~9 @# Q7 ]; ]; n亦nginx configure /usr/sbin/nginx -V
8 H1 a" x# {3 \" A" L' o( T- unginx version: nginx/1.0.15
1 N7 l% z$ W* J7 |built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
9 o3 b! S/ e2 v$ jTLS SNI support enabled# R6 e) i" m+ A4 {6 T- a
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- f3 j# \! o' F/ `1 k
1 Y% [ e# e/ L! H+ X& R
( v( |2 V0 |# w5 z+ k- ]6 inginx service nginx start
$ {: e4 n1 D7 S" \& _ Herror : 6 J( K3 B0 n& _9 m# ?0 G% N
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
; i& `5 W) G4 B6 q Tnginx: configuration file /etc/nginx/nginx.conf test failed
2 H% w, M6 ^9 Y" f閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
$ z& p- g& U! l2 |1 }9 Z9 s- rSELINUX = enforcing 寞 disabled % X- s" S8 L2 h( x: v7 ^9 ]
1 p/ k2 z" d4 T8 x
! `% d$ V4 W* b- K
2 ~% o0 Q" L" f" P: O- [
+ B" e7 ?& g# p$ z: w2 N1 i; L |
|