1摰鋆nginx
6 K8 b' n4 A8 p) w$ w yum install nginx. W. F2 g) H% V; w
..........
9 V2 }. }+ ]& O) b) u- s8 ~Running Transaction b- A! j3 V ?4 q
Installing : GeoIP-1.5.1-5.el6.x86_64 1/32 a T- X5 f7 V6 O9 t! z
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3- P( @ j% f$ c
Installing : nginx-1.0.15-11.el6.x86_64 3/3
' D3 Y h) _. ~, J/ Y9 m Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
" _6 W* O: Q$ m6 U+ S) U& n* j Verifying : nginx-1.0.15-11.el6.x86_64 2/32 N8 R1 P. ^4 B: w1 B: u
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3: L) V. y# y; D
- [) a" p! }: h4 D! R7 u
Installed:
$ d/ V$ f" p& f# i- k. l# E5 Q! B nginx.x86_64 0:1.0.15-11.el6' _7 Z' d7 { R D2 A2 E
Dependency Installed:
8 p" w" `" o+ Q/ U4 P GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6: N1 B- R' D2 w1 A
Complete!) o9 O6 N$ V( B4 u5 Q7 |
" S3 J4 j Z' y5 R閮剖/etc/nginx/nginx.conf- o5 W) x: [; I6 x
' v# C, S; c$ d1 o, z) x! c2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
8 [; h! C4 e% {2 e6 [5 \# \閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
) @4 s2 P6 E+ a6 I! c* ?. e7 `! {: Q$ Q5 ^' g3 F& r: R
php-fpm service php-fpm start
$ \0 V3 O- t4 e/ \& F8 \nginx service nginx start8 W) o+ N+ C0 X$ i# ~8 \/ R8 }$ |) D
蝯嚗
- A0 V' H8 c/ i9 r) d. }1 p箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory& c5 T6 h5 e; }8 D# J9 b" {
閫瘙嚗) g4 B; S7 z- D/ ]0 t' M
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib641 W* Q4 O" {$ M; A3 W
銝甈∪nginx service nginx start
1 J! |2 |# n, p% O, \; C蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:465 B* j a8 ?, U1 _6 W
亦nginx configure /usr/sbin/nginx -V
- }/ L+ d6 S! W6 jnginx version: nginx/1.0.152 I5 z/ R# p8 l5 n
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
1 j% }6 J8 r0 e8 }6 b7 \: b, OTLS SNI support enabled
8 Y/ L+ U. p0 D% N! wconfigure 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% n! }) y! P) a8 [, y
. a f1 h! r( s8 \
# e5 e/ i( ]3 T9 \$ ^+ snginx service nginx start
, J5 d) ~$ v2 y0 X% Verror :
5 @2 c9 Q9 h* k( G* b% K1 {nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
! C+ H- q. u4 X% O9 [+ U# znginx: configuration file /etc/nginx/nginx.conf test failed- {( b! C) d" D
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
( K' Q, _8 U1 d$ ~SELINUX = enforcing 寞 disabled 7 U) `$ n! \. r0 ~/ {* B+ T
' k4 i: a% u( }9 @, [% W
; C6 ?" j/ F( S- z* m, @+ N" k7 a+ \3 h# S
1 }5 e2 E: P3 Q7 z1 |6 V |
|