知者何南 发表于 2024-9-4 15:31:00

program “postgres“ is needed by initdb but was not found in the same

   程序员的公众号:源1024,获取更多资料,无加密无套路!

近来整理了一份大厂口试资料《史上最全大厂口试题》,Springboot、微服务、算法、数据布局、Zookeeper、Mybatis、Dubbo、linux、Kafka、Elasticsearch、数据库等等
获取方式: 关注公众号并回复 666 领取,更多内容持续奉上

实验以下命令报错
docker run --name postgres -e POSTGRES_PASSWORD=1234 -p 5432:5432 -v /usr/postgres/data:/var/lib/postgresql/data -d postgres 但是换个镜像就没题目,应该是镜像跟系统不匹配吧,建议换镜像吧
docker run --name postgres -e POSTGRES_PASSWORD=1234 -p 5432:5432 -v /usr/postgres/data:/var/lib/postgresql/data -d postgres:bullseye docker pull postgres:bullseye
https://i-blog.csdnimg.cn/blog_migrate/74ad6d4e72e7e21e6f4a0fbdbcf4d140.png
检察日志
https://i-blog.csdnimg.cn/blog_migrate/591d3c5d73ee5370fdb401d03813a105.png
毗连测试
https://i-blog.csdnimg.cn/blog_migrate/44bc6faeed647a573bfc98c1f8ce7106.png

 系列文章索引

MyBatis的插件能在哪些地方进行拦截?
相识MyBatis的缓存机制吗
口试官:谈谈对volatile的理解
Spring中用到了哪些设计模式
口试官:说一下SQL的实验过程
线程池的工作原理
 https://i-blog.csdnimg.cn/blog_migrate/e3caed5b42156a7374c660fe72f081f3.png

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: program “postgres“ is needed by initdb but was not found in the same