1摰鋆nginx: [- ^* X/ B% x9 D y/ e% A/ T
yum install nginx
2 }; T7 I; i' F, g6 w* K0 m* F2 h..........
. t8 D: L9 x5 b- F$ M9 ~& oRunning Transaction
/ S1 E O G+ F6 O7 ]- i Installing : GeoIP-1.5.1-5.el6.x86_64 1/37 F$ ^ D' y1 _5 u' Z. f
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
3 {* h% \! l! K6 g Installing : nginx-1.0.15-11.el6.x86_64 3/3, k+ ]/ C; ?8 b" z& l, Y+ o
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
/ q* S% F0 B7 y; V Verifying : nginx-1.0.15-11.el6.x86_64 2/3
! ~$ {% B/ g# O8 _2 G Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
: o: Z" d4 E# G+ q7 A# r9 G K* M% V) I) r; r }0 f- a: `, h
Installed:
3 n/ z. _2 g2 P nginx.x86_64 0:1.0.15-11.el6
: `0 N+ D( K3 B' TDependency Installed:% A0 ?- n. q4 G: e/ r
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
* X* I2 h* F+ F6 H- g Z# n% ]Complete!
& n( @' \# t% v) r, W C2 j, I1 s# }1 ?! z$ `4 V
閮剖/etc/nginx/nginx.conf
, L) j- B2 R- i( a
1 x5 g/ c1 }& K1 E$ v4 m8 ?9 Z }3 d2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html9 S. a0 |2 B3 g) d5 ]+ S
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
7 C! w/ q* K, G+ ?# W7 o# W
5 R/ _8 V6 e1 C1 I; [- \! vphp-fpm service php-fpm start
5 p, K; a8 ]) {. n3 A* ~7 W1 j( |nginx service nginx start
o7 N z5 ] g# A& F蝯嚗% @: S. n4 Z1 Q
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
- Q# l% p( m5 J, M1 h3 e; E; t) ~閫瘙嚗
7 b7 Z+ P. M4 r, @! y0 W$ [餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
' o) W6 O1 {, T- t) O9 Q銝甈∪nginx service nginx start! u0 r1 }( E6 g/ w, a
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
) B6 `! }/ i& m亦nginx configure /usr/sbin/nginx -V
2 ]9 ~$ _6 e4 X0 m, N$ Vnginx version: nginx/1.0.153 I( s$ A# f3 x1 ^1 Q
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)& m- o( f) b/ O0 F/ ]% m
TLS SNI support enabled- z+ o, U% V% A0 A( @$ R5 |2 `
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
$ h1 V4 }5 n; C4 H$ K1 X 8 b, a+ J8 y1 G) A4 J
) `, H: v8 V$ z) ?$ @& q
nginx service nginx start
" V9 b' I& G4 p) z; y; ?error :
. j6 J% M" l; @" q' |- B4 Jnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40% f, T* U: |$ |% ~" i
nginx: configuration file /etc/nginx/nginx.conf test failed
, u' S- f k- H7 V& Z6 X5 [% {9 d# x閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭- F5 q1 b+ L3 M3 x( N
SELINUX = enforcing 寞 disabled
- G: Z% ?0 b O$ J! W( n: Q# Y) \2 [1 g" h3 ]& p% _
9 E4 N1 D8 |* y6 Y6 `* j
5 Z) Q/ q: v5 T
# o4 y6 j4 b1 ^* e' ?
|
|