1摰鋆nginx8 K- Z* M: n' u$ T% H
yum install nginx- L& Y& P% Z$ |' {
..........5 A/ [2 }4 M( R: m# G3 ~
Running Transaction- ]3 j4 v! K* G2 m% W- O. W
Installing : GeoIP-1.5.1-5.el6.x86_64 1/36 p0 [6 y% y8 ^3 r% k
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/36 n: t; T9 U' p- q1 q* V% M
Installing : nginx-1.0.15-11.el6.x86_64 3/36 L1 \" n+ I5 i* c6 K
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3' |3 J6 z1 w m7 K& T- q2 J' a
Verifying : nginx-1.0.15-11.el6.x86_64 2/3( z- |6 v% ?. }9 j! Z) W% @
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
8 s% r. u; ` J5 p: G1 s, ?7 L3 I. z6 T" \6 I. T* {# \
Installed:" E5 Y4 e' q, s a; a. s
nginx.x86_64 0:1.0.15-11.el6/ l/ i/ T. d- W* v% Z4 _- }6 ~. S
Dependency Installed:2 Y9 n! _4 k$ E6 z, g
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6( e. y$ C0 q+ }! S* k
Complete!$ ^: ?$ y; y: ]' p3 F
- P% Z( e# c: \9 G6 p* E* X; M閮剖/etc/nginx/nginx.conf
; P4 A# M) j/ G% Y+ t+ q( P: Q4 p8 f% E7 l
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
+ p6 A: j: E5 {$ l0 e) H ?4 @; d閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error2 C+ y3 \+ ]3 Q8 a
8 {1 W9 t# G$ [1 @
php-fpm service php-fpm start7 P% l2 g! v5 e# Y
nginx service nginx start8 X7 T5 h" x" {2 s' T, Y2 D
蝯嚗
7 A! M c+ S/ z; N4 P# Y! ~/ I箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
( l$ _4 h, p1 v% E M/ k閫瘙嚗
1 `7 Z2 i7 D- |餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
/ u; H4 J% l. t2 w f7 \銝甈∪nginx service nginx start
; U( |' s+ c2 J# l蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46+ y: k( |% k- e' [6 ?% E
亦nginx configure /usr/sbin/nginx -V ^5 F2 o! q7 \9 b. {
nginx version: nginx/1.0.15
, o' Y) R x; I0 ?! Hbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
7 e, b+ A9 W D3 q/ }$ J5 mTLS SNI support enabled( L! E. r. D4 p; @* q, r* M
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 ~" y; X9 C4 V f0 ^3 ^
D5 [) T6 D/ S* y$ R, h3 m5 w; s' R, L M7 B
nginx service nginx start * V5 C4 I, U/ q, A4 `/ k
error : ) o3 o& w& m% H
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:400 \7 L% D# O; ?/ r: D
nginx: configuration file /etc/nginx/nginx.conf test failed
5 u" ^: u! Q* d. V閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭) J$ Q( q) ^* i9 O. ], T
SELINUX = enforcing 寞 disabled 4 u; D" U7 A( [5 N! J) D
. F" |0 g! \) Y* ]# v# M, A
. z! Y' ^0 ?0 I' j- Z [. k
/ R1 o& w+ e0 q! k4 M H0 V( P y, U( j5 k' f: w5 f, r
|
|