diff --git a/Cargo.toml b/Cargo.toml index 17003e86..39ea579c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ exclude = [ "doc/*", "docker/*", "proto/*", + "tools/*", "sdk-examples/*", "CHANGELOG.md", "Dockerfile", diff --git a/tools/linux-systemd-deploy.sh b/tools/linux-systemd-deploy.sh new file mode 100755 index 00000000..cec16ea1 --- /dev/null +++ b/tools/linux-systemd-deploy.sh @@ -0,0 +1,85 @@ +mkdir -p /opt/rnacos/ +cd /opt/rnacos/ +#download from github +curl -LO https://github.com/r-nacos/r-nacos/releases/download/v0.5.11/rnacos-x86_64-unknown-linux-musl.tar.gz + +#download from gitee +#curl -LO https://gitee.com/hqp/rnacos/releases/download/v0.5.11/rnacos-x86_64-unknown-linux-musl.tar.gz + +tar -xvf rnacos-x86_64-unknown-linux-musl.tar.gz + +mkdir -p /etc/rnacos/ +cat >/etc/rnacos/env.conf </lib/systemd/system/rnacos.service <