localhost

Can't access localhost or phpMyAdmin with WAMP

人盡茶涼 提交于 2019-12-02 04:26:31
I'm running Apache v2.2.21, PHP v5.38, and MySQL v5.5.16. The WAMP icon is green. As the post title says, I can't access either localhost or phpMyAdmin from the WAMP systray icon menu, nor can I by typing http://127.0.0.1/index.php in a browser. Clicking on either localhost or phpMyAdmin gives me the error message "Unable to connect - Firefox can't establish a connection to the server at 127.0.0.1." I do have Skype and I know there are issues with Skype and WAMP port conflicts, so I quit Skype, and tried it, but got the same results. At first the WAMP icon was always orange, but some searching

Sendmail folder does not exist in xampp directory?

别来无恙 提交于 2019-12-02 03:51:37
问题 I am trying to send email from localhost but somehow mail is not being send to any email address. I am trying to configure email from localhost and found some solution which are pointing me to configure with sendemail server which is \xampp\sendmail\sendmail.exe . My problem is that I can not found sendmail folder in my xampp directory. So can not configure sendmail. I am using xampp v3.2.1 Can please anyone tell me that why I don't have sendmail folder in xampp dir? 回答1: You must have SMTP

品优购项目对接

非 Y 不嫁゛ 提交于 2019-12-02 03:49:13
品优购项目对接 首页 搜索页 详情页 购物车 确认订单页 首页和搜索页的对接 页面跳转 location.href ,使用 angularjs 的 $location 服务进行参数传递。 $scope.search = function () { if($scope.keywords.trim().length > 0){ location.href = "http://localhost:9104/search.html#?keywords=" + $scope.keywords; } } app.controller('itemSearchController', function ($scope, $location) { $scope.loadkeywords = function(){ //获取查询参数 $scope.searchMap.keywords = $location.search().keywords; $scope.search(); } }; 搜索页和详情页对接 用户点击搜索到的商品,超链接跳转 a 标签 到对应的商品详情页。 <a href="http://localhost:9105/{{pojo.goodsId}}.html" target="_blank"><img ng-src="pojo.image" /></a> 详情页和购物车对接

linux安装MySQL

时间秒杀一切 提交于 2019-12-02 03:18:44
1. 下载 rpm 包 wget https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm 2. 安装 rpm 包 rpm -Uvh mysql57-community-release-el6-9.noarch.rpm 或 yum localinstall -y mysql57-community-release-el6-9.noarch.rpm 3 、安装 mysql 服务端 yum install -y mysql-community-server 如果网络环境不是很好,执行完命令就可以去泡杯茶 4 、首先启动 mysql service mysqld start (重启是 restart ,完全弄好 MySQL 后最好添加 lower_case_table_names=1 到 [mysqld] 下面一行然后重启 MySQL ,这是为了和 windows 兼容,还有就是在 [mysql] 下面一行加入 default-character-set=utf8 ) systemctl start mysqld.service (这个是上面步骤执行后自动输出的,我这边的全称是: Redirecting to /bin/systemctl start mysqld.service ) 然后回到 [.....]

如何在阿里云服务器部署程序并用域名直接访问

点点圈 提交于 2019-12-02 02:59:52
闲来无事,买了一个最便宜的阿里云服务器来学习,一年三百多,适合新手了解程序等。 一般买服务器只有公网的IP地址,也就是类似10.205.25.32这种形式的。如何想用域名(例如www.baidu.com)直接访问的你网站,可以在阿里云直接再买个域名,将域名解析绑定ip地址。 有人想知道怎么解析域名,我这里补充一下域名相关内容 1.域名: 域名分为一级,二级,三级域名,如www.baidu.com,baidu为一级域名,www为二级域名,此网址没有三级域名 而比如mail.www.baidu.com中,mail为三级域名。 关于域名解析: 首先购买域名,然后进入控制台 点击解析 然后点击添加记录 记录类型选A,主机记录让你写自己的二级域名或三级域名,解析线路选择默认,记录值为你要绑定的ip,TTL就选10分钟 点确定就绑定了 2.服务器环境搭建 那么刚买的服务器,该如何安装环境并部署程序呢?一般买的服务器像一台新电脑,里面没有多余的软件,更没有程序的环境或者数据库什么的,所以都需要我们自己安装。 我是做java的,用mysql数据库,这里讲的是部署java程序。首先准备好jdk,mysql,tomcat,打包上传到服务器,再解压,如果服务器没有压缩软件,网上下载即可。一次安装jdk,配置环境变量,安装mysql,tomcat,将自己的程序传到tomcat中的webapp中。

Problems with cookies / MAMP / CodeIgniter

泪湿孤枕 提交于 2019-12-02 02:59:43
I'm having a problem with reading cookies on localhost, using MAMP and Codeigniter. I'm trying to ude a cookie to authenticate acess to an admin area. I can set the cookie (I see it on my browser - Chrome) but i'm not able to read it after doing that to grant the acess. I've already tried lots of configurations, but none works. I really need some help on this. Those are the essencial parts of my code: Here I set the cookie $cookie = array( 'name' => 'login', 'value' => 'true', 'expire' => '0', 'secure' => TRUE ); set_cookie($cookie); Here I redirect the user to login page if there is no cookie

nginx 初时

こ雲淡風輕ζ 提交于 2019-12-02 02:51:15
1 ## Nginx 2 3 - 反向代理 4 > 反向代理方式指服务器接收internet的链接请求 然后根据请求转化给内部网络服务器上 5 - 负载均衡 6 1.每个请求按时间顺序逐一分配到后端服务器, 7 ``` 简单配置 8 upstream test { 9 server localhost:8080; 10 server localhost:8081; 11 12 } 13 14 server { 15 listen 80; 16 server_name:localhost; 17 18 location / { 19 proxy_pass http://test; 20 21 } 22 } 23 24 ``` 25 26 2. 权重 ;指定轮询机率,weight 和访问比率成正向比,用于后端服务器鑫能不均衡情况 27 28 ``` 29 upstream test { 30 server localhost:8080 weight=9; 31 server localhost:8081 weight=1; 32 33 } 34 //10次访问1次8081 9次8080 35 ``` 36 37 3. ip_hash 程序请求不是无状态时候(采用session保存数据)我们需要一个客户访问一个服务器,ip_hash的每个请求按访问ip的

C#调用RabbitMQ实现消息队列

妖精的绣舞 提交于 2019-12-02 02:45:26
前言 我在刚接触使用中间件的时候,发现,中间件的使用并不是最难的,反而是中间件的下载,安装,配置才是最难的。 所以,这篇文章我们从头开始学习RabbitMq,真正的从头开始。 关于消息队列 其实消息队列没有那么神秘,我们这样想一下,用户访问网站,最终是要将数据以HTTP的协议的方式,通过网络传输到主机的某个端口上的。 那么,接收数据的方式是什么呢?自然是端口监听啦。 那消息队列是什么就很好解释了? 它就是端口监听,接到数据后,将数据排列起来。 那这件事,我们不用中间件能做吗? 当然能做啦,写个TCP/UDP/Socket的软件就可以做啦。 举个简单的例子,如下图: 既然自己可以做消息队列,那为什么要用RabbitMQ? 因为,RabbitMQ成熟的开源中间件,可靠性有保证,bug少,性能也非常好。 而C#代码默认是使用托管内存的,所以,想写出媲美RabbitMQ性能的消息队列,就必须离开我们常用的托管内存,使用非托管内存,但这个代价就太大了;而且最终能否达到RabbitMQ的性能水平还是个未知数。 还有就是RabbitMQ除了基础的消息队列管理,还有很多很强大的额外功能,而自己开发消息队列,很难如此尽善尽美。 ---------------------------------------------------------------------------------------

MySQL语句大全

送分小仙女□ 提交于 2019-12-02 02:28:13
MySQL语句大全 https://www.cnblogs.com/jicki/p/5548676.html 一、连接mysql。 格式: mysql -h主机地址 -u用户名 -p用户密码 二、修改密码。 格式:mysqladmin -u用户名 -p旧密码 password 新密码 1、给root加个密码ab12。首先在DOS下进入目录mysql\bin,然后键入以下命令 mysqladmin -u root -password ab12 注:因为开始时root没有密码,所以-p旧密码一项就可以省略了。 2、再将root的密码改为djg345。 mysqladmin -u root -p ab12 password djg345 三、增加新用户。 (注意:和上面不同,下面的因为是MYSQL环境中的命令,所以后面都带一个分号作为命令结束符) 格式:grant select on 数据库.* to 用户名@登录主机 identified by "密码" 1、增加一个用户test1密码为abc,让他可以在任何主机上登录,并对所有数据库有查询、插入、修改、删除的权限。首先用root用户连入MYSQL,然后键入以下命令: grant select,insert,update,delete on *.* to test1@"%" Identified by "abc"; 创建所有权限的帐号:

Apache配置httpd-vhosts虚拟主机总结及注意事项

只谈情不闲聊 提交于 2019-12-02 02:23:03
,用记事本打开apache目录下httpd文件(如:D:\wamp\bin\apache\apache2.2.8\conf),找到如下模块 # Virtual hosts #Include conf/extra/httpd-vhosts.conf 去掉前面的#,这样就开启了httpd-vhosts虚拟主机文件。这时候重启wamp环境,无法打开localhost,需要在httpd- vhosts.conf配置一下。 2,用记事本打开httpd-vhosts文件,配置好localhost虚拟主机,参照httpd- vhosts文件中实例,修改成如下: <VirtualHost *:80> ServerAdmin webmaster@dummy-host.localhost DocumentRoot "D:\wamp\www" ServerName localhost ServerAlias localhost ErrorLog "logs/dummy-host.localhost-error.log" CustomLog "logs/dummy-host.localhost-access.log" common </VirtualHost> 来源: oschina 链接: https://my.oschina.net/u/1262504/blog/194248