-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
request help: How to install apisix in centos8? #6462
Comments
Why dont try docker? |
Hello there, Some variables, such as $releasever, have different values in
Simple fix solutionA simple fix, replace [release]
name=Apache APISIX Repository for CentOS
baseurl=https://repos.apiseven.com/packages/centos/7/$basearch
skip_if_unavailable=False
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://repos.apiseven.com/KEYS
enabled=1
enabled_metadata=1 SolutionAdd a |
If I am correct, we don't release any CentOS 8 package? So changing the download URL won't bring a difference. |
Manual source installation of apisix in CentOS8 APISIX_VERSION='2.12.1'
mkdir apisix-${APISIX_VERSION}
wget https://downloads.apache.org/apisix/${APISIX_VERSION}/apache-apisix-${APISIX_VERSION}-src.tgz
tar zxvf apache-apisix-${APISIX_VERSION}-src.tgz -C apisix-${APISIX_VERSION}
# Switch to the apisix-${APISIX_VERSION} directory
cd apisix-${APISIX_VERSION}
## install apisix luarrocks
wget https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh
sh linux-install-luarocks.sh
## install openresty
wget https://openresty.org/package/centos/openresty.repo
sudo mv openresty.repo /etc/yum.repos.d/
sudo yum check-update
sudo yum install -y openresty
sudo yum install -y openresty-openssl111-devel*
## depend OpenLDAP,manual compile and install
./configure --with-cyrus-sasl --with-tls=openssl --enable-overlays=mod --enable-backends=mod --disable-perl --disable-ndb --enable-crypt --enable-modules --enable-dynamic --enable-syslog --enable-debug --enable-local --enable-spasswd --disable-sql --disable-wt --disable-ndb --prefix=/usr/local/openldap-2.6.1
make depend
make
cd contrib/slapd-modules/passwd/sha2
make
cd ../../../..
install guides: https://tylersguides.com/guides/install-openldap-from-source-on-centos-8/
# Create dependencies
cd apisix-${APISIX_VERSION}
make deps
# Install apisix command
make install
# test
apisix version
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version
2.12.1 |
Yes, there is no separate RPM package for CentOS 8 available.
Fortunately, the RPM package is universal, it work fine in both |
That's not generic enough, although now the version on CentOS 7 can also run on CentOS 8, this ability might be broken in the future, I think we can consider to release a specific package on CentOS 8 if it's really a pain point. |
I would like to fix it. :) |
This may sound look a old school method but I suggest compiling from source code for more performance and freedom wholeheartedly. |
Issue description
I use this cmd to install apisix in centos8,but it failed.
Environment
apisix version
):uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):The text was updated successfully, but these errors were encountered: