简体   繁体   中英

cURL: (7) Failed to connect; Connection refused on Openstack Swift

I'm trying to set up a 'Swift All In One' system on a CentOS 7 VM but when I run the command:

curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass testing' http://127.0.0.1:8080/auth/v1.0 

I get the following error message:

curl: (7) Failed to connect to 127.0.0.1:8080; Connection refused

Any ideas on what is causing this? I have added port 8080 to my IP table

possible solution-1:
you should execute your command on the SAIO machine where your swift is running on. May be you are executing curl command on your host machine or somewhere else. make sure that you are on the correct terminal which is on SAIO machine.

possible solution-2:
may be your swift is not running on. you should use the following command: swift-init all restart

try these solutions, and inform me. so, May be, I can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM