mac安装nacos

作者: Geroge1226 | 来源:发表于2021-08-26 16:27 被阅读0次

    1、说明

    nacos支持集群,支持单节点,这里记录mac单节点下nacos安装

    2、maca下安装

    (1)下载 nacos安装压缩包文件

    https://github.com/alibaba/nacos/releases
    

    (2)解压nacos压缩包,终端切换到nacos下的bin目录

    [lxx@lsyPro bin ]$ ll
    total 40
    -rwxr-xr-x@ 1 lxx  staff   954B  5 14  2020 shutdown.cmd
    -rwxr-xr-x@ 1 lxx  staff   951B  3 18 11:36 shutdown.sh
    -rwxr-xr-x@ 1 lxx  staff   3.3K  6 18 10:39 startup.cmd
    -rwxr-xr-x@ 1 lxx  staff   4.9K  7 27 14:18 startup.sh
    

    (3)终端输入启动 nacos:sh startup.sh -m standalone

    [lxx@lsyPro bin ]$ sh startup.sh -m standalone
    /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -Djava.ext.dirs=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/jre/lib/ext:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/ext  -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Dnacos.member.list= -Xloggc:/Users/lxx/Documents/software/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/Users/lxx/Documents/software/nacos/plugins/health,/Users/lxx/Documents/software/nacos/plugins/cmdb -Dnacos.home=/Users/lxx/Documents/software/nacos -jar /Users/lxx/Documents/software/nacos/target/nacos-server.jar  --spring.config.additional-location=file:/Users/lxx/Documents/software/nacos/conf/ --logging.config=/Users/lxx/Documents/software/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
    nacos is starting with standalone
    nacos is starting,you can check the /Users/lxx/Documents/software/nacos/logs/start.out
    

    (4) 浏览器输入:http://127.0.0.1:8848/nacos/ 进入nacos可视化界面


    (5)输入账密:初始化账密都是nacos

    3、nacos安装补充说明

    3.1 解压nacos目录说明
    [lxxx@lsyPro nacos ]$ ll
    
    - log           nacos生成日志说明
    - bin           nacos服务相关脚本目录,
    - conf          nacos的配置文件目录
    - target        nacos的启动依赖目录
    - data          nacos自带apache-derby数据库,data存放数据内容
    

    相关文章

      网友评论

        本文标题:mac安装nacos

        本文链接:https://www.haomeiwen.com/subject/hshuiltx.html