https://github.com/apache/apisix/blob/master/doc/install-dependencies.md
sudo yum -y install git autoconf automake libtool pcre-devel gcc-c++ ruby ruby-devel rubygems gcc rpm-build lua-devel cmake3
If your server in China mainland, please add source for Ruby:
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
Then you can install fpm
:
gem install --no-ri --no-rdoc fpm
The version of APISIX is hard-code in run.sh
now, you can change it by yourself.
./run.sh
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo sh -c "$(curl -fsSL https://rpm.nodesource.com/setup_10.x)"
sudo yum install –y nodejs yarn
wget https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz
tar -xzf go1.15.2.linux-amd64.tar.gz
sudo mv go /usr/local
appending the following line to the /etc/profile
file
export GO111MODULE=on
export GOROOT=/usr/local/go
export GOPATH=$HOME/gopath
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source /etc/profile
cd ~
mkdir gopath
./dashboard-rpm.sh
sudo manager-api -p /usr/local/apisix/dashboard/