1摰鋆nginx; b3 O. m o' w2 G
yum install nginx$ A2 Q, d( K$ X) C) ?2 |* z
..........2 C3 Z8 a* I4 D6 r' s
Running Transaction
- p4 p, d1 c% m6 F% { Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
+ g9 C: G7 i7 t4 K3 \& j# \/ F Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
1 i1 _# }1 r" u/ y Installing : nginx-1.0.15-11.el6.x86_64 3/39 _* H7 B$ @$ r2 k5 _
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/39 i- X; h) Q6 o' ]; b' t
Verifying : nginx-1.0.15-11.el6.x86_64 2/3; r X" j' C, B9 x: N
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
: X' h2 w/ H, b7 |/ q& Q' u4 e6 }1 X
Installed:
; {8 U6 D8 W# b( e' G" K; D nginx.x86_64 0:1.0.15-11.el6
3 H# J% y7 m" `# J3 YDependency Installed:7 h) h0 r5 M" S/ _" |8 X# g
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
% S/ r& a1 B8 q% VComplete!
% I3 v8 ]" O- y
' E9 P6 ^' H& r/ w9 D閮剖/etc/nginx/nginx.conf' ]6 T. \4 I8 r% r
3 g: F; u0 { T" f( u0 ~& [ U6 O
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
0 y% Y7 ~: ^9 M! q9 z7 ]5 s! w閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error5 E/ L$ A$ |, e8 P8 E5 r9 p
% D1 P- J0 q4 ]- u' ~
php-fpm service php-fpm start
& K3 _! f1 y( n: n: Ynginx service nginx start
* P2 K# d: ]! c9 n: A# n蝯嚗1 ~6 G' p0 l6 l5 {+ k2 f* S4 u
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory* w0 j3 o: l; k* M7 Y" A8 s
閫瘙嚗! V5 x! H0 ? F( k+ w7 y
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
' S# p" p$ C T2 X銝甈∪nginx service nginx start6 N3 ^% V0 Q) _: Y1 v
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
4 R5 S `$ M- ]4 N亦nginx configure /usr/sbin/nginx -V
8 K1 i! O, U4 W/ W, H7 k0 j4 h6 v1 mnginx version: nginx/1.0.15
2 `5 } M# V$ H3 `% F# i1 R7 b4 `built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
, F: @2 J) {7 P% M7 E# {TLS SNI support enabled! ^5 g, S2 b5 j$ M$ j
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
" r) n2 l+ @7 }5 |# z : ?8 ?& N4 a& v# j/ o
, H9 K- L+ l0 o; ?* [3 ~
nginx service nginx start
5 p3 O, L e* S1 f% o% {2 jerror :
* |# j* |, e1 c1 G5 {( knginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
, J4 J' W. O: w2 i. B0 z2 W# Unginx: configuration file /etc/nginx/nginx.conf test failed
' i8 G; c: d w; e1 l閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭- P: Z# H P+ W5 W1 z
SELINUX = enforcing 寞 disabled 4 i7 z5 E7 N; F l0 \2 Z4 E
5 `( s. |' b8 R0 g. @
; a2 ~. k- L8 {7 Z/ M6 t
# ]) t3 J4 R [/ U6 u
; B* ^; R- E, r$ |# I) s |
|