Skip to content
No description or website provided.
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
conf
smarta-src @ 0d8190e
.gitignore
.gitmodules
README.md
copy-id
deploy
hosts.conf.example
ssh-copy-id
update

README.md

Smarta Deploy

批量部署Smarta程序

注: deploy 脚本需要在smarta-deploy目录下执行

使用

下载Smarta

#下载最新版64位或32位Smarta,并解压到./smarta

配置节点和主机

hosts.conf.example 复制到 hosts.conf,按照示例配置节点,apikey以及对应主机

demo.web        8a1bcgtr    nodebus@8.8.8.8
demo.db         wr442cw2    nodebus@4.4.4.4

自定义单个主机的smarta配置文件

如果需要自定义单个主机的smarta配置文件,在./conf目录添加${name}.conf即可,例如:demo.web.conf 如无需自定义,默认会使用 ./conf/smarta.conf

部署程序

#如果没有配置authorized_keys,每个主机会需要输入三次密码,一次停止程序,一次上传文件,一次启动程序
./deploy
#如需单个部署,增加name参数即可,例如
./deploy demo.web
Something went wrong with that request. Please try again.