栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

linux 安装dapr

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

linux 安装dapr

 一、installing the Dapr CLI 参考:https://docs.dapr.io/getting-started/install-dapr-cli/

#离线安装:
https://github-releases.githubusercontent.com/192994336/674f3168-d27f-43f7-ae3b-7e367228e71c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211007%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211007T074639Z&X-Amz-Expires=300&X-Amz-Signature=0a8a1ae56947f582c00c68d91e9e92d43719bedf5f3dd953b5cb59b74e354aa6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=192994336&response-content-disposition=attachment%3B%20filename%3Ddapr_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream

#拷贝dapr_linux_amd64.tar.gz 到服务器:/application/
cd /application
tar -xzvf dapr_linux_amd64.tar.gz
mv dapr /usr/local/bin

#Verify the installation
dapr --version

 

 二、Initialize Dapr in your local environment

dapr init
#Verify containers are running
dapr --version
#Verify containers are running
docker ps #Make sure that instances with daprio/dapr, openzipkin/zipkin, and redis images are all running
#Verify components directory has been initialized
ls $HOME/.dapr

 三、Use the Dapr API

dapr run --app-id myapp --dapr-http-port 3500

curl -X POST -H "Content-Type: application/json" -d '[{ "key": "name", "value": "Bruce Wayne"}]' http://192.168.31.132:3500/v1.0/state/statestore
curl http://192.168.31.132:3500/v1.0/state/statestore/name

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/299916.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号