centos下kong源码安装
参考资料:
https://docs.konghq.com/install/source/
环境准备:操作系统 centeros7.3
1 :openssl和pcre一般系统自带,如果没有可自己安装 https://www.openssl.org/source/
或者 yum -y install pcre-devel openssl openssl-devel
2: git
yum install git -y
3:gcc
yum install gcc -y
3: lua
wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
tar -xvf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5
make install
一: 下载安装 openresty
wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
tar -xvf openresty-1.13.6.2.tar.gz
cd openresty-1.13.6.2
./configure --with-pcre-jit --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_v2_module
gmake install
二:luarocks
wget http://luarocks.github.io/luarocks/releases/luarocks-3.0.3.tar.gz
tar -xvf luarocks-3.0.3.tar.gz
cd luarocks-3.0.3
./configure
make install
三:安装kong
将源码copy到服务器
make install
如果成功会提示:kong 0.14.1-0 is now installed in /usr/local (license: MIT)
四 :安装数据库
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm -y
yum install postgresql10 -y
yum install postgresql10-server -y
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10
创建数据库
su - postgres
psql
CREATE USER kong; CREATE DATABASE kong OWNER kong;\qexit;
还需要设置下数据库访问权限vi /var/lib/pgsql/10/data/pg_hba.conf
修改为:host all all 127.0.0.1/32 trustsystemctl restart postgresql-10 五:kong启动 在 /etc/kong/ 文件创建kong.conf 内容如下
prefix = /usr/data/kong/
proxy_listen = 0.0.0.0:8000, 0.0.0.0:8443 ssl
admin_listen = 127.0.0.1:8001
database = postgres # Determines which of PostgreSQL or Cassandra
pg_host = 127.0.0.1 # The PostgreSQL host to connect to.
pg_port = 5432 # The port to connect to.
pg_user = kong # The username to authenticate if required.
pg_password = # The password to authenticate if required.
pg_database = kong
在kong源码根目录bin/kong migrations up
bin/kong start检查配置:
curl -i -X GET http://localhost:8001/
安装完毕。 六: kong dashboard
yum install -y nodejs
npm install -g kong-dashboard
nohup kong-dashboard start --kong-url http://0.0.0.0:8001 --basic-auth admin=123456 &
转载于:https://www.cnblogs.com/hssy/p/9715926.html
centos下kong源码安装相关推荐
- centos 下postgres源码安装
由于最近在做的tigase应用开发,数据库使用的是postgresql-9.0.12,不能自动的使用yum install安装了,因为现在源里面的版本是8.3,无法满足项目要求,特安装了postgre ...
- centos下CMAKE源码安装MYSQL5.5.23
1.软件源代码包存放位置:/usr/local/src 源码包编译安装位置:/usr/local/软件名字 2.下载MySQL,CMAKE, http://www.cmake.org/files/v2 ...
- mysql centos 源码安装_CentOS5下MySQL源码安装方式
1.编译环境安装 uname -aLinux ha01 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Lin ...
- rad linux下安装mysql_Linux(CentOS或RadHat)下MySQL源码安装
MySQL 5.6开始,需要使用g++进行编译. cmake :MySQL 5.5开始,使用cmake进行工程管理,cmake需要2.8以上版本. bison :MySQL语法解析器需要使用bis ...
- linux python3.8源码安装_linux 下从源码安装 Python——小白踩坑记
实验室服务器使用的系统为 Ubuntu 16.04,自带的 python 版本为 Python 2.7.12 和 Python 3.5.2,命令行下使用$ python命令来启动 python 时默认 ...
- CentOS 7中源码安装MySQL 5.7.16 ----已测试验证
最近在CentOS 7中源码安装MySQL 5.7.6+,发现MySQL5.7.6+以后的安装方式真的与以前版本的MySQL安装方式大大的不同呀.不自己安装一把,你都不知道不同之处在哪,下面这篇文章是 ...
- CentOS上PHP源码安装和配置
CentOS上PHP源码安装和配置 此文是在CentOS 7上已经部署了Nginx的基础上进行的 关于CentOS7上安装Nginx,可参考我之前的文章: CentOS上Nginx安装记录 我们现在在 ...
- linux7squid编译安装,CentOS 7.3 源码安装squid 4.12 及安装过程遇到的一些问题
CentOS 7.3 源码安装squid 4.12 及安装过程遇到的一些问题 一.源码安装squid 4.12 1.下载squid-4.12源码包 wget http://www.squid-cach ...
- centos 7 mysql 源码安装_centos7 mysql5.7.17源码安装
centos7 mysql5.7.17源码安装 **安装前准备 操作系统环境:Centos 7.2 1.解决依赖包并下载源码包至/home/soft/目录下[root@node03 ~]# yum - ...
最新文章
- 使用Node.js写一个简单的api接口
- 电压控制型开关电源的基本电路
- java 管理对象是什么_Java工程师(16)对象的管理
- [转]个人开发者做一款Android App需要知道的事情
- 我的世界方块云服务器bug,我的世界:两个方块能无限刷经验?这装置太BUG了
- 初识构造方法 c# 1613698729
- Ubuntu 18.04 下搭建 C/C++编译开发环境及GCC多版本切换
- [Music]乡村摇滚:Any man of mine
- 论文笔记_S2D.41_2017-ICCV-使用深度估计与深度卷积神经场,进行单目视觉里程计的尺度恢复
- String 转 jsonObject
- 【生信进阶练习1000days】day7-RSQLite的使用
- 霍尼236主机说明书_霍尼韦尔236系统中文说明.DOC
- ubuntu下好用的TCP/UDP调试工具
- 原子结构示意图全部_原子结构示意图全部-原子结构示意图规律口诀-前20号元素的原子结构示意图...
- 程序员面试需要出示身份证和毕业证原件吗
- Ubuntu 20.04.2 LTS安装 最新版 微信(wine)
- 解决Microsoft Visual Studio 2010 Macro宏无法运行
- 数学 计算机 生物学,数据:中国高校数学、物理、化学、生物、计算机5大学科实力排名!...
- Matlab的title如何实现换行显示?
- c++ 中的生僻关键字
热门文章
- 【黑金视频连载】FPGA NIOSII视频教程(12)--时间戳定时器实验
- 计算机知识的更新速度,笔记本电脑硬盘如何升级?要容量还是速度?这些知识你需要学会...
- java xml 学习_java学习(四)xml
- 如何将自己写的verilog模块封装成IP核(一)
- Verilog testbench总结(二)
- do{}while(0)用法
- CSDN Markdown编辑器的使用
- python SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: trunca
- crnn自编码网络(类似递归)
- pytorch torch.optim.lr_scheduler 各种使用和解释