KONGA配置

KONGA配置安装 KONGA 安装 nodejs 和 git 安装 kong 的文档中已经安装了 版本 gt 8 git 运行 Centos 安装 gityuminstal yyuminstall ygit 需要注意版本 gitversion 版本太低的话需要重新下载 否则 gitclone 时会报错 git 解压编译安装 cdgit 2 0 0makeconf

安装KONGA

安装nodejs和git,安装kong的文档中已经安装了,版本>=8,git运行

Centos安装git

yum install git -y yum install -y git

 需要注意版本,git –version  ,    版本太低的话需要重新下载,否则git  clone时会报错

git解压编译安装

cd git-2.0.0 make configure ./configure --prefix=/usr/git 配置目录 make profix=/usr/git make install 加入环境变量 echo "export PATH=$PATH:/usr/git/bin" >> /etc/profile source /etc/profile

检查版本

git --version  git version 2.0.0

安装依赖  (这些依赖的包,安装在konga目录中,减少一些问题)

yum -y install nodejs npm npm install -g gulp npm install -g bower npm install -g sails

安装konga

git clone https://github.com/pantsel/konga.git cd konga npm install konga 此时可能会报错 Cloning into 'konga'... fatal: unable to access 'https://github.com/pantsel/konga.git/': SSL connect error 升级了git版本后git clone报SSL错误,执行 yum update -y nss curl libcurl

配置 

# 示例配置位置 /config/local_example.js   # 拷贝一份 cd ./config/ cp local_example.js ./local.js   # 配置默认数据库 vi ./local.js models: {     connection: process.env.DB_ADAPTER || 'localDiskDb', }, # 改成 models: {     connection: process.env.DB_ADAPTER || 'mysql', // 这里可以用‘mysql’,‘mongo’,‘sqlserver’,‘postgres’ }, # 保存   # 修改数据库默认配置 vi connections.js   postgres: {     adapter: 'sails-postgresql',     url: process.env.DB_URI,     host: process.env.DB_HOST || 'localhost',     user:  process.env.DB_USER || 'kong1',     password: process.env.DB_PASSWORD || 'kong1',     port: process.env.DB_PORT || 5432,     database: process.env.DB_DATABASE ||'konga_database',     // schema: process.env.DB_PG_SCHEMA ||'public',     poolSize: process.env.DB_POOLSIZE || 10,     ssl: process.env.DB_SSL ? true : false // If set, assume it's true   }, # 保存   # 创建数据库 psql -U postgres -d postgres -h 127.0.0.1 -p 5432 # 新建 linux kong 用户 $ adduser kong #建立新的数据库用户(和之前建立的系统用户要一样) postgres=# create user kong with password 'kong'; #为新用户建立数据库 postgres=# create database konga_database owner kong; #把新建的数据库权限赋予 kong postgres=# grant all privileges on database konga_database to kong; #退出控制台

启动 (启动的时候还是缺少一些模块,直接按照建议安装就可以了)

cd ../ npm start   error: Incompatible Node.js version. Please make sure that you have Node.js >= 8 installed. node版本太低,换8以上。 启动后可能会报错, No DB Adapter defined. Using localDB... error: Grunt :: An error occurred. error:  运行npm install sails-postgresql 报错,权限问题, 执行npm install --unsafe-perm=true --allow-root sails-postgresql

浏览

浏览器输入 localhost:1338,端口可以在local.js改 默认登录名admin,密码是三个admin 配置kong API地址要填写完整地址,后面不要带‘/’

1. Getting blank page with Uncaught ReferenceError: angular is not defined

In some cases when running npm install, the bower dependencies are not installed properly. You will need to cd into your project’s root directory and install them manually by typing

$ npm run bower-deps  (界面空白的时候,需要执行这个)
2. Can’t add/edit some plugin properties.

When a plugin property is an array, the input is handled by a chip component. You will need to press enter after every value you type in so that the component assigns it to an array index. See issue #48 for reference.

3. EACCES permission denied, mkdir ‘/kongadata/’.

If you see this error while trying to run Konga, it means that konga has no write permissions to it’s default data dir /kongadata. You will just have to define the storage path yourself to a directory Konga will have access permissions via the env var STORAGE_PATH.

4. The hook grunt is taking too long to load

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/209681.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月19日 上午8:40
下一篇 2026年3月19日 上午8:40


相关推荐

  • android 定时器

    android 定时器在Android开发中,定时器一般有以下3种实现方法:一、采用Handler与线程的sleep(long)方法二、采用Handler的postDelayed(Runnable,long)方法三、采用Handler与timer及TimerTask结合的方法下面逐一介绍:一、采用Handle与线程的sleep(long)方法Handler主要用来处理接受到的消

    2022年7月25日
    11
  • java远程关机_java远程关机

    java远程关机_java远程关机今天抽空整理下很早以前写的 java 控制计算机的开机和关机 开机的后面重新整理些 现在先记录下关机相关的代码 关机命令 我用的关机命令就是 shutdown 了 相关的参考 help 文档 widows 下 shutdown linux 下 shutdownhelp 这个功能是我们内部使用的 直接把服务放在了 window 上运行 所以以下代码是基于 sindow 的 关机命令 shutdown s m

    2026年3月19日
    2
  • 今天 腾讯免费安装OpenClaw

    今天 腾讯免费安装OpenClaw

    2026年3月15日
    4
  • 解决WinHTTP Web Proxy Auto-Discovery Service无法启动问题

    解决WinHTTP Web Proxy Auto-Discovery Service无法启动问题需要启动该服务的起因是需要抓包,所以下载了charles,但无任何抓包信息,也没有错误提示,未查到原因。遂又下载了fiddler,此时启动会提示“FailedtoregisterFiddlersasthesystemproxy”,上网查原因是WinHTTPWebProxyAuto-DiscoveryService该服务没有启动,到服务中查询确实如此。解决方案(此为对我生效的解决方案,关联服务未启动等其他问题导致也是有可能的):win+Rregedit打开注册表,找到\HK

    2022年6月21日
    913
  • Python Pandas 实现SQl的count(*),count(distinct )

    Python Pandas 实现SQl的count(*),count(distinct )使用单个的 groupby 聚合使用 nunique 方法 data4 data groupby month agg merchant pd Series nunique

    2026年3月17日
    2
  • 红黑树与平衡二叉树的区别?

    红黑树与平衡二叉树的区别?红黑树的性质 1 节点是红色或黑色 2 根节点是黑色 3 每个叶子节点都是黑色的空节点 NIL 节点 4 每个红色节点的两个子节点都是黑色 从每个叶子到根的所有路径上不能有两个连续的红色节点 5 从任一节点到其每个叶子的所有路径都包含相同数目的黑色节点 这些约束强制了红黑树的关键性质 从根到叶子的最长的可能路径不多于最短的可能路径的两倍长 结果是这个树大致上是平衡的 因

    2026年3月26日
    3

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号