小编rak*_*eee的帖子

Docker Postgresql 错误提示:服务器必须由拥有数据目录 postgresql rhel 的用户启动

我有一个 docker compose 文件,我在其中使用共享卷启动 PostgreSQL。但我不断收到以下错误。

2018-10-11 14:57:01.757 GMT [81] LOG:  skipping missing configuration 
file "/postgresql/data/postgresql.auto.conf"
| 2018-10-11 14:57:01.768 GMT [81] FATAL:  data directory "/postgresql/data" has wrong ownership
| 2018-10-11 14:57:01.768 GMT [81] HINT:  The server must be started by the user that owns the data directory.
Run Code Online (Sandbox Code Playgroud)

我的 docker compose 文件如下

addb:
image : postgres
networks:
  - private
ports:
  - "5432:5432"
volumes:
  - /mnt/shared/app_data/db/postgres/data_db:/postgresql/data
depends_on:
  - sol-server
Run Code Online (Sandbox Code Playgroud)

我正在使用 RHEL 7.5 和 Docker 版本 18.06.1-ce,构建 e68fc7。任何想法如何解决上述问题。

postgresql docker rhel7

5
推荐指数
1
解决办法
265
查看次数

启动应用程序时 spring boot classnotfound org.springframework.boot.Bootstrapper

我刚刚开始使用 eureka 服务器启动一个 spring boot 项目,如https://dzone.com/articles/spring-boot-microservices-building-microservices-a中提到的,在运行项目时遇到异常并且应用程序停止。

java.lang.ClassNotFoundException: org.springframework.boot.Bootstrapper
Run Code Online (Sandbox Code Playgroud)

我正在使用 Gradle 和 springboot 2.3.5.RELEASE 版本。

有谁帮我解释一下为什么我会看到这个错误。

java spring-boot

4
推荐指数
1
解决办法
9824
查看次数

高图表滚动条不起作用

我想显示所有启用滚动条的类别,但它不起作用。我不知道我在哪里犯了错误。相应的小提琴是:http://jsfiddle.net/manraj/7racxxu0/3

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },

        xAxis: {
            categories: ['ghdg', 'kndfkjl', 'ytryr', 'Bananas', 'pop', 'errte', 'oi',         'Oranges1', 'Bananas1', 'Carrots1', 'Appls2', 'Pears2', 'wosflsj', 'ertet', 'yuyu', 'Ales', 'ioi', 'opl', 'bcvcx', 'Carots', 'Apes1', 'opop', 'Oranges1', 'yuiiui', 'Carrots1', 'errt', 'oioi', 'ioo', 'Bananas2', 'bfhjf', 'Apples', 'xxcc', '6546', 'Bananas', '646', 'tyuyf', 'rtr', 'rty', 'opuuui', 'fghf', 'tyuy', 'err', 'rewporij', 'xcvgff', 'ee', 'bvnvb', 'bnn', 'kjhfkdg', 'tytryt', '2121', 'Apples1', 'xvx', 'iyyuy', 'bnbn', 'yuyu', 'fgs', 'Pears2', 'orwuepr', 'ppwppw', 'Crots2', 'Apes', '545', 'nmvh', '855963', '96489', 'iuio', …
Run Code Online (Sandbox Code Playgroud)

javascript jquery highcharts

3
推荐指数
1
解决办法
5318
查看次数

无法从浏览器访问Docker tomcat

我已经启动了一个容器,其中一些端口打开,并尝试从浏览器访问Tomcat的Web界面,但它无法正常工作.

1)docker run -ti --rm --name server -p 3456:5678 tomcat:8.0 // not working with localhost:3456
2)docker run -ti --rm --name server -expose 8080 tomcat:8.0 //not working localhost:8080
3)docker inspect server // to see the ip:port and tried to access using it as well but no luck
Run Code Online (Sandbox Code Playgroud)

我正在使用带有docker instaled的CentOS7.

谢谢

tomcat docker

1
推荐指数
1
解决办法
2562
查看次数