运行:打开服务器:打开服务:监听tcp:8086:绑定:启动influxdb时已在使用的地址

时间:2019-06-05 11:46:19

标签: macos influxdb

我正在设置Influx DB(InfluxDB Shell版本:v1.7.6)。我已经在配置文件中进行了更改。但是当我使用Command-

启动服务时
It gives me error that bind port 8086 is already in use & graphite service does not start


# Change this option to true to disable reporting.
 reporting-disabled = false
 hostname=""
 join=""


# Bind address to use for the RPC service for backup and restore.
  bind-address = ":8088"

###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###

这是元标记的配置     [元]

  dir = "/usr/local/var/influxdb/meta"

  # Automatically create a default retention policy when creating a database.
    retention-autocreate = true

  # If log messages are printed for the meta service
    logging-enabled = true

[[graphite]]
  # Determines whether the graphite endpoint is enabled.
   enabled = true
   database = "jmeter"
   retention-policy = ""
   bind-address = ":2003"
   protocol = "tcp"
   consistency-level = "one

Above is the my influxdb properties.I have restarted service after configuration changes.

I am setting up influx DB (InfluxDB shell version: v1.7.6).I have made changes in configuration file.But when I start service using command-

It gives me error that bind port 8086 is already in use & graphite service does not start


# Change this option to true to disable reporting.
 reporting-disabled = false
 hostname=""
 join=""


# Bind address to use for the RPC service for backup and restore.
  bind-address = ":8088"

###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###

[meta]
  # Where the metadata/raft database is stored
  dir = "/usr/local/var/influxdb/meta"

  # Automatically create a default retention policy when creating a database.
    retention-autocreate = true

  # If log messages are printed for the meta service
    logging-enabled = true

[[graphite]]
  # Determines whether the graphite endpoint is enabled.
   enabled = true
   database = "jmeter"
   retention-policy = ""
   bind-address = ":2003"
   protocol = "tcp"
   consistency-level = "one

Above is the my influxdb properties.I have restarted service after configuration changes.

不需要代码

2 个答案:

答案 0 :(得分:0)

这是因为另一个进程正在使用端口8086。您可以使用以下命令找到该进程:

netstat -a | grep 8086

如果您具有root权限:

lsof -i:8086

确定另一个进程ID并使用

杀死它
kill -9 <process id>

或使用其他端口配置流入。

答案 1 :(得分:0)

重启 influxdb 对我有帮助

sudo systemctl restart influxd.service
sudo systemctl restart influxdb.service