你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。
在CentOS中,您需要安装:
[root@localhost zimg]# yum install openssl-devel cmake libevent-devel libjpeg-devel giflib-devel libpng-devel libwebp-devel ImageMagick-devel libmemcached-devel
在Ubuntu中,您需要安装以下软件包
[root@localhost zimg]# sudo apt-get install openssl cmake libevent-dev libjpeg-dev libgif-dev libpng-dev libwebp-dev libmagickcore5 libmagickwand5 libmemcached-dev
[root@localhost zimg]# wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz
[root@localhost zimg]# tar zxvf openssl-1.0.1i.tar.gz
[root@localhost zimg]# cd openssl-1.0.1i
[root@localhost openssl-1.0.1i]# ./config shared --prefix=/usr/local --openssldir=/usr/ssl
[root@localhost openssl-1.0.1i]# make && make install
[root@localhost zimg]# wget http://www.cmake.org/files/v3.0/cmake-3.0.1.tar.gz
[root@localhost zimg]# tar xzvf cmake-3.0.1.tar.gz
[root@localhost zimg]# cd cmake-3.0.1
[root@localhost cmake-3.0.1]# ./bootstrap --prefix=/usr/local
[root@localhost cmake-3.0.1]# make && make install
[root@localhost zimg]# wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
[root@localhost zimg]# tar zxvf libevent-2.0.21-stable.tar.gz
[root@localhost zimg]# cd libevent-2.0.21-stable
[root@localhost zimg]# ./configure --prefix=/usr/local
[root@localhost zimg]# make && make install
libjpeg-turbo(推荐)
要构建libjpeg-turbo,必须先安装nasm
[root@localhost zimg]# wget https://downloads.sourceforge.net/project/libjpeg-turbo/1.3.1/libjpeg-turbo-1.3.1.tar.gz
[root@localhost zimg]# tar zxvf libjpeg-turbo-1.3.1.tar.gz
[root@localhost zimg]# cd libjpeg-turbo-1.3.1
[root@localhost libjpeg-turbo-1.3.1]# ./configure --prefix=/usr/local --with-jpeg8
[root@localhost libjpeg-turbo-1.3.1]# make && make install
libjpeg,giflib和libpng
仅使用系统软件包。源代码构建是不必要的。
libwebp
[root@localhost zimg]# wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.1.tar.gz
[root@localhost zimg]# tar zxvf libwebp-0.4.1.tar.gz
[root@localhost zimg]# cd libwebp-0.4.1
[root@localhost libwebp-0.4.1]# ./configure
[root@localhost libwebp-0.4.1]# make
[root@localhost libwebp-0.4.1]# make install
imagemagick
[root@localhost zimg]# wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
[root@localhost zimg]# tar zxvf libmemcached-1.0.18.tar.gz
[root@localhost zimg]# cd libmemcached-1.0.18
[root@localhost libmemcached-1.0.18]# ./configure -prefix=/usr/local
[root@localhost libmemcached-1.0.18]# make && make install
libmemcached
[root@localhost zimg]# wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
[root@localhost zimg]# tar zxvf libmemcached-1.0.18.tar.gz
[root@localhost zimg]# cd libmemcached-1.0.18
[root@localhost libmemcached-1.0.18]# ./configure -prefix=/usr/local
[root@localhost libmemcached-1.0.18]# make && make install
[root@localhost ~]# git clone https://github.com/buaazp/zimg -b master --depth=1
[root@localhost ~]# cd zimg
[root@localhost ~]# make
构建可选的存储后端
memcached(可选)
wget http://www.memcached.org/files/memcached-1.4.19.tar.gz
tar zxvf memcached-1.4.19.tar.gz
cd memcached-1.4.19
./configure --prefix=/usr/local
make
make install
beansdb(可选)
git clone https://github.com/douban/beansdb
cd beansdb
./configure --prefix=/usr/local
make
benseye(可选)
git clone git@github.com:douban/beanseye.git
cd beanseye
make
SSDB(可选)
wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
unzip master
cd ssdb-master
make
twemproxy(可选)
git clone git@github.com:twitter/twemproxy.git
cd twemproxy
autoreconf -fvi
./configure --enable-debug=log
make
src/nutcracker -h
### 基础包
[root@localhost zimg]# yum install openssl-devel cmake libevent-devel libjpeg-devel giflib-devel libpng-devel libwebp-devel ImageMagick-devel libmemcached-devel libevent
[root@localhost zimg]# cd /data/zimg/
[root@localhost zimg]# wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz
[root@localhost zimg]# wget http://www.cmake.org/files/v3.0/cmake-3.0.1.tar.gz
[root@localhost zimg]# wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
[root@localhost zimg]# wget https://downloads.sourceforge.net/project/libjpeg-turbo/1.3.1/libjpeg-turbo-1.3.1.tar.gz
[root@localhost zimg]# wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.1.tar.gz
[root@localhost zimg]# wget http://www.p_w_picpathmagick.org/download/ImageMagick.tar.gz
[root@localhost zimg]# wget http://www.imagemagick.org/download/ImageMagick.tar.gz
### 安装步骤
[root@localhost zimg]# git clone https://github.com/buaazp/zimg -b master --depth=1
[root@localhost zimg]# tar zxvf openssl-1.0.1i.tar.gz
### openssl-1.0.1i
[root@localhost zimg]# cd openssl-1.0.1i/
[root@localhost openssl-1.0.1i]# ./config shared --prefix=/usr/local --openssldir=/usr/ssl
[root@localhost openssl-1.0.1i]# make && make install
### cmake-3.0.1.tar.gz
[root@localhost zimg]# tar xzvf cmake-3.0.1.tar.gz
[root@localhost zimg]# cd cmake-3.0.1
[root@localhost cmake-3.0.1]# ./bootstrap --prefix=/usr/local
[root@localhost cmake-3.0.1]# make && make install
#### libevent-2.0.21-stable
[root@localhost zimg]# tar -zxvf libevent-2.0.21-stable.tar.gz
[root@localhost zimg]# cd libevent-2.0.21-stable/
[root@localhost libevent-2.0.21-stable]# ./configure --prefix=/usr/local
[root@localhost libevent-2.0.21-stable]# make && make install
### libjpeg-turbo-1.3.1
[root@localhost zimg]# tar -zxvf libjpeg-turbo-1.3.1.tar.gz
[root@localhost zimg]# cd libjpeg-turbo-1.3.1/
[root@localhost libjpeg-turbo-1.3.1]# ./configure --prefix=/usr/local --with-jpeg8
[root@localhost libjpeg-turbo-1.3.1]# make && make install
#### libwebp-0.4.1
[root@localhost zimg]# tar -zxvf libwebp-0.4.1.tar.gz
[root@localhost zimg]# cd libwebp-0.4.1/
[root@localhost libwebp-0.4.1]# ./configure
[root@localhost libwebp-0.4.1]# make
[root@localhost libwebp-0.4.1]# make install
### libmemcached
[root@localhost zimg]# tar -zxvf libmemcached-1.0.18.tar.gz
[root@localhost zimg]# cd libmemcached-1.0.18/
[root@localhost libmemcached-1.0.18]# ./configure -prefix=/usr/local
[root@localhost libmemcached-1.0.18]# make && make install
[root@localhost libmemcached-1.0.18]# make && make install
[root@localhost zimg]# git clone https://github.com/buaazp/zimg -b master --depth=1
[root@localhost zimg]# tar zxvf openssl-1.0.1i.tar.gz
### openssl-1.0.1i
[root@localhost zimg]# cd openssl-1.0.1i/
[root@localhost openssl-1.0.1i]# ./config shared --prefix=/usr/local --openssldir=/usr/ssl
[root@localhost openssl-1.0.1i]# make && make install
### cmake-3.0.1.tar.gz
[root@localhost zimg]# tar xzvf cmake-3.0.1.tar.gz
[root@localhost zimg]# cd cmake-3.0.1
[root@localhost cmake-3.0.1]# ./bootstrap --prefix=/usr/local
[root@localhost cmake-3.0.1]# make && make install
#### libevent-2.0.21-stable
[root@localhost zimg]# tar -zxvf libevent-2.0.21-stable.tar.gz
[root@localhost zimg]# cd libevent-2.0.21-stable/
[root@localhost libevent-2.0.21-stable]# ./configure --prefix=/usr/local
[root@localhost libevent-2.0.21-stable]# make && make install
### libjpeg-turbo-1.3.1
[root@localhost zimg]# tar -zxvf libjpeg-turbo-1.3.1.tar.gz
[root@localhost zimg]# cd libjpeg-turbo-1.3.1/
[root@localhost libjpeg-turbo-1.3.1]# ./configure --prefix=/usr/local --with-jpeg8
[root@localhost libjpeg-turbo-1.3.1]# make && make install
#### libwebp-0.4.1
[root@localhost zimg]# tar -zxvf libwebp-0.4.1.tar.gz
[root@localhost zimg]# cd libwebp-0.4.1/
[root@localhost libwebp-0.4.1]# ./configure
[root@localhost libwebp-0.4.1]# make
[root@localhost libwebp-0.4.1]# make install
### libmemcached
[root@localhost zimg]# tar -zxvf libmemcached-1.0.18.tar.gz
[root@localhost zimg]# cd libmemcached-1.0.18/
[root@localhost libmemcached-1.0.18]# ./configure -prefix=/usr/local
[root@localhost libmemcached-1.0.18]# make && make install
[root@localhost libmemcached-1.0.18]# make && make install
[root@localhost zimg]# tar -zxvf ImageMagick.tar.gz
### ImageMagick-7.0.10-13
[root@localhost zimg]# cd ImageMagick-7.0.10-13/
[root@localhost ImageMagick-7.0.10-13]# ./configure --prefix=/usr/local
[root@localhost ImageMagick-7.0.10-13]# make && make install
安装zimg
[root@localhost zimg]# git clone https://github.com/buaazp/zimg -b master --depth=1
如果你想加载一篇你写过的.md文件,在上方工具栏可以选择导入功能进行对应扩展名的文件导入,
继续你的创作。
http://zimg.buaa.us/documents/install/