1摰鋆nginx: {: s) {7 y/ t/ p0 _
yum install nginx
9 L0 K) w! e, Q6 e3 z..........
% m6 @+ @$ f" g" [4 A. NRunning Transaction/ k& g% N1 h6 e
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
5 K2 I- a7 E' x. q* Y) B" @ Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3, E k! A! Z8 M) M9 V
Installing : nginx-1.0.15-11.el6.x86_64 3/3
* ]1 l5 h( g8 p( i5 c2 B5 r Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
( k5 {1 X3 G+ n* v) U Verifying : nginx-1.0.15-11.el6.x86_64 2/3
# q: l4 D( a3 l% t% @6 d. Y Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3. I/ u% B$ o3 i) j' e
2 Q/ Y2 w5 R/ G* s2 ~, }Installed:8 m# p; b- x* q+ J. T5 i1 S
nginx.x86_64 0:1.0.15-11.el64 c4 s: y8 _. W P1 D) s$ P+ C' V; O
Dependency Installed:
: l: Q# [' I+ |& W GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
4 R" }+ a- K% l( O1 `Complete!
$ ]! i+ c! g; C
8 k$ T* x/ `/ C4 i% i閮剖/etc/nginx/nginx.conf- `% t5 a4 S- C
4 y2 |1 N- N) C3 B: W2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html3 N& c4 s* w8 O/ O* |% U) e2 x
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
0 u" u" h! F) s
: L" @7 r9 q ?% r3 w: Wphp-fpm service php-fpm start
* P( [2 D f& w$ N# K/ znginx service nginx start
% G; y# C3 W/ ^3 p9 K4 x9 O蝯嚗
1 X( J1 y" a. Y2 {% B箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory+ t: U" t. r6 Q% z
閫瘙嚗
+ _' A6 N2 G/ b: J" Z餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib644 N+ s4 {" I7 ]3 Q& N
銝甈∪nginx service nginx start& v; U- S @# t- f6 i: e$ ?
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46) u& o z6 ~2 Z& j3 `
亦nginx configure /usr/sbin/nginx -V
* L0 }& k7 N9 {& a& `. R$ Mnginx version: nginx/1.0.15- o1 r+ `% d" y) }& U8 k9 a
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)4 f" ~. I+ R0 q6 K
TLS SNI support enabled
5 G4 f: m/ k% M6 _* s2 @0 ~configure 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
: O. P) J, W* E3 L! M 4 {, {( L4 f( M/ L+ U8 _
* Z/ \9 n) c& ]& Dnginx service nginx start
1 e( z- J# r$ M; p. W% c/ L: F1 herror : . R4 Z3 P0 B3 E# L
nginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:409 m/ A% X# t$ t! L
nginx: configuration file /etc/nginx/nginx.conf test failed
- p8 r1 M4 l# W$ t1 s( T閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
: T+ ^4 F/ o! R8 @SELINUX = enforcing 寞 disabled
1 {/ q5 x2 }$ p: V6 _
2 g" e$ H7 P# x6 R$ E+ K1 A- h C2 M% [( q( w9 G8 g
. }& N& p& E0 P5 r% F: p/ F6 n7 U/ A2 {+ Q& _
|
|