1摰鋆nginx
. A- m* o8 C* }! W" O0 T& i$ x yum install nginx
6 B8 v, m+ L; i" S5 E& N..........& \( T% Y6 b* V* r
Running Transaction
. H$ }2 r/ Z. c, I Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
0 z1 T! P k' }# n' h' m* }8 R Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
: k. m0 ?5 {. @% I Installing : nginx-1.0.15-11.el6.x86_64 3/3/ [0 p) q+ p5 a
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
+ _* g7 C% J4 k9 W Verifying : nginx-1.0.15-11.el6.x86_64 2/3* t: h2 Y; L3 n* I
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
5 N5 _6 n- f6 A% v! B& {% [
2 f" V! v% q1 X3 VInstalled:
. a$ ?9 ]7 ]/ A0 \$ t nginx.x86_64 0:1.0.15-11.el6
3 O1 F) m0 C$ @ H7 ~Dependency Installed:4 W( p8 X5 i* |# R3 V& c7 u# n5 {
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
& ~5 E$ O' }$ z% wComplete!3 a# w, P4 P" D" C+ [
; f8 J: j, R) R, A1 r; g* K閮剖/etc/nginx/nginx.conf
$ [8 F! C h* k# }3 [6 a2 c7 D, a1 F; k4 o. ] X. I/ O! {' Z
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
5 Z0 P3 }' V5 q+ c5 s; G% F閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error* \, B7 J% q) P) T" `7 @
9 D4 O0 L- H* {% `: ^php-fpm service php-fpm start+ o, I6 d; ?' j3 M }; Q4 l( B1 p D
nginx service nginx start* y; e; k7 s0 J" f
蝯嚗
1 R$ B6 ~5 a; U. q$ Q. D箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory+ T1 b) O5 j. M- I7 Q2 B
閫瘙嚗) b# N9 _* @( w
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
* f5 Y3 j) g# s8 b9 v" \銝甈∪nginx service nginx start( n2 t% E' c7 R( U: V. U% a
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46# U9 O- N6 l, t" L, j5 U5 M9 R: E
亦nginx configure /usr/sbin/nginx -V
! Y1 K2 N* N" W$ z k" R1 _nginx version: nginx/1.0.15
# K+ `# u1 A! N Kbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
( g6 c$ B6 S* b9 c" _% S- y% CTLS SNI support enabled- O3 T2 s8 c& l# M q5 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
% J. D6 c/ {) e1 T 3 p- Y" V3 \2 S6 n1 q4 J
+ x, S8 o( \* B8 L0 r, V0 U* I; Dnginx service nginx start
! L9 X6 [' `8 n6 ferror : ' F2 a% I- t3 y1 Q
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
- i- K: F9 q( |$ {nginx: configuration file /etc/nginx/nginx.conf test failed
) `: m% D# s J+ ?; W; B, w! Q% u閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭5 J1 E/ W0 f- ] T$ b
SELINUX = enforcing 寞 disabled * P' b1 I, I7 |/ ?$ f: r; `1 z
8 d! O5 r* u7 s5 s- p. @& F
) @( b, Q" _: W/ n: l' u: L$ I4 s, ~$ P( ~; c( m ]
6 W% ^( A0 j; f( E0 p/ Z/ p
|
|