1 Star 0 Fork 162

xiaochen / apioak

forked from apioak / apioak 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install-dependencies.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
帅进超 提交于 2019-12-31 22:33 . change: update README.md

Install Dependencies

CentOS 7

# install epel, `luarocks` need it.
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm

# add openresty source
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo

# install openresty and some compilation tools
sudo yum install -y openresty openresty-resty curl git automake autoconf \
    gcc pcre-devel openssl-devel libtool gcc-c++ luarocks cmake3 lua-devel etcd

sudo ln -s /usr/bin/cmake3 /usr/bin/cmake

# start etcd server
sudo service etcd start

Ubuntu 18

# add openresty source
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
sudo apt-get update

# install openresty and some compilation tools
sudo apt-get install -y openresty openresty-resty curl git luarocks\
    check libpcre3 libpcre3-dev libjemalloc-dev \
    libjemalloc1 build-essential libtool libssl1.0-dev automake autoconf pkg-config \
    cmake etcd

# start etcd server
sudo service etcd start
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Lua
1
https://gitee.com/xiaochen320/apioak.git
git@gitee.com:xiaochen320/apioak.git
xiaochen320
apioak
apioak
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891