1摰鋆nginx9 c! f8 i L _2 ]% {
yum install nginx
5 I7 ^. A ]3 I; U+ }..........
! p* m. s, M% Q7 GRunning Transaction4 l! `1 J9 E( w
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
( q* f" z, G" ]$ v6 q Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
( y1 x7 u- v8 N z Installing : nginx-1.0.15-11.el6.x86_64 3/3
( `. K9 H; s6 A# ?' ~6 X Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3- w1 G- p# x3 D
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
0 S8 ~ ^2 G8 P4 v Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
! P6 m* O0 o* ~/ p3 O( u6 n u/ R. O) G9 {
Installed:
+ x% X7 z, H( G- Y" Y7 i7 ~) m nginx.x86_64 0:1.0.15-11.el6
: t, ~' Q$ C+ w6 e. F4 mDependency Installed:& m6 {5 k& ] h/ l! }3 H# L
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
C- x q+ x# k3 O) s% CComplete!
& o; i1 j- N! D+ r5 q' N% J! r$ S9 U% S% e9 U. w6 |7 F
閮剖/etc/nginx/nginx.conf
! D0 M+ O% |9 r8 s$ c4 g4 F2 s2 M$ D0 B. g
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html9 D* ^- [% a# l" A( m
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
" b3 e6 t0 f" i7 W% @7 P4 D: X3 w/ q# e- n
php-fpm service php-fpm start
( ^, n4 n' W' @- Y- u& cnginx service nginx start$ p/ J1 _2 g' M0 E7 H5 N
蝯嚗6 B: }& |3 F$ |
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
3 z/ _; o3 K0 f! ~閫瘙嚗
/ j6 P( P" z1 n6 U) L2 J餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
, [4 \& B$ v) S銝甈∪nginx service nginx start
$ I1 F* D4 v# H0 p4 q& Y+ v蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46% u' ~% L6 V, e. E6 R3 d
亦nginx configure /usr/sbin/nginx -V- h' X7 {0 z' _/ ~' _9 E" b) K
nginx version: nginx/1.0.153 J5 B& G# F2 z# n! z
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)4 q: |( s/ V+ J0 R* j! X
TLS SNI support enabled
) W; j: F* j# I' O) _) mconfigure 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
' k6 s& }- t! d- ?6 S7 Y2 R ' j3 p* a: c( \+ C2 E
& v3 u# w3 e( ^% P$ a+ d
nginx service nginx start
0 D- P3 b5 T- @9 B0 B( y) Uerror : V# Q. L8 z% j$ z6 y
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40( J7 Y$ _* v% R, y" l4 j3 c0 b
nginx: configuration file /etc/nginx/nginx.conf test failed/ t4 Q$ L. g/ L- f5 _0 C
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭* H: q+ ~! k/ o/ d7 o1 V9 \
SELINUX = enforcing 寞 disabled
( Z# c( Q0 p3 x& \4 K# d8 s+ E- S7 D2 m- S9 P/ Z
6 i0 G! a. T1 B. Q
; R. {: X2 T: H7 W, J K. a& ^
& H/ A6 f) W+ @/ Q/ B6 Y |
|