1摰鋆nginx
8 F1 W8 R* h' [& q9 f2 F4 l3 S ^ yum install nginx
, g" R/ x, ^/ \5 ~* T..........- z) g8 ~2 B* z. \6 [: M Q6 d
Running Transaction
) l9 A2 A$ O$ U9 z. H: P1 W Installing : GeoIP-1.5.1-5.el6.x86_64 1/39 l0 N- O5 a/ J9 t2 R
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
% t0 Q# N8 h/ i2 d9 K4 A Installing : nginx-1.0.15-11.el6.x86_64 3/3
3 i, m$ ^8 D, {7 w Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
6 Z( H2 E8 U8 J$ A9 ^& p Verifying : nginx-1.0.15-11.el6.x86_64 2/3
$ O, J; i& ~* f- Z Verifying : GeoIP-1.5.1-5.el6.x86_64 3/39 ^4 v& Y. {! G
$ w. w; s$ a( F" W
Installed:
+ q# k2 K# s, U0 U7 e; ?6 `/ w% D nginx.x86_64 0:1.0.15-11.el6
# r! v: j( A$ N; E# fDependency Installed:, E8 v2 z; y& }6 l2 g; ?
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
7 e0 z7 f+ e7 f4 ~2 H3 NComplete!
* N4 f* }. c9 X+ }
! O/ X8 r) E5 ~% C' J閮剖/etc/nginx/nginx.conf& w5 {5 u! N. k9 k: \$ ~
4 \4 v2 U$ i9 z7 ?# J
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html4 E! c% Z% r' y
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
& b. a; ?2 T. N. e/ U% s5 W
* g* s; \9 W$ E4 I! Y8 N5 g3 |php-fpm service php-fpm start, ^* C' _ E8 w+ ~! I
nginx service nginx start
1 w8 u2 h4 d- h: c. R蝯嚗( l. x6 |# u1 X
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory/ @2 U3 B: j3 l8 t R( n% q
閫瘙嚗
3 N8 `, O' u7 ~0 X( S. x. R! a: N3 p0 X餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
I9 q- ]( n. r8 R% c1 @6 ~銝甈∪nginx service nginx start* ^2 _( A& S1 x$ h' u
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46, f- b* S8 ^ g8 A
亦nginx configure /usr/sbin/nginx -V
5 i9 j3 t3 h- y o8 `nginx version: nginx/1.0.15
* \- a& V! Q0 g' g' T* O% Qbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)- H- l( Z) L# H" y" L1 \
TLS SNI support enabled
9 q* @- b, c4 t( B7 K/ E, e) Gconfigure 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
' I7 H# `: D* {, T7 h 7 y+ Y! ~- n. l8 y( o
3 D& i% c. `, k* m1 O; knginx service nginx start ~1 |$ S. p$ T# V, U1 _4 b
error : 9 O$ \8 d8 {# t; H5 A/ t
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
" y5 J) M% }+ {0 x6 r# ^nginx: configuration file /etc/nginx/nginx.conf test failed3 _" m" U+ ^# [
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
8 R J, d+ i& P4 s& FSELINUX = enforcing 寞 disabled 3 S/ d( g t7 | i
0 c: T# N# ] w6 l4 C4 ?
6 ~+ ?4 f: ?) {" y4 i d
& M$ q d! P9 N
. j2 k. U( s2 m
|
|