完全跟着视频来的,为什么最后一步无法访问Nacos可视化管理界面?
[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]#