localhost

How do I get Fiddler to stop ignoring traffic to localhost?

泄露秘密 提交于 2019-12-17 04:46:50
问题 When using Fiddler to monitor HTTP Requests & Responses in Internet Explorer it ignores all traffic directed to http://localhost. 回答1: To get Fiddler to capture traffic when you are debugging on local host, after you hit F5 to begin degugging change the address so that localhost has a "." after it. For instance, you start debugging and the you have the following URL in the Address bar: http://localhost:49573/Default.aspx Change it to: http://localhost.:49573/Default.aspx Hit enter and Fidder

mysql权限管理

丶灬走出姿态 提交于 2019-12-17 03:33:26
mysql权限管理 1、新增用户 mysql>CREATE USER ‘username‘@‘host‘ IDENTIFIED BY ‘password‘; host:主机ip,%【任意ip】 localhost【本机】 192.168.31.22【指定ip】 IDENTIFIED BY:将密码用默认的加密方式进行加密后放入表中,不直接存放可以明码 默认的加密方式需要查一下user表中的plugin,如果客户端不支持,可以指定加密方式进行加密 mysql>CREATE USER 'username'@'host' IDENTIFIED MySqlSHA1 BY 'password'; 新增后的用户默认是没有任何权限的,也就是useage,只能登陆罢了 更新用户密码: >update user set password=PASSWORD(‘123456’) where User='root' 该表,是用户远程登陆 mysql -u root –p mysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>select host, user from user; 2、查看和管理用户权限 1、查看当前用户的权限 MariaDB [(none)]> show grants; 2

Can't connect to MySQL server on 'localhost' (10061)

独自空忆成欢 提交于 2019-12-17 03:31:14
问题 I recently installed MySQL 5 on Windows 2003 and tried configuring an instance. Everything worked fine until I got to "Applying Security settings", at which point it gave me the above error ( Can't connect to MySQL server on 'localhost' (10061) ). I do have a port 3306 exception in my firewall for 'MySQL Server'. 回答1: You'll probably have to grant 'localhost' privileges to on the table to the user. See the 'GRANT' syntax documentation. Here's an example (from some C source). "GRANT ALL

create a trusted self-signed SSL cert for localhost (for use with Express/Node)

纵饮孤独 提交于 2019-12-17 02:54:08
问题 Trying to follow various instructions on creating a self-signed cert for use with localhost, Most of the instructions seem to be for IIS, but I'm trying to use Nodejs/Express. None of them work properly because while the cert gets installed, it is not trusted. here's what I've tried that fails: How can I create a self-signed cert for localhost? https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04/ http://blogs.developerforce.com/developer

php mail() function on localhost

落爺英雄遲暮 提交于 2019-12-17 02:24:10
问题 I have problem with php mail() function on localhost server. I can't test my email application on localhost when i'm trying to send emails with php function mail() . I'm getting this error 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() in F:\wamp\www\product\ajax.php on line 64 I'm using WAMP server and if anyone knows solution please help me. 回答1: You need to setup a mail server

Linux搭建DNS服务器

牧云@^-^@ 提交于 2019-12-17 02:15:50
安装bind软件 yum -y install bind* vi /etc/named.conf文件,把里面的127.0.0.1以及localhost改成any vi /etc/named.rfc1912.zones 添加如下内容: zone "169.168.192.in-addr.arpa" IN { type master; file "169.168.192.in-addr.arpa"; allow-update { none; }; }; zone "scan-cluster.localdomain" IN { type master; file "named.localhost"; allow-update { none; }; }; 拷贝named.localhost文件为169.168.192.in-addr.arpa,cp的时候带上-p参数,统一用户组 [root@localhost named]# pwd /var/named [root@localhost named]# ls 169.168.192.in-addr.arpa data named.ca named.localhost.rpmsave chroot dynamic named.empty named.loopback chroot_sdb dyndb-ldap named.localhost

mysql error 1130 hy000:Host 'localhost' is not allowed to connect to this mysql server 解决方案

≡放荡痞女 提交于 2019-12-17 00:50:32
ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server D:\Wamp\mysql-5.6.21\bin>mysql.exe -uroot -p Enter password: ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server 此处是root账户没有本地数据库的访问权限,所以无法连接数据库,需要使用grant给root账户授权。 授权之前需要登录到数据库,使用skip-grant-tables参数 skip-grant-tables 顾名思义,数据库启动的时候 跳跃权限表的限制,不用验证密码,直接登录。 编辑 my.ini,在[mysqld]的段中加上一句:skip-grant-tables [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-name-resolve skip-grant-tables 临时解决方案,亦可以用于忘记mysql root用户密码时使用, 安全性也比较难以保证。 然后登陆到root账户,此时不需要输入密码就可以进入,然后grant授权

分布式Session共享(一):tomcat+redis实现session共享

依然范特西╮ 提交于 2019-12-17 00:22:57
一、前言 本文主要测试memcached实现session共享的实现方式,不讨论如何让nginx参与实现负载均衡等。 二、环境配置 本测试在Window下进行 name version port Tomcat1 7.0.61 127.0.0.1:8083 Tomcat2 7.0.61 127.0.0.1:8084 Memcached 1.4.2 127.0.0.1:11211 - 三、配置memcached-session-manager 3.1 获取jar包 首先需要Session管理相关的包   memcached-session-manager-1.9.2.jar   memcached-session-manager-tc7-1.9.2.jar 因为用到memcached,所以还需要   spymemcached-2.10.3.jar 序列化(只测试了两种方式,二选一即可) kryo序列化方案(都说kryo序列化效率高)   asm-5.0.4.jar   kryo-3.0.3.jar   kryo-serializers-0.34.jar   minlog-1.3.0.jar   msm-kryo-serializer-1.9.2.jar   objenesis-1.2.jar   reflectasm-1.11.1.jar javolution序列化方案  

How do I connect to this localhost from another computer on the same network?

倖福魔咒の 提交于 2019-12-16 20:04:19
问题 I'm currently working on a project and I would like to test it out on two laptops at home where one laptop connects to the localhost on the other. I am using XAMPP. How do I do this? 回答1: That's definitely possible. We'll take a general case with Apache here. Let's say you're a big Symfony2 fan and you would like to access your symfony website at http://symfony.local/ from 4 different computers (the main one hosting your website, as well as a Mac, a Windows and a Linux distro connected

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)

本秂侑毒 提交于 2019-12-16 20:03:56
问题 Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\Users\xampp\htdocs\PHP_Login_Script\config.php on line 6 Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given in C:\Users\xampp\htdocs\PHP_Login_Script\login.php on line 10 Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given in C:\Users\xampp\htdocs\PHP_Login_Script\login.php on line 11 Warning: mysqli_query()