1摰鋆nginx9 O$ {5 r& F5 v
yum install nginx
4 r2 ^, s: y+ D- m% M% M! `..........
3 ]& N, @4 f0 m' ARunning Transaction
7 I0 c6 z2 t0 l3 g8 U Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
: I+ a8 Y" s% ~( X: P Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
4 \" G; q- ~( v; |. C2 y! ~ Installing : nginx-1.0.15-11.el6.x86_64 3/3
, \6 A8 s3 e- D Y( [9 g Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
- I' q) h5 Q' {+ Q5 u$ G) K Verifying : nginx-1.0.15-11.el6.x86_64 2/3
. K/ Y0 q) a% M# A* `8 f# q Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
: c9 f" {3 E3 n; p2 v7 Q
2 L6 u: y: I* }2 V7 M. `Installed:
9 K$ P) s, J( h. d0 `7 @ nginx.x86_64 0:1.0.15-11.el66 f& z. B% P" u. ~
Dependency Installed:
& Z+ S* X! s0 f+ M- k7 ^: X. o1 [. T GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
% Y9 v C( Z0 P& U" n B4 B5 @7 `Complete!
9 t3 E$ _8 k/ [- n. U
+ n& O8 N& y3 n' |+ l" L閮剖/etc/nginx/nginx.conf3 B+ B0 I) J- \
7 F9 W5 M, N$ }* {3 o( y; z
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
+ G& r8 h1 L) u* j* [閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
) I6 w# V$ \; ]* P! Y0 \
5 b% F* l3 ?6 u# ]" ~0 t' \5 Dphp-fpm service php-fpm start
& n4 u! p+ k2 u) _& T; l5 Inginx service nginx start) u. m. q q# ~" L" Y
蝯嚗; Z; v& g- P& `7 ~/ {* X! Q' p
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory* d. d: J0 y) Q+ }1 Z2 f5 h( j
閫瘙嚗
! a' H) d/ |" V+ m' k# X餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64, ?+ f* M% \8 K2 Q
銝甈∪nginx service nginx start& J7 i2 U: i. D1 a8 D
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46+ n/ T+ p6 D* J
亦nginx configure /usr/sbin/nginx -V
Q/ a: K: `, \, `5 L$ Snginx version: nginx/1.0.15
/ f2 _# A+ [* g2 s J1 p% Obuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC); j* b k) Z* }; k- u" \7 L
TLS SNI support enabled
/ I( A2 d% X2 Iconfigure 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) T& R/ ]0 F0 U& Z% Q/ O3 {. j
# ?+ M9 v% }/ m7 |
& f. D4 H( B) c; bnginx service nginx start ! u5 q( H- \# l6 X
error :
8 c, v1 L) y w1 K7 ~/ ]# unginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40: F, n6 L9 b* j8 W% p$ I# ?
nginx: configuration file /etc/nginx/nginx.conf test failed
+ t {/ d! z- Z6 l閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭& c* i3 ?! p4 A% J
SELINUX = enforcing 寞 disabled 1 I5 k& T+ d, ^) Y% x9 T1 D6 k# w/ }0 K$ X
$ B0 z7 m; }7 q+ j4 A S
2 i# u2 H! Q/ b& K# p9 u
/ m1 U+ A8 Q P# {
1 e5 [1 n6 m: `! k/ s$ K, G1 G
|
|