当前位置:论坛首页 > Linux面板 > 求助

mongodb运行报错

发表在 Linux面板2023-1-7 23:17 [复制链接] 0 2425

本帖最后由 VantHoff 于 2023-1-7 23:27 编辑
  1. REQUEST_DATE: 2023-01-07 23:14:02
  2. PAN_VERSION: 7.9.7
  3.   OS_VERSION: Debian GNU/Linux 11 aarch64(Py3.7.8)
  4. REMOTE_ADDR: 192.168.123.74
  5. REQUEST_URI: GET /plugin%3Faction%3Da%26amp%3Bname%3Dmongodb%26amp%3Bs%3Dget_service_status
  6. REQUEST_FORM: {}
  7.   USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
  8. Traceback (most recent call last):
  9.   File "/www/server/panel/plugin/mongodb/mongodb_main.py", line 26, in __init__
  10.     self.__client = pymongo.MongoClient(host='127.0.0.1', port=int(self.__config['port']),)
  11. KeyError: 'port'

  12. The above exception was the direct cause of the following exception:

  13. Traceback (most recent call last):
  14.   File "class/panelPlugin.py", line 3108, in a
  15.     return p.exec_fun(get)
  16.   File "class/pluginAuth.py", line 62, in exec_fun
  17.     res = PluginLoader.plugin_run(self.__plugin_name,def_name,get_args)
  18. SystemError:  returned a result with an error set
复制代码
如果使用以下命令启动:
  1. /etc/init.d/mongodb start
复制代码
则出现:
  1. No installation of mognodb.
复制代码
使用命令行查询安装情况:
  1. root@localhost:/home/vanthoff# ls /etc/init.d
复制代码
是有mongodb的:
  1. root@localhost:/home/vanthoff# ls /etc/init.d
  2. bt    dbus        kmod     networking  procps   sendmail  sudo  ufw
  3. cron  hwclock.sh  mongodb  oneavd      rsyslog  ssh       udev  x11-common
复制代码



使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表