Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails精简服务器正在运行,但可以';t连接_Ruby On Rails_Ruby On Rails 4_Thin - Fatal编程技术网

Ruby on rails Rails精简服务器正在运行,但可以';t连接

Ruby on rails Rails精简服务器正在运行,但可以';t连接,ruby-on-rails,ruby-on-rails-4,thin,Ruby On Rails,Ruby On Rails 4,Thin,当我启动服务器时,我得到以下输出: 但我无法连接到服务器 您需要在url末尾添加端口号3000,例如: localhost:3000 or 127.0.0.1:3000 你在用什么url?url是localhost:3000我已经在localhost:3000上了。我问了这个问题,我的回答提供了更多细节:127.0.0.1:3000现在起作用了。但是localhost:3000不起作用。我已经使用localhost:3000多年了。你知道为什么它不再工作了吗?看起来你的dns解析没

当我启动服务器时,我得到以下输出:

但我无法连接到服务器


您需要在url末尾添加端口号3000,例如:

 localhost:3000

 or

 127.0.0.1:3000

你在用什么url?url是localhost:3000我已经在localhost:3000上了。我问了这个问题,我的回答提供了更多细节:127.0.0.1:3000现在起作用了。但是localhost:3000不起作用。我已经使用localhost:3000多年了。你知道为什么它不再工作了吗?看起来你的dns解析没有正常工作,你可以通过将这一行添加到/etc/hosts文件中来解决这个问题:127.0.0.1 localhost