localhost

Failed to connect to mailserver at “localhost” port 25

风格不统一 提交于 2019-12-23 17:35:52
问题 I have a little problem. When I click send on my contact form I get the following warning: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() I use 64bit Win7, but I have no idea what should I set up to make this work. 回答1: In your php.ini file you can configure which mailserver to use: [mail function] SMTP = mymailserver.example.com Alternatively you can install a local mailserver as

Kafka 单机部署

元气小坏坏 提交于 2019-12-23 17:30:46
Kafka 单机部署区分集成Zookeeper 部署和Zookeeper + Kafka 部署俩总方式,如果是单机部署Kafka,集成Zookeeper 最简单,也可以选择Zookeeper + Kafka 这种模式,但是如果为Kafka集群的话,则必须需要部署 Zookeeper 集群。 一. 获取解压 1. 下载 wget http://mirror.bit.edu.cn/apache/kafka/1.1.0/kafka_2.12-1.1.0.tgz 2. 解压kafka tar -zxvf kafka_2.11-0.10.1.1.tgz 二. 配置修改 1. 集成Zookeeper 配置修改方式 1.0 配置profile vi /etc/profile export KAFKA_HOME=/home/.../kafka_2.11-0.10.1.1 export PATH=$PATH:$KAFKA_HOME/bin source /etc/profile #配置生效 1.1 配置zookeeper.properties vi conf/zookeeper.properties dataDir=**** #根据自己情况设定 ckuebtPort=2291 1.2 配置server.properties vi server.properties log.dirs = ***

Why is XDebug ignoring breakpoints from NetBeans 6.8?

我只是一个虾纸丫 提交于 2019-12-23 16:49:11
问题 I am running PHP 5.3.2, Apache 2.2.14 and xdebug 2.2.0rc1 on my Ubuntu 10.04 laptop, and I am trying to set up debugging on localhost in Netbeans 6.8. My problem is that breakpoints I set in Netbeans are being ignored. Otherwise it it seems to work correctly. For example, I get pretty var_dumps, xdebug traces, xdebug remote logs and I can also tick the box so that it breaks on the first line of the PHP script. Based on other websites and SO questions (e.g. SO1, SO2, SO3) I've checked all of

how to access a localhost website from android device

蓝咒 提交于 2019-12-23 16:38:02
问题 I have an ASP.net Web API in my laptop with this address : localhost:99949 I add this to IIS Express that I can access my web Api from another computer in same lan network , and it's going this: Nimis:80 I can access to my web api from other PCs , but when I try to access this with my android device it show me "Web page not available" error. I turn off all my firewalls. what should I do to fix it ? 回答1: You need to add an inbound rule in the firewall for port 80 (or whatever port you used for

Customizing the cassini webserver

孤人 提交于 2019-12-23 16:24:41
问题 Currently the local webserver exectutes at http://localhost:51377 Is there any option of customizing the web server in order executing under http://192.168.1.2:51377 (where 192.168.1.2 is my static intranet ip address) 回答1: Cassini will only serve local requests. If you want a lightweight webserver you may want to take a look at UltiDev 回答2: I just released the CassiniDev 3.5.1/4.0.1 beta with a simple test fixture example if you are interested. Supports arbitrary IP and Host name Cassini for

No Access-Control-Allow-Origin error in Meteor app

社会主义新天地 提交于 2019-12-23 15:52:22
问题 I added CORS extension to chrome. When called ajax from localhost I got response in the form of XML. If I disabled CORS extension I got the following error. I referred so many questions in this community. But I cant't resolve my problem. It may duplicate but I'm asking this question for help with hope. XMLHttpRequest cannot load https://buzz.machaao.com/feed. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested

Nginx

匆匆过客 提交于 2019-12-23 15:39:35
前言 Nginx是一个高性能的反向代理服务器,可以将流量均衡分配到后端服务器上。 安装和下载 下载地址是http://nginx.org/en/download.html,因为是在windows平台上测试的,所以这里要下载 nginx/Windows-1.14.2 的包,下载后解压,运行cmd,定位到Nginx的路径下,需要执行以下命令 cd C:\Users\czl\Desktop\nginx-1.14.2   启动Nginx start nginx 关闭Nginx nginx -s quit 修改配置后,不用重启直接加载修改后的配置 nginx -s reload   在启动后,浏览器输入localhost,如果成功会出现以下网页 负载均衡 首先,我在本机上启动了两个Tomcat服务器,访问路径分别为localhost:8080,localhost:8081。 接下来,需要修改Nginx的配置,在conf\nginx.conf,修改为以下内容 worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #keepalive_timeout 0; keepalive

Testing website on localhost server for iphone and ipad

我是研究僧i 提交于 2019-12-23 13:15:49
问题 What I'm looking to do is preview what I've built on a custom localhost server (set up with Mamp Pro) on my iphone or ipad. The localhost is under http://devsite:8888 and not http://localhost:8888. I've tried the instructions for something similar found here. The result was being able to see the files but it was just the list of the files on the server and not picking up index.php—no previews enabled. I've triple checked to make sure I have a proper index in the root directory as well. Added

kafka环境

独自空忆成欢 提交于 2019-12-23 10:41:07
二、环境搭建 参考:http://kafka.apache.org/documentation.html#quickstart Step 1: 下载Kafka wget http://mirrors.noc.im/apache/kafka/0.9.0.0/kafka_2.11-0.9.0.0.tgz 解压: > tar -xzf kafka_2.9.2-0.8.1.1.tgz > cd kafka_2.9.2-0.8.1.1 复制代码 Step 2: 启动服务 Kafka用到了Zookeeper,所有首先启动Zookper,下面简单的启用一个单实例的Zookkeeper服务。可以在命令的结尾加个&符号,这样就可以启动后离开控制台。 > bin/zookeeper-server-start.sh config/zookeeper.properties & [2013-04-22 15:01:37,495] INFO Reading configuration from: config/zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig) ... 复制代码 现在启动Kafka: > bin/kafka-server-start.sh config/server.properties

10.0.2.2:8080 in web browser in emulator is not working

北城余情 提交于 2019-12-23 10:09:19
问题 I have a wamp server in localhost. I tried to make http request from my android app. But cannot get it right. Many said 10.0.2.2:8080 will point to localhost from emulator. So i tried to open it in web browser from emulator. i typed in url as "10.0.2.2/cifi/test.php". But emulator popped error as "net:CONNECTION_TIMED_OUT" Need explanation: how to make my wamp server in local machine to listen 10.0.0.2:8080 from emulator's browser. 回答1: Your Wamp Server seems to be accepting only localhost