swift@vincent-virtual-machine /etc/swift $ sudo swift-init main restart
Signal proxy-server pid: signal:
No proxy-server running
Signal container-server pid: signal:
Signal container-server pid: signal:
Signal container-server pid: signal:
Signal container-server pid: signal:
Signal account-server pid: signal:
Signal account-server pid: signal:
Signal account-server pid: signal:
Signal account-server pid: signal:
Signal object-server pid: signal:
Signal object-server pid: signal:
Signal object-server pid: signal:
Signal object-server pid: signal:
container-server () appears to have stopped
container-server () appears to have stopped
container-server () appears to have stopped
container-server () appears to have stopped
account-server () appears to have stopped
account-server () appears to have stopped
account-server () appears to have stopped
object-server () appears to have stopped
object-server () appears to have stopped
account-server () appears to have stopped
object-server () appears to have stopped
object-server () appears to have stopped
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-server...(/etc/swift/container-server/.conf)
Starting container-server...(/etc/swift/container-server/.conf)
Starting container-server...(/etc/swift/container-server/.conf)
Starting container-server...(/etc/swift/container-server/.conf)
Starting account-server...(/etc/swift/account-server/.conf)
Starting account-server...(/etc/swift/account-server/.conf)
Starting account-server...(/etc/swift/account-server/.conf)
Starting account-server...(/etc/swift/account-server/.conf)
Starting object-server...(/etc/swift/object-server/.conf)
Starting object-server...(/etc/swift/object-server/.conf)
Starting object-server...(/etc/swift/object-server/.conf)
Starting object-server...(/etc/swift/object-server/.conf)
Traceback (most recent call last):
File "/usr/local/bin/swift-proxy-server", line , in <module>
execfile(__file__)
File "/home/swift/swift/bin/swift-proxy-server", line , in <module>
sys.exit(run_wsgi(conf_file, 'proxy-server', **options))
File "/home/swift/swift/swift/common/wsgi.py", line , in run_wsgi
error_msg = strategy.bind_ports()
File "/home/swift/swift/swift/common/wsgi.py", line , in bind_ports
self.sock = get_socket(self.conf)
File "/home/swift/swift/swift/common/wsgi.py", line , in get_socket
bind_addr[], bind_addr[], bind_timeout))
Exception: Could not bind to 0.0.0.0: after trying for seconds

这种情况很常见,就是端口占用的问题。解决办法:


swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3251/python     
swift@vincent-virtual-machine /etc/swift $ ps -wlp 3251
F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 S  1001   3251      1  1  80   0 - 22488 poll_s ?        00:01:28 swift-proxy-ser
swift@vincent-virtual-machine /etc/swift $ sudo kill -9 3251
swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3256/python     
swift@vincent-virtual-machine /etc/swift $ ps -wlp 3256
F S   UID    PID   PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
1 S  1001   3256      1  0  80   0 - 22950 poll_s ?        00:00:00 swift-proxy-ser
swift@vincent-virtual-machine /etc/swift $ sudo kill -9 3256
swift@vincent-virtual-machine /etc/swift $ sudo netstat -ltnp | grep 8080

Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds的更多相关文章

  1. nest exception is java.sql.SQLException:ORA-01476:除数为0

    1.错误描述 nest exception is java.sql.SQLException:ORA-01476:除数为0 2.错误原因 3.解决办法

  2. ASP.Net MVC3安全升级导致程序集从3.0.0.0变为3.0.0.1

    开发环境一般引用的是本机 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies下的System.Web.Mvc.dll,当 ...

  3. 出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43

    严重: Exception starting filter struts2 Unable to load configuration. - action - file:/E:/Java/Tomcat7 ...

  4. WARN TaskSetManager: Lost task 0.0 in stage 0.0 (TID 0, worker1): java.lang.ClassNotFoundException: com.spark.firstApp.HelloSpark$$anonfun$2

    进行如下设置,解决报错信息. val conf = new SparkConf().setAppName("helloSpark").setMaster("spark:/ ...

  5. ip地址0.0.0.0与127.0.0.1的区别(转载)

    原文链接:http://blog.csdn.net/ttx_laughing/article/details/58586907 最近在项目开发中发现一个奇怪的问题,当服务器与客户端在同一台机器上时,用 ...

  6. 本机ip、127.0.0.1和0.0.0.0区别及内环流量

    本机ip.127.0.0.1和0.0.0.0区别及内环流量 所谓内环流量 简单的说是指 计算机内部,程序间通讯产生的流量,或者叫 本地流量,对应的是来自网络的流量. 比如,你安装了卡巴斯基,avast ...

  7. 基于【CentOS-7+ Ambari 2.7.0 + HDP 3.0】搭建HAWQ数据仓库01 —— 准备环境,搭建本地仓库,安装ambari

    一.集群软硬件环境准备: 操作系统:  centos 7 x86_64.1804 Ambari版本:2.7.0 HDP版本:3.0.0 HAWQ版本:2.3.05台PC作为工作站: ep-bd01 e ...

  8. C++:vector中的v.at(0)和v[0]的区别

    设v是一个vector的对象, 如果v是非空的,则v.at(0)和v[0]是没有区别的,都是取数组中第一个值: 如果v是空的,则v.at(0)会抛出异常(exception std::out_of_r ...

  9. 本机IP、127.0.0.1和0.0.0.0的区别

    本机ip.127.0.0.1和0.0.0.0区别   网络java IP地址的记法: IP地址由四个字节构成,为了方便阅读和书写,每个字节用0-255的数字表示,字节之间用’.'分割,如: 10.10 ...

随机推荐

  1. SQLite -创建数据库

    SQLite -创建数据库 SQLite sqlite3命令用于创建新的SQLite数据库.你不需要有任何特权来创建一个数据库. 语法: sqlite3命令的基本语法如下: $sqlite3 Data ...

  2. Oracle数据库升级前必要的准备工作

    Oracle数据库升级向来是一门纷繁复杂的工程,DBA需要为产品数据库的升级耗费大量时间精力在准备工作上:因为其升级复杂度高,所以即便做了较为充分的准备仍可能在升级过程中遇到意想不到的问题,为了更高效 ...

  3. Python3简明教程(五)—— 流程控制之循环

    有些时候我们需要多次执行相同的任务,我们使用一个计数器来检查代码需要执行的次数.这个技术被称为循环. while循环 while语句的语法如下: while condition: statement1 ...

  4. vscode F12 不能用,原来是快捷键冲突了。

    vscode F12 不能用,原来是快捷键冲突了.

  5. activitmq+keepalived+nfs 非zk的高可用集群构建

    nfs 192.168.10.32 maast 192.168.10.4 savel 192.168.10.31 应对这个需求既要高可用又要消息延迟,只能使用变态方式实现 nfs部署 #yum ins ...

  6. HashMap和HashTable的理解与区别

    Hashtable是java一开始发布时就提供的键值映射的数据结构,而HashMap产生于JDK1.2.虽然Hashtable比HashMap出现的早一些,但是现在Hashtable基本上已经被弃用了 ...

  7. C++知识点总结(纯C++!!)

    1.重载函数是否能够通过函数返回值的类型不同来区分? 不可以.因为在C++编程中,函数的返回值可以忽略(不使用其返回值),程序中调用此时函数名相同和参数相同的两个函数对编译器和程序员来说是没有办法区分 ...

  8. 如何学好C++语言(转)

    不久前发现陈皓的blog -- 酷壳,闲暇之余看看,学到不少东西,感觉作为一个程序员自己才刚开始也还有很长的路需要去走.真后悔本科到研究生的6年间看书不够,那只有从现在起不断的学习.最近有李开复老师得 ...

  9. Java:清空文件内容

    文章来源:https://www.cnblogs.com/hello-tl/p/9139432.html import java.io.*; public class FileBasicOperati ...

  10. Django 多个字段关联同一外键

    # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community b ...