1摰鋆nginx
( p7 L& o6 P/ o yum install nginx3 K9 u4 H, b# p* e u
..........2 Z2 `9 I: K8 k8 _7 r* x1 K
Running Transaction
) O# t! ^& {* o5 a) j Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
+ U. S6 h# M3 B) l Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3; C `: q4 E, @8 l! [# Q, f0 w i
Installing : nginx-1.0.15-11.el6.x86_64 3/39 Q. ^/ X4 t W" a
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
5 e5 A1 c; Y' _2 [' R$ D Verifying : nginx-1.0.15-11.el6.x86_64 2/3
0 s) f5 z/ R1 v4 I, b$ k Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
9 z* \' J9 B$ w p. x
1 U; g9 t# G/ I+ S( jInstalled:
# R. ], @4 ]. N3 j K( x9 ^ K9 n nginx.x86_64 0:1.0.15-11.el6' g9 B& n8 n3 S, f m9 ~4 _
Dependency Installed:
- T# p' a4 d* ]: V GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
& J L |6 [6 Y' uComplete!
9 B/ b* g5 s* `8 z
1 C2 @- x2 Y" ^# ]8 Q閮剖/etc/nginx/nginx.conf
$ D; n( Z! L8 u. H3 d" G. ~# [) |+ `% X! m
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html" ?# X7 q, w. J
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
7 Z8 O0 `) |6 m0 i/ u1 o
3 H2 L: I9 q. Y6 L! ]php-fpm service php-fpm start7 u4 A+ K3 P. ?$ D: |
nginx service nginx start
$ { f8 X8 u6 c蝯嚗3 j) p( y/ H- q, c0 c
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
( R# c* B) N w- t: R/ b閫瘙嚗
- ]. @5 ^ q4 e1 ]7 V( j* W餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64! |0 @+ ?4 B. F0 u* K
銝甈∪nginx service nginx start3 A, w2 S# w4 I6 W* L" Q# y
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46' S! d( E, C8 v. x8 ^2 `7 m! M
亦nginx configure /usr/sbin/nginx -V7 p7 X9 }' G2 J9 Z8 N
nginx version: nginx/1.0.15
3 p. ~% T" p8 h, [6 jbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)9 n7 z q/ o6 u8 S$ a
TLS SNI support enabled
* D" u& I6 ^4 }7 Dconfigure 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+ ^3 \8 v- a! k! C9 W! @- k
5 T7 L( d. m' y+ H
: L1 B% O! a* g! I! e2 dnginx service nginx start 6 J o/ m' b" Z7 ?1 R
error : 1 u" l8 C, s2 j" S6 F T
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40' U6 T5 w5 h5 @
nginx: configuration file /etc/nginx/nginx.conf test failed5 [3 T0 d( j! y* ?* D- U- y, ^
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
5 b9 M. |/ `4 USELINUX = enforcing 寞 disabled 7 u; e" b6 J; I- |
5 W0 F: g3 @. c6 Z# ~3 }
0 E H' f2 ]2 c5 D7 ~" j) y ~5 j% m0 |5 W% k" L
, @* J; f4 g: @+ l) X8 }. Y
|
|