tomcat启动报错cannot assign requested address
解决:
查看a@b:~/tomcat-server/conf$ sudo cat server.xml | more
发现defaultHost="localhost"
查看/etc/hosts,发现改动过
添加127.0.0.1 localhost后启动成功。