1摰鋆nginx
5 T; S3 [" ^$ w yum install nginx
8 e, [- s& \2 g..........6 A' b3 _, Y) A* ] {
Running Transaction, |5 r, V' `" i
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
( v1 Z9 Y x- l! X6 t. e Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
( E* w5 m5 B* _8 s& t& y5 A Installing : nginx-1.0.15-11.el6.x86_64 3/3
' ~! x. W2 u+ J2 F" ~ Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3- q' j7 g! X% ]) i9 u
Verifying : nginx-1.0.15-11.el6.x86_64 2/34 ^% y0 W7 L) J# n, Y6 `) ?' f
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
5 j& j; ]( Y' ]: ?+ B! P3 x* v! x1 P5 x K4 K# f
Installed:; [" f5 |: k) {- ^+ j
nginx.x86_64 0:1.0.15-11.el6
X& C& ` H* |( }& F/ B& } uDependency Installed:
* U3 z% Q e6 z, b2 M( F GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
& ^2 X( {2 L( a& K6 c! r4 ]7 `Complete!
8 J& Y) T1 G3 S |. H% ~6 F
! L2 f! v$ D. V1 R$ E- F1 H閮剖/etc/nginx/nginx.conf
' ~3 D0 m- o. I2 y; i9 a! w: w8 q; q
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html+ W# c' {) B; H3 y% t; r1 A
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error9 u1 p, S Y* g" A' e# X
' N, t. D [$ v6 o) A, }php-fpm service php-fpm start- \) a1 l3 }+ \, J/ r) p F5 b5 m
nginx service nginx start- s4 \- R5 o' ?
蝯嚗4 v" l2 ?( [/ a1 k4 N
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
( h- {: M" T7 E3 o8 q% W# _閫瘙嚗1 Y' p( s- B) C2 R8 j( O: S* P
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
: c) ]2 W/ T0 {% a! h銝甈∪nginx service nginx start
& H8 x) W! K3 k% F% D4 T4 N蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46. }, K, p: _- n/ R! t
亦nginx configure /usr/sbin/nginx -V# `& Q2 N @. x6 A" _
nginx version: nginx/1.0.15/ u6 T8 M4 M: Q) D, |
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)4 {$ R. g4 @: ]( g$ {. p& c$ E
TLS SNI support enabled
( X6 G7 m) K) a6 oconfigure 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
# x S4 i$ j: F- @' I
/ O- l, q9 l/ z0 w( O% T5 A
9 ?& _( k# Z& I. B7 s( D" Q9 bnginx service nginx start
! k# _5 H- u2 ^error :
9 w# p9 Z; D+ u" hnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40+ v* u" K$ A0 P4 l2 r
nginx: configuration file /etc/nginx/nginx.conf test failed
|$ J$ T9 r, Y4 S) U閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
8 h/ s1 M3 o9 `SELINUX = enforcing 寞 disabled & R2 I& J$ R. E. [, Q2 L" c, t8 S- C
! I2 x* b1 {' K! K+ u0 p) s
: }% V2 O( B3 D4 B( a9 e5 P
5 q" |: ]& A7 b/ B7 e! `! A; w# W* A& F4 U
|
|