2.3.3 代码编译

代码编译过程如下。


# 安装编译依赖
yum -y install gcc pcre-devel  zlib-devel openssl-devel libxml2-devel \
    libxslt-devel gd-devel GeoIP-devel yajl-devel jemalloc-devel \
    libatomic_ops-devel luajit luajit-devel perl-devel perl-ExtUtils-Embed

# 执行编译配置
./configure 

# 代码编译及安装
make & make install

安装Lua或LuaJIT都可以,LuaJIT是Lua的高效版本,推荐安装LuaJIT。编译完成后,默认安装目录为/usr/local/nginx。