Skip to content

Commit

Permalink
yum直接安装GraphicsMagick
Browse files Browse the repository at this point in the history
  • Loading branch information
yanue committed Apr 22, 2016
1 parent bcb3009 commit d2fcad4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions nginx-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ useradd -g www www -s /bin/false

yum install -y gcc gcc-c++ zlib zlib-devel openssl openssl-devel pcre pcre-devel
yum install -y libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
yum install -y GraphicsMagick GraphicsMagick-devel
```
1. download software
--------------------
Expand All @@ -18,7 +19,6 @@ cd /usr/local/src
```bash
wget http://nginx.org/download/nginx-1.8.0.tar.gz
wget http://luajit.org/download/LuaJIT-2.0.4.tar.gz ### LuaJIT
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.21.tar.gz ### GraphicsMagick
wget http://zlib.net/zlib-1.2.8.tar.gz
```
### nginx module
Expand Down Expand Up @@ -50,15 +50,8 @@ export LUAJIT_INC=/usr/local/include/luajit-2.0
ln -s /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2
cd ..
```
#### 2.2 install GraphicsMagick
```bash
cd GraphicsMagick-1.3.21
./configure --enable-shared --with-jpeg=yes --with-png=yes
make -j8
make install
cd ..
```
#### 2.3 install nginx

#### 2.2 install nginx
```bash
cd nginx-1.8.0
./configure --prefix=/usr/local/nginx \
Expand Down

0 comments on commit d2fcad4

Please sign in to comment.