官网
安装准备
64 bit OS,支持 Linux/Unix/Mac/Windows,推荐选用 Linux/Unix/Mac。
64 bit JDK 1.8+;下载 & 配置。
Maven 3.2.x+;下载 & 配置。
nacos之mac系统安装
https://nacos.io/zh-cn/docs/quick-start.html
下载地址
最新版本
https://github.com/alibaba/nacos/releases/tag/1.3.2
启动
localhost:bin gaoxinfu$ pwd
/Users/gaoxinfu/using/nacos/bin
localhost:bin gaoxinfu$
localhost:bin gaoxinfu$ ls -la
total 40
drwxr-xr-x@ 6 gaoxinfu staff 192 8 4 19:26 .
drwxr-xr-x@ 8 gaoxinfu staff 256 10 19 13:59 ..
-rwxr-xr-x@ 1 gaoxinfu staff 954 5 14 10:03 shutdown.cmd
-rwxr-xr-x@ 1 gaoxinfu staff 949 7 27 19:43 shutdown.sh
-rwxr-xr-x@ 1 gaoxinfu staff 3440 8 4 19:25 startup.cmd
-rwxr-xr-x@ 1 gaoxinfu staff 5026 8 4 10:58 startup.sh
localhost:bin gaoxinfu$ sh startup.sh -m standalone
/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Djava.ext.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/ext -Xloggc:/Users/gaoxinfu/using/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/Users/gaoxinfu/using/nacos/plugins/health,/Users/gaoxinfu/using/nacos/plugins/cmdb -Dnacos.home=/Users/gaoxinfu/using/nacos -jar /Users/gaoxinfu/using/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/Users/gaoxinfu/using/nacos/conf/ --logging.config=/Users/gaoxinfu/using/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos is starting with standalone
nacos is starting,you can check the /Users/gaoxinfu/using/nacos/logs/start.out
localhost:bin gaoxinfu$
localhost:bin gaoxinfu$
localhost:bin gaoxinfu$
localhost:bin gaoxinfu$ ls -la
total 48
drwxr-xr-x@ 9 gaoxinfu staff 288 10 19 14:02 .
drwxr-xr-x@ 10 gaoxinfu staff 320 10 19 14:02 ..
-rw-r--r-- 1 gaoxinfu staff 734 10 19 14:02 derby.log
drwxr-xr-x 3 gaoxinfu staff 96 10 19 14:02 logs
-rwxr-xr-x@ 1 gaoxinfu staff 954 5 14 10:03 shutdown.cmd
-rwxr-xr-x@ 1 gaoxinfu staff 949 7 27 19:43 shutdown.sh
-rwxr-xr-x@ 1 gaoxinfu staff 3440 8 4 19:25 startup.cmd
-rwxr-xr-x@ 1 gaoxinfu staff 5026 8 4 10:58 startup.sh
drwxr-xr-x 3 gaoxinfu staff 96 10 19 14:02 work
localhost:bin gaoxinfu$ pwd
/Users/gaoxinfu/using/nacos/bin
localhost:bin gaoxinfu$
页面验证
默认端口8848
http://127.0.0.1:8848/nacos
停止
localhost:bin gaoxinfu$ sh shutdown.sh
The nacosServer(23931) is running...