1摰鋆nginx
3 R# H$ p" Z; t6 m9 ^9 _$ A: ^ yum install nginx
. f7 l; K \" v- w( n..........% J0 B( z0 ~ H( F, S+ m) R' R
Running Transaction
- q* a) m% }# R$ Q8 G0 t' | Installing : GeoIP-1.5.1-5.el6.x86_64 1/3+ M4 C' A$ P. x8 [6 A
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
" d& u' | M0 L9 ^ p+ O% w Installing : nginx-1.0.15-11.el6.x86_64 3/3, A. |4 S( Y1 C( i! ~/ D
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3: s6 {6 b6 p' P% t0 @
Verifying : nginx-1.0.15-11.el6.x86_64 2/3
% x1 T+ @! n$ N0 T3 a! b8 } Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3$ \0 L9 O' ^4 {% |+ _7 y
6 d8 w9 o1 d) \& R) fInstalled:
0 M. q3 v$ A2 s: s% h: S nginx.x86_64 0:1.0.15-11.el63 V* s7 Z n5 O4 _( o) b7 Y4 W: v3 Z
Dependency Installed:
- q0 ^" d1 k) L4 y GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
3 \' Q2 s5 u- E) hComplete!1 O7 I7 [. b* K9 j- _7 W: t0 `
$ i! w; q) ]) y$ w閮剖/etc/nginx/nginx.conf" G, K) a) X% \; T; F
9 B Q8 H c/ n; a
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
+ ]/ K; D/ t R0 J8 p6 n( K8 C: I閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
: l R, {! Q9 U3 ?/ C$ L/ m2 B3 O4 v3 S4 {: T( G B
php-fpm service php-fpm start
" w& d5 E( Y& b: l$ Y: j4 {% N4 Ynginx service nginx start# C8 r H% k0 l6 D
蝯嚗4 `, M, w! @# v" o8 a. e6 `! N# `
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
& d+ |* X1 R: L6 {6 n閫瘙嚗
+ Z- C2 V4 B; P. l餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib645 ], X! K; e2 t
銝甈∪nginx service nginx start
6 X* e! i: o& `; m3 Y蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:466 j$ {# c' [% G; W5 D
亦nginx configure /usr/sbin/nginx -V
0 e* q0 F3 V- Z7 cnginx version: nginx/1.0.154 B8 L- I* C8 T" ]7 f- e
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
; `7 W# W8 U8 V- sTLS SNI support enabled
0 p+ ~4 B* y/ C# ]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& X8 A7 f/ `6 r- [; \" a
7 k% `5 R3 p0 W- t7 R# v$ [0 H- m H8 e1 _3 l. J6 s
nginx service nginx start ; V' O+ T% H9 v/ Q$ j; L# z
error :
' p* Y2 S& P( k# @1 tnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:404 G2 p }$ g5 q. b( d4 F7 [
nginx: configuration file /etc/nginx/nginx.conf test failed
E# h8 x# `+ v2 K3 q閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭: n* u) m. A) f2 [7 m8 B
SELINUX = enforcing 寞 disabled . y% n1 g8 c6 B; N
4 {1 y4 Z" W2 s0 H& D i/ T5 H
. w. K) M' Z/ z2 y* X$ D7 `
5 }3 z2 q( C6 j: @6 m# u
( F6 |6 } k; p8 l8 P0 ^ |
|