完全跟着视频来的,为什么最后一步无法访问Nacos可视化管理界面?
a7a52aa11182cfbad5a31038bb8ee21.png

[root@localhost tmp]# docker pull nacos/nacos-server

Using default tag: latest

latest: Pulling from nacos/nacos-server

f18232174bc9: Pull complete 

36e74423919f: Pull complete 

b3d091ecd17c: Pull complete 

987c49fe82b9: Pull complete 

804dcc25d8ec: Pull complete 

7912532caf44: Pull complete 

2175492d5a85: Pull complete 

Digest: sha256:bf446baf86cf081e07fd36ec707acc81b5fca59da491b766928a68e11b03f4b4

Status: Downloaded newer image for nacos/nacos-server:latest

docker.io/nacos/nacos-server:latest

[root@localhost tmp]# mkdir -p /root/nacos/init.d /root/nacos/logs

[root@localhost tmp]# cd /root/

[root@localhost ~]# ll

total 8

-rw-------. 1 root root 2745 May  7 02:23 anaconda-ks.cfg

drwxr-xr-x. 2 root root    6 May  7 02:25 Desktop

drwxr-xr-x. 2 root root    6 May  7 02:25 Documents

drwxr-xr-x. 2 root root    6 May  7 02:25 Downloads

drwxr-xr-x. 2 root root    6 May  7 02:25 Music

drwxr-xr-x. 4 root root   32 May  7 22:29 nacos

-rw-------. 1 root root 2025 May  7 02:23 original-ks.cfg

drwxr-xr-x. 2 root root    6 May  7 02:25 Pictures

drwxr-xr-x. 2 root root    6 May  7 02:25 Public

drwxr-xr-x. 2 root root    6 May  7 02:25 Templates

drwxr-xr-x. 2 root root    6 May  7 02:25 Videos

[root@localhost ~]# ls

anaconda-ks.cfg  Documents  Music  original-ks.cfg  Public     Videos

Desktop          Downloads  nacos  Pictures         Templates

[root@localhost ~]# cd nacos/

[root@localhost nacos]# ls

init.d  logs

[root@localhost nacos]# cd init.d/

[root@localhost init.d]# ls

[root@localhost init.d]# vim  /root/nacos/init.d/custom.properties

[root@localhost init.d]# docker run -d -p 8848:8848 -p 9848:9848 -e MODE=standalone -e PREFER_HOST_MODE=hostname -v /root/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties -v /root/nacos/logs:/home/nacos/logs --restart always --name nacos nacos/nacos-server

28f593007bdd968987952a2370e92317f821c73b960e92ee589eaa264cde1271

[root@localhost init.d]# 


相关课程:JAVA 全系列>第二十阶段:租房网(Spring Cloud最新架构)>Livegoods房屋海选平台>服务器环境_安装Nacos

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637