1摰鋆nginx
9 Z$ b& x5 d- G5 {! j( d yum install nginx
7 @8 f& C- _. T+ V% ]..........
' O, U- j! J( f1 ]+ N+ wRunning Transaction
7 G: L" T# e; q6 g2 k, `5 Q Installing : GeoIP-1.5.1-5.el6.x86_64 1/3# q; p# [3 O4 X4 A; t
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
9 y' P0 d" P" E9 c" N Installing : nginx-1.0.15-11.el6.x86_64 3/3
. y3 C) V2 a8 T. m8 U* M Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
$ J2 ]" ?7 ?' N, f& m3 d$ F Verifying : nginx-1.0.15-11.el6.x86_64 2/3
! v1 T4 R1 j$ c* j9 X q Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
@3 G0 i$ w# `, G j
4 E* }7 j6 ]* k+ AInstalled:
( [0 L' {/ ^% F: ?( z1 A nginx.x86_64 0:1.0.15-11.el66 r3 ?- B, G8 a1 l8 [
Dependency Installed:5 w8 t' X! F$ ~" M# e* d. P
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
x2 _6 a5 l3 R- cComplete!4 m; F( K% z. n! u
1 G, D5 L8 a2 W1 w3 V' S" I I# Z% E
閮剖/etc/nginx/nginx.conf1 W, T( ^" E/ g7 \
$ j( t, b9 Z3 j# _5 _( ?2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html* W+ r' A9 V9 d# J8 k! Q
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
# I# i$ ^% T2 [3 j" Q8 E! T
1 V% w% W! m- g& D8 B6 {php-fpm service php-fpm start8 k! L$ O$ b) r
nginx service nginx start# c8 b/ I0 K, @, b) W! h/ s- f' S$ c
蝯嚗1 u( d" N. L, q4 y& D1 L, K
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory5 D( M3 r& ~/ B5 |5 N, j5 t
閫瘙嚗; \( x, w) j" p5 D
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
3 x9 _& }* ]' D) J) Q銝甈∪nginx service nginx start; h# y% q' F) j' E0 X
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46! O8 v" W* O& r9 d6 U" s# t
亦nginx configure /usr/sbin/nginx -V
. ~$ L: E$ m. j4 [% x5 Wnginx version: nginx/1.0.15
( o" _# \+ n$ \2 Nbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)7 Z0 b. j. x4 @* _& F$ W& s
TLS SNI support enabled' ]* z9 O) U# f* d* f9 B
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
: h' _# ~6 j, _
$ J6 V5 E0 N6 b' {0 ]# m# s$ k& w4 [
nginx service nginx start
: [ y5 q1 t; D+ \* Ierror :
8 v- s2 U" b% ]( K5 e" }nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
1 x0 L# l) q& s& s$ ?nginx: configuration file /etc/nginx/nginx.conf test failed
; O, C2 F9 a. O6 N6 o閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
0 G3 g/ L! T. W0 Z% d: sSELINUX = enforcing 寞 disabled % S! P' g" t& P& |! ]: y
) D* K: P+ r2 s
5 w; @! }8 q! I4 r$ F
0 \3 d6 ^* O3 O6 c+ I! g- {( W: J" f7 k1 I7 H
|
|