1摰鋆nginx
. j" K4 K7 C, k yum install nginx
6 V* W. F# R1 U9 ~: }# y Z..........
$ b5 D7 ?1 J$ S6 [Running Transaction
" W0 r% F+ B2 G0 V Installing : GeoIP-1.5.1-5.el6.x86_64 1/3$ Q( c3 H) V1 H
Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/36 m- W/ a- y3 d0 y7 d
Installing : nginx-1.0.15-11.el6.x86_64 3/3
4 {$ M. m1 Q) D b Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
8 ^$ W5 }, Q4 b0 _/ k$ _7 s4 H Verifying : nginx-1.0.15-11.el6.x86_64 2/3
& J0 l% P" b1 e' X7 a. h; z9 h. F Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3" g1 O: ?: @+ v' R6 n: V
; ~8 X6 Y5 r5 f1 E; S2 z% c1 wInstalled:$ Y: k9 E9 k; r5 q0 A% B! c# u& ]
nginx.x86_64 0:1.0.15-11.el63 B, U2 N0 q" a |9 Q0 e* @
Dependency Installed:6 u; c* s4 Z: }; S1 t( {
GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
# J1 x) [/ m8 x# yComplete!
: c: |- p0 x0 U) R4 y h0 [' c% F8 u! L% T) {1 e* ~
閮剖/etc/nginx/nginx.conf
2 y& C7 b% \+ q F3 O' t+ P6 m& Q, ^8 i: N: \, T
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html; b5 {, e7 i( O5 E# D6 d: p( n
閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error6 _" v i0 z6 _8 q3 `( w
/ N# N$ W% J" Y7 I- K
php-fpm service php-fpm start& a0 Y9 y1 W7 {" ^
nginx service nginx start, U8 K/ C$ |# Q
蝯嚗* A# W! o2 }: G# @& o
箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
9 p- O: ~7 X2 a; {閫瘙嚗5 N7 M2 p1 p7 f% @7 l6 } a, ~
餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
4 A7 F" _; y- l- y7 v% P銝甈∪nginx service nginx start
+ |" e* X1 v2 |# S6 `- Y2 d& s# o8 V蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
( a1 Y' j2 a/ C5 M+ _亦nginx configure /usr/sbin/nginx -V
0 d; A' h: \% j- h2 N! E. }nginx version: nginx/1.0.15% }2 ^: p: R) U0 c: K( r
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)7 N; \7 c+ Q% Z9 D. N2 S
TLS SNI support enabled' a2 R- }% F4 I
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
1 f \3 U1 Z8 X) ~9 l & ]( O& t1 D6 h" {
+ { v# |( J# J8 z4 r! E& c' d
nginx service nginx start 4 `$ V( u% e6 r" m f3 p7 l9 w
error :
, E) B3 c) r( jnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
0 g. \: W* P4 m' L3 ^2 S9 Anginx: configuration file /etc/nginx/nginx.conf test failed1 n' N/ l \" M
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
: M5 v" G$ l7 l- W: Y+ vSELINUX = enforcing 寞 disabled
* _7 l8 ?- s# F+ w
' I/ @1 ]' }' A, J
1 U E" F7 Y& ?4 q+ O8 I' m
6 J( l7 |# q3 a2 \- d: j: Z
% y8 M/ [1 x7 b/ c: _ |
|