Skip to content

Commit d2fcad4

Browse files
committed
yum直接安装GraphicsMagick
1 parent bcb3009 commit d2fcad4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

nginx-install.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ useradd -g www www -s /bin/false
88

99
yum install -y gcc gcc-c++ zlib zlib-devel openssl openssl-devel pcre pcre-devel
1010
yum install -y libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
11+
yum install -y GraphicsMagick GraphicsMagick-devel
1112
```
1213
1. download software
1314
--------------------
@@ -18,7 +19,6 @@ cd /usr/local/src
1819
```bash
1920
wget http://nginx.org/download/nginx-1.8.0.tar.gz
2021
wget http://luajit.org/download/LuaJIT-2.0.4.tar.gz ### LuaJIT
21-
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.21.tar.gz ### GraphicsMagick
2222
wget http://zlib.net/zlib-1.2.8.tar.gz
2323
```
2424
### nginx module
@@ -50,15 +50,8 @@ export LUAJIT_INC=/usr/local/include/luajit-2.0
5050
ln -s /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2
5151
cd ..
5252
```
53-
#### 2.2 install GraphicsMagick
54-
```bash
55-
cd GraphicsMagick-1.3.21
56-
./configure --enable-shared --with-jpeg=yes --with-png=yes
57-
make -j8
58-
make install
59-
cd ..
60-
```
61-
#### 2.3 install nginx
53+
54+
#### 2.2 install nginx
6255
```bash
6356
cd nginx-1.8.0
6457
./configure --prefix=/usr/local/nginx \

0 commit comments

Comments
 (0)