1
我正在嘗試使用salt-api,但無法連接到它。首先,我安裝在主鹽的API,然後添加以下配置到主文件:我不能使用salt-api
external_auth:
pam:
david:
- .*
rest_cherrypy:
port: 8080
debug: True
但是,當我試圖通過捲曲連接,它不工作:
curl -si localhost:8080/login -H "Accept: application/json" -d username='david' -d password='password' -d eauth='pam' > /tmp/cookies.txt
我得到了以下錯誤消息:
curl: (7) Failed to connect to localhost port 8080: Connection refused