我想访问我的本地主机和 phpmyadmin。我已经安装了 WAMPServer 来做到这一点。
WAMPServer 已安装,打开时变为绿色。
这需要一些时间,我必须转到 apache -> 服务 -> 安装服务才能从橙色变为绿色,但随后它就可以工作了。
但直到现在我无法访问我的本地主机。当访问http://localhost/或http://localhost/phpmyadmin或什至在 WAMPServer 菜单上按 localhost 时,我得到的只是“此网页不可用,ERR_CONNECTION_TIMED_OUT”。
我已经为此工作了几天来修复它,但没有用。我知道很多人在这里遇到了同样的问题并提出了很多问题,但没有编写的解决方案确实有帮助。我确实有使用我的端口 80 的 iis 并且我将端口设为空。我让Skype使用它并修复了它。
现在,当我在 wamp 服务器上测试端口 80 时,它给了我 Your port 80 is not actually used..
我的 wamp 图标是绿色的,我的互联网已打开,我的防火墙和防病毒软件已关闭。我正在使用 Windows 7,wamp 服务器 2.5 64。
这是我的 http.confd 文件:
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# …Run Code Online (Sandbox Code Playgroud) 通过 xampp 安装 Prestashop 时出现问题,在 Mac 中我首先安装了 xampp,然后从控制面板激活了所有内容。然后我下载了最新版本的 Prestashop。我在 htdcos 中复制了 XAMPP 中的文件夹。路径是:xampp / htdocs / prestashop / install。但是我准备安装 prestashop 时出现错误。错误是:PHP 致命错误:在第 168 行的 /Applications/XAMPP/xamppfiles/htdocs/prestashop/classes/PrestaShopAutoload.php 中找不到“工具”类知道如何解决吗?:)
以下是附有 error=define('_PS_MODE_DEV_', true); 的截图:和define('_PS_MODE_DEV_', false);

我在我的 localhost wamp 服务器上运行了 wordpress,然后我决定重新安装它,因为它变慢了,现在重新安装后,我不断收到这个错误:建立数据库连接时出错。
我终于 [煞费苦心] 使用 IIS7 设置了一个本地托管站点。
我现在可以通过主机上的http://localhost/mediaorganizer/或http://127.0.0.1/mediaorganizer/连接到它。
但是,当我尝试在其自身或网络上的另一台机器上使用主机的 IP 地址时,出现以下错误:
拒绝连接错误
我在没有运气的情况下上下搜索。我已经为入站设置了防火墙规则,它们设置为端口 80 上的 TCP,使用万维网服务(HTTP 流量输入)。我在 IIS 中将绑定设置为 http、所有未分配、80。我还确保在以管理员身份运行 IIS 管理器时启动站点。但一切都没有运气。
我觉得我可能错过了一个最终的过程来达到我想要的效果。我在这个项目上度过了充实的一天,希望得到任何帮助。
最近的日志
软件:微软 HTTP API 2.0
版本:1.0
日期:2016-08-28 02:33:55
字段:日期时间 c-ip c-port s-ip s-port cs-version cs-method cs-uri streamid sc-status s-siteid s-reason s-queuename
2016-08-28 02:33:55 127.0.0.1 50211 127.0.0.1 80 - - - - - - Timer_ConnectionIdle - 2016-08-28 02:36:29 127.0.0.1 1.0106.1 50736 / HTTP 400 - 主机名 - 2016-08-28 02:37:30 127.0.0.1 50331 127.0.0.1 80 - …
当我在Google Chrome上的 localhost 上启动我的laravel 5项目时,我陷入了困境。我正在使用这个 repo 的引导管理面板:https : //github.com/start-laravel/sb-admin-laravel-5
我安装了所有需求,比如npm、bower和gulp。我清除了缓存然后我运行php artisan serve
当我导航到localhost:8000页面加载正常时,但不会加载 style.css 和 frontend.js。
我收到以下错误:
GET http://localhost:8000/assets/stylesheets/styles.css net::ERR_INVALID_HTTP_RESPONSE
GET http://localhost:8000/assets/scripts/frontend.js net::ERR_INVALID_HTTP_RESPONSE
GET http://localhost:8000/favicon.ico net::ERR_INVALID_HTTP_RESPONSE
Run Code Online (Sandbox Code Playgroud)
我尝试了以下几件事:
我的代码
<link rel="stylesheet" href="{{ asset("assets/stylesheets/styles.css") }}" />
<script src="{{ asset("assets/scripts/frontend.js") }}" type="text/javascript"></script>
Run Code Online (Sandbox Code Playgroud)
但
当我使用 XAMPP 运行我的项目时(网址是:http://localhost/website-monitor/public /),一切正常.. :/ 唯一的事情是,我运行该站点只是为了访问路径而不是使用工匠..
如果有人有解决方案,请现在告诉我,我已经在这个烦人的错误上浪费了一整天
我正在测试 spring-boot 应用程序并想检查简单的获取请求。问题是,如果我用我们的开发服务器替换 localhost 一切正常。但不是本地主机。
这是父测试类:
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MyServiceStarter.class)
public abstract class AbstractModulIntegrationTest { ... }
Run Code Online (Sandbox Code Playgroud)
问题:
@Test
public void testGetRequest() {
CredentialsProvider provider = new BasicCredentialsProvider();
UsernamePasswordCredentials credentials
= new UsernamePasswordCredentials("user", "pass");
provider.setCredentials(AuthScope.ANY, credentials);
HttpClient httpClient = HttpClientBuilder.create()
.setDefaultCredentialsProvider(provider)
.build();
HttpGet request = new HttpGet("http://localhost:9000/abc/v1/users/001");
HttpResponse response = null;
try {
response = httpClient.execute(request); //HERE IT FAILS
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("RETURN CODE:" + response.getStatusLine().getStatusCode());
}
Run Code Online (Sandbox Code Playgroud)
跟踪:
org.apache.http.conn.HttpHostConnectException: Connect to localhost:9000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection …Run Code Online (Sandbox Code Playgroud) 我正在关注 onebitcode 教程,但我无法实现这个 gem,我更新了数据库,我上传了种子,我重新启动了服务器,但没有任何效果,如果我在 GemFile 中评论 gem,它会再次工作,但没有 cancancan ...错误在浏览器中弹出,但我不知道如何解决它。
#Error
Run Code Online (Sandbox Code Playgroud)
RailsAdmin::MainController#dashboard 中的 CanCan::AccessDenied
您无权访问此页面。
提取的源代码(围绕第 217 行):
if cannot?(action, subject, *args)
message ||= unauthorized_message(action, subject)
raise AccessDenied.new(message, action, subject)
end
subject
end
#Ability.rb
class Ability
include CanCan::Ability
def initialize(user)
end
end
#rails_admin.rb
RailsAdmin.config do |config|
## == Devise ==
config.authenticate_with do
warden.authenticate! scope: :user
end
config.current_user_method(&:current_user)
##== Cancancan ==
config.authorize_with :cancan
config.actions do
dashboard # mandatory
index # mandatory
new
export
bulk_delete
show
edit
delete
show_in_app
end
end
#gemfile
source …Run Code Online (Sandbox Code Playgroud) 如果有一张网卡,我们可以通过127.0.0.1:port访问该网卡对应的端口。但是如果有两块网卡,监控同一个端口(比如6000),我访问127.0.0.1:6000时会访问哪个网卡?如果你认为它们是独立的,它们之间是什么关系?我想它们之间肯定有某种关系,因为“如果有一张网卡,我们可以通过127.0.0.1:port访问这张网卡对应的端口。”。
我将 MAMP 用于 MAC,并且我在本地有一个项目。它运作良好。我决定更新这个项目并在 localhost 显示 500 错误后从我的 Web 服务器下载。
但是,当我输入另一个本地主机项目时,它可以工作。我使用 Codeigniter3 框架。问题出在哪里?
这是我第一次使用 Node.js,我想在 localhost 上运行它。我已经安装了 Node.js,但我不知道如何运行 localhost。
你们能帮帮我吗?下面是我的 server.js 代码。
setting_detail = {};
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
if (process.env.NODE_ENV == 'production') {
var cluster = require('cluster');
if (cluster.isMaster) {
// Count the machine's CPUs
var cpuCount = require('os').cpus().length;
// Create a worker for each CPU
for (var i = 0; i < cpuCount; i += 1) {
cluster.fork();
}
// Code to run if we're in a worker process
} else {
init();
}
} else {
init();
}
function …Run Code Online (Sandbox Code Playgroud) localhost ×10
wampserver ×2
apache ×1
cancancan ×1
codeigniter ×1
iis ×1
iis-7 ×1
java ×1
javascript ×1
junit ×1
laravel-5 ×1
mamp ×1
node.js ×1
php ×1
phpmyadmin ×1
prestashop ×1
ruby ×1
server ×1
spring-boot ×1
testing ×1
wamp ×1
wordpress ×1
xampp ×1