我有一个奇怪的问题,以前从未发生过这种情况,但我的数据库在我工作的电脑上,当我一天结束时,电脑自动收费表,当这种情况发生时,我无法连接到数据库了。
我必须登录之前,它将允许连接再次。不管发生什么我都能让它起作用吗?我需要24/7的连接,这使得在家里编写代码变得非常困难。
我正在使用Windows Server 2012,我使用PHP进行连接,但是我已经做了测试,当计算机在夜间锁定时,到服务器的连接停止,当我白天进入并解锁它时,连接是可用的。我有所有的“主要”操作系统,Mac,Windows和Linux/Ubuntu,我也有能力在白天在移动电话上查看这个站点。一旦计算机锁定(就像用户不活动,只要
我得到了这样的信息:
Status change detected: stopped
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you n
我正在使用Windows 10和Visual 2016。我不能绑定到80端口。我可以绑定到所有其他端口。打印的错误是:“绑定IP地址0.0.0.0返回一个错误,端口80:无错误”
这是我的代码:
/* bind this socket to the server's Internet address */
if( bind(fd,(struct sockaddr *)server_addr,sizeof(struct sockaddr_in))<0 )
{
printf("Bind of IP address %s returned an error, port