1摰鋆nginx
( U5 j' { u; \' R, J( [ yum install nginx: g1 o' W1 ^7 G" Q8 X1 K4 X2 g
..........0 j# r# A6 n& ]
Running Transaction$ P0 u q- O* X& y- K- O* F* p
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
& ^. l7 p8 a. U$ |/ p& {! t Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
8 n0 m f" y' n Installing : nginx-1.0.15-11.el6.x86_64 3/3, r8 P% y0 h) r j3 n6 Z9 Z" }
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/30 Z; U$ r# i) {' _/ ^
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
0 o9 [3 J* Z9 b$ R Verifying : GeoIP-1.5.1-5.el6.x86_64 3/33 U. X. }8 f4 z7 S2 @/ B+ j
2 a* R4 L; x- I9 b. A' |# wInstalled:3 l/ ` g- k1 s3 w
nginx.x86_64 0:1.0.15-11.el6
/ d" H. V4 _4 a0 [" ^Dependency Installed:, v# W1 w! }6 o1 l+ g$ @5 y
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6& z- E0 B) h) {3 I
Complete!
/ E( m, F$ h! O) j7 D
O e' D( l) G- l' f1 ^$ I* R閮剖/etc/nginx/nginx.conf7 H& b+ F9 H) b( K3 H, ?8 m% T
8 T7 U: O) a4 D. t2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html. _, M6 W. h, D+ ~0 D8 A8 ?
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
7 t4 q" U4 ]+ q. `( N- f! ~8 V+ @" w! J7 E3 N+ { I T
php-fpm service php-fpm start" }" _" q4 w2 E1 m# _
nginx service nginx start" s X5 l/ v* q+ R) g3 F+ `) w( C g
蝯嚗
+ y- P- K. ?4 i$ R) i9 t7 C# O箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory2 X1 j8 f/ ~! a" N. q* V6 }
閫瘙嚗1 X& u0 q9 n6 w$ C3 x7 F( f8 g' B
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
' j; \. P: D- g5 m2 F& s/ M8 E8 t銝甈∪nginx service nginx start( ~% v+ ~$ f6 J: x5 ~
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
; l( X1 A1 c: X5 a6 t; Z亦nginx configure /usr/sbin/nginx -V4 F. q3 @$ ~) r" b
nginx version: nginx/1.0.155 y7 v8 m/ T9 e/ l. o7 z1 A
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)" W, @% h8 t7 F R1 @5 p8 }
TLS SNI support enabled
, i0 r7 k! v7 e0 v/ 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
9 d! z* E! Y! H+ I& c
3 e { Y' ~& E5 t" }2 `
6 s5 Q9 |- f) @3 T1 Hnginx service nginx start + ~7 b* h' H' s
error :
) h7 F+ b; Z0 A) o* W) q# \' @* tnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40% z6 e6 e% [, m+ u2 y- o
nginx: configuration file /etc/nginx/nginx.conf test failed& f8 l5 t Q5 r- H4 H* j# U
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭2 y. ]5 |+ @% V) t
SELINUX = enforcing 寞 disabled , V9 s; A$ R3 u, d/ \+ g
$ D2 ]2 T* q* D! J* G
4 V9 }8 L4 s! F; @" b
% l+ I+ R! ]6 k3 a5 R1 N* V: F; b$ a, Z$ K" k
|
|