1摰鋆nginx
6 }: {: \3 c3 ?: [6 m; F' a0 p yum install nginx! ~% C) e8 v9 T/ h* `/ R
..........
/ g& G7 t- @0 Z% k- sRunning Transaction+ E: X) x" }, C8 d; v) [
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
4 f* f4 h: E1 W+ f% m2 V4 j/ [" L Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
4 S- m6 ]/ ^& v6 y7 C Installing : nginx-1.0.15-11.el6.x86_64 3/3. |. X/ n8 |4 h+ D2 u; _
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
9 O% v `( C2 O' W, X Verifying : nginx-1.0.15-11.el6.x86_64 2/3" S/ V E4 z4 J( q
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/30 ~$ T5 J0 g+ h5 s
- b. X1 F' \: P6 c$ X7 Y5 O5 `Installed:# _! m8 z6 g5 C
nginx.x86_64 0:1.0.15-11.el6
7 u3 B0 T# y1 i4 Z1 dDependency Installed:. _9 J5 E, I0 ~, K C# N3 L
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el62 T$ S7 K" ?$ r1 @9 r8 `# X: s
Complete!
( V; u0 b# H3 ^- x# l+ r1 B6 {6 b7 h* B+ M& a% ]' j: z' h; y
閮剖/etc/nginx/nginx.conf
1 h- w3 ]; E% k8 S8 v" l7 a$ c
' ^( y/ X" s9 f9 I2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
( m' Z2 i% K) r, u閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error4 h) |% X! L* J! @5 g( W
* J( D2 M ?* |# lphp-fpm service php-fpm start" e+ P0 X7 E) F: m4 K; R3 V9 v7 F
nginx service nginx start
$ d+ ?6 y, C: {% V9 n1 b/ O蝯嚗
T$ S+ z) S$ } z/ s% |箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory* c- U- t4 C, g
閫瘙嚗
+ k0 i1 M* a4 q/ N餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
" I Z/ I0 a. p$ n: u" S( O# Y* T# ]銝甈∪nginx service nginx start
: w7 {+ P% F. G蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46- P4 B& ?# m9 T
亦nginx configure /usr/sbin/nginx -V# G# a' H1 K2 p; N" D, p T
nginx version: nginx/1.0.15
. V& A! T7 K0 R1 hbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
. P5 \* C5 f$ `4 c+ }& h4 cTLS SNI support enabled
- a! p3 X9 m& vconfigure 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$ w. `: P+ {- ?4 r9 _/ {
Z$ H0 P4 z( K+ V
; P1 _7 T$ n; Z0 m8 `5 Unginx service nginx start
1 S% t1 j3 p4 B7 \7 W5 ^# P* Ierror :
* J* R3 |) j6 C( t% Y0 p: [. @7 N; Inginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
# o, Y: h8 M6 G* N; D! Nnginx: configuration file /etc/nginx/nginx.conf test failed
. b/ h0 E; H6 f! H7 m4 v B閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
! Z4 G5 `5 P" S! I# iSELINUX = enforcing 寞 disabled
9 `# m2 [/ K2 g! k2 H; I
# h; p7 g8 D3 J) S+ G2 r3 F7 t1 x5 p- x f- A/ A
8 ]0 e/ r* R4 v8 ?! Y" |6 D3 z5 R
1 L: F/ ~: Q' D x; W3 F' J* _4 a2 Z |
|