当前位置:网站首页>docker install postgresql database
docker install postgresql database
2022-08-05 21:20:00 【weixin_44953227】
Operation steps
##1. Pull the postgres imagedocker pull postgres:10.15##2. Start a docker container instance with the database name kong-database, do not use the postgres default password, set a high-strength password according to the actual docker run -d --name kong-database \--network=kong-net \-p 5432:5432 \-e "POSTGRES_USER=postgres" \-e "POSTGRES_DB=postgres" \-e "POSTGRES_PASSWORD=postgres" \postgres: 10.15##3. Enter the container named kong-databasedocker exec -it kong-database bash##4. Log in to the postgres databasepsql -h localhost -U postgres -p 5432 -W##5. Enter the database password postgres, and enter it according to the actual database passwordpostgres##6, create kong database, account and passwordcreate user kong with password 'kong';##Don't use kong defaultPassword, set a high-strength password according to the actual settingcreate database kong owner kong;##7. Exit the database\q##8. Exit the kong-database containerexit##9, Firewall open portsfirewall-cmd --zone=public --add-port=5432/tcp --permanent##10. Reloadfirewall-cmd --reload边栏推荐
猜你喜欢
随机推荐
mpls comprehensive experiment
【opencv图像处理】-- 8. 特征点检测:Harris,shi-tomasi,SIFT角点检测,关键点和描述子
PID Control Theory
mpls综合实验
win10激活(二)
Openstack 虚拟机云盘扩容
Introducing Inheritance Abstract Classes
labelimg安装教程
What is MySQL table partitioning?
[KITTI] ros Error transforming odometry ‘Odometry‘ from frame ‘/map‘ to frame ‘map‘
LightningChart .NET v10.3.2
面试字节跳动—真实面试题分享
据称AMD Ryzen 9 7900X'Zen 4'CPU将提供比Zen 3多50%的缓存带宽
【KITTI】undefined reference to“YAML::detail::node_data::convert_to_map”解决办法
Chery Arrizo 8 will be officially launched on September 26, and the product lineup will be expanded
SynthText流程解读 - 不看代码不知道的那些事
At this stage, how do you grasp the opportunities in the metaverse NFG industry?
激光跟踪传感器的工作原理
selenium测试浏览器指纹
【FreeBSD】【panabit】ip日常









