0%

elasticsearch自动关闭问题

内存不够,需要改配置并重启服务器

vim /etc/sysctl.conf

//在最后一行上加上

vm.max_map_count=262144

postgresql问题

fixing permissions on existing directory /var/lib/postgresql/data … ok
creating subdirectories … ok
selecting default max_connections … 100
selecting default shared_buffers … 128MB
selecting dynamic shared memory implementation … posix
creating configuration files … ok
LOG: could not link file “pg_xlog/xlogtemp.22” to “pg_xlog/000000010000000000000001”: Operation not permitted
FATAL: could not open file “pg_xlog/000000010000000000000001”: No such file or directory
child process exited with exit code 1
initdb: removing contents of data directory “/var/lib/postgresql/data”
creating template1 database in /var/lib/postgresql/data/base/1 … The files belonging to this database system will be owned by user “postgres”.
This user must also own the server process.

报错not permitted

需要在docker新建一个持久化volume

创建Volume虚拟磁盘:docker volume create –name <名称>

删除Volume虚拟磁盘:docker volume rm <名称>

  1. docker volume create *–name postgresql
  2. docker run –name mongodb -v postgresql:/data/db -p 27017:27017 -d postgresql