下载
- 通过nacos官网https://nacos.io/zh-cn/index.html
前往https://github.com/alibaba/nacos/releases/tag/1.3.2下载nacos最新linux版nacos-server-1.3.2.tar.gz - copy安装文件到linux目录/opt/software(可自定义)
安装
解压安装文件到/opt/module
[root@origin software]# tar -zxvf nacos-server-1.3.2.tar.gz -C /opt/module/
nacos/LICENSE
nacos/NOTICE
nacos/target/nacos-server.jar
nacos/conf/
nacos/conf/schema.sql
nacos/conf/nacos-mysql.sql
nacos/conf/application.properties.example
nacos/conf/nacos-logback.xml
nacos/conf/cluster.conf.example
nacos/conf/application.properties
nacos/bin/startup.sh
nacos/bin/startup.cmd
nacos/bin/shutdown.sh
nacos/bin/shutdown.cmd
切换到安装目录;
启动nacos;
[root@origin software]# cd /opt/module/
[root@origin module]# cd nacos/bin
[root@origin bin]# sh startup.sh -m standalone
/opt/module/jdk1.8.0_251/bin/java -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Djava.ext.dirs=/opt/module/jdk1.8.0_251/jre/lib/ext:/opt/module/jdk1.8.0_251/lib/ext -Xloggc:/opt/module/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/opt/module/nacos/plugins/health,/opt/module/nacos/plugins/cmdb -Dnacos.home=/opt/module/nacos -jar /opt/module/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/opt/module/nacos/conf/ --logging.config=/opt/module/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos is starting with standalone
nacos is starting,you can check the /opt/module/nacos/logs/start.out
访问:192.168.202.31:8848/nacos
(替换为自己虚拟机的ip)
输入默认账号/密码:nacos/nacos;
登录成功