localhost

Visual Studio 2015. Failed to register URL for site access is denied IIS Express. Access denied 0x80070005

我只是一个虾纸丫 提交于 2019-12-04 15:23:39
I enabled SSL in Visual Studio 2015 in order to implement Facebook and Google login locally. I changed the project URL in the Web tab of the project's properties to https://localhost:44300/ and decorated the controller with the RequireHttps attribute - ref @msdn . Everything worked fine locally. I reverted settings to HTTP to test something else and that caused me a problem when I tried to get back to HTTPS. I found this SO question and tried almost every suggested solution. Error detail: Failed to register URL " url " for site " site " application " path ". Error description: Access is denied

MySQL的一些指令操作

走远了吗. 提交于 2019-12-04 15:18:46
这个连接的也不错: https://www.cnblogs.com/wangyueping/p/11258028.html 如何给MySQL数据可添加一个用户 首先以root身份登录到MySQL服务器中。 $ mysql -u root -p 当验证提示出现的时候,输入MySQL的root帐号的密码。 创建一个MySQL用户 使用如下命令创建一个用户名和密码分别为"myuser"和"mypassword"的用户。 mysql> CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword'; 一旦用户被创建后,包括加密的密码、权限和资源限制在内的所有帐号细节都会被存储在一个名为user的表中,这个表则存在于mysql这个特殊的数据库里。 运行下列命令,验证帐号是否创建成功 mysql> SELECT host, user, password FROM mysql.user WHERE user='myuser'; 赋予MySQL用户权限 一个新建的MySQL用户没有任何访问权限,这就意味着你不能在MySQL数据库中进行任何操作。你得赋予用户必要的权限。以下是一些可用的权限: ALL: 所有可用的权限 CREATE: 创建库、表和索引 LOCK_TABLES: 锁定表 ALTER: 修改表 DELETE: 删除表 INSERT:

DNS的正向解析与反向解析

一个人想着一个人 提交于 2019-12-04 15:18:26
DNS域名解析服务( D omain N ame S ystem)是用于解析域名与IP地址对应关系的服务,功能上可以实现 正向解析 与 反向解析 : 正向解析 :根据主机名(域名)查找对应的IP地址。 反向解析 :根据IP地址查找对应的主机名(域名)。 正向解析实验: 第一步:安装 Bind服务程序: yum install bind-chroot 域名解析服务 Bind的程序名称叫做 named ,服务程序的配置文件如下: 主程序 /usr/sbin/named 主配置文件 /etc/named.conf 区域配置文件 /etc/named.rfc1912.zones 第二步:修改主配置文件 vim /etc/named.conf: //将下行中的127.0.0.1修改为any,代表允许监听任何IP地址。 listen-on port 53 { 127.0.0.1 ; }; //将下行中的localhost修改为any,代表允许任何主机查询。 allow-query { localhost ; }; 第三步:将系统的 DNS地址设为本机。这样才能看到效果 (方法不唯一) 第四步:配置区域数据信息 根据主机域名查找到对应的 IP地址(在下追加) vim /etc/named.rfc1912.zones zone "haozhikuan-hbza.com" IN { type

文件包含

好久不见. 提交于 2019-12-04 15:15:28
定义 文件包含函数加载的参数没有经过过滤或者严格的定义,可以被用户控制,包含其他恶意文件,导致了执行了非预期的代码。 利用函数 php中提供四个文件包含的函数,分别是include(),include_once(),require()和require_once()。这四个都可以进行文件包含,但有区别 require:找不到被包含的文件时会产生致命错误(E_COMPILE_ERROR),并停止脚本 include:找不到被包含的文件时只会产生警告(E_WARNING),脚本继续执行 include_once:此语句和include类似,唯一区别就是如果该文件中的代码已经被包含,则不会再次包含 require_once:此语句和require类似,唯一区别就是如果该文件中的代码已经被包含。则不会再次包含  本地文件包含 测试代码 <?php $filename = $_GET['filename']; include($filename); ?> 结果 本地文件包含绕过限制 %00截断 条件:magic_quotes_gpc = Off php版本<5.3.4 payload:http://localhost/test.php?filename=phpinfo.php%00 路径长度截断 条件:windows,点号需要长于256 linux,长于4096

Jenkins and Github auto trigger

≯℡__Kan透↙ 提交于 2019-12-04 15:08:13
I'm trying to setup Jenkins and Github such that Jenkins will build my project when something is pushed to Github. However, I can't seem to get the webhooks to work. I set the webhook on github to : http://localhost:8080/github-webhook/ . I'm running the jenkins server on my laptop, therefore I am using 'localhost'. There might also be an error with this url, as github does say: 'Invalid host'? I've tried to find some good guides, but none seem to be updated nor mention how to set it up locally. So any help would really be appreciated! This cannot work. localhost maps to the IP address 127.0.0

Lock web app only work for intranet

别等时光非礼了梦想. 提交于 2019-12-04 14:22:10
问题 some week in the future i will have job to create php web app that will work as billing process. As the client and my team agree upon, the web app will only deploy in their internal server. This need arose some fundamental questions for myself. how do we lock the web app really really will work only in internal server and not in internet as it asked ? cause this need, the cost for the job have been cut into some degree. so it will be best if it only work as client describe it : it will be

Performance of local domain vs localhost

旧城冷巷雨未停 提交于 2019-12-04 14:15:41
Is there a performance difference between TCP connections to: localhost / 127.0.0.1 a domain which resolves to the local machine Or more specifically, do the latter connections go through the loopback device, or over the actual network? The reason I'm asking is I'm thinking about changing database settings in many PHP apps so they use a full domain instead of localhost. That way we could more easily move the database to a different server, if the need arises. This is implementation and operating system dependent. On Windows, anything connecting to a local IP address, even if it is an outside

Tomcat总结四种部署方式

十年热恋 提交于 2019-12-04 14:08:37
静态部署 一.Webapps 把项目复制到Tomcat的Webapps 把war包复制到Tomcat的Webapps下 *修改Webapps的默认路径: * Tomcat的conf目录下的server.xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 修改appBase即可 二 配置server.xml 在Tomcat里,一个项目对应一条Context 部署项目可以在server中添加Context,如: <Context path="/myapp" reloadable="true" docBase="D:\myapp" workDir="D:\myapp\work" debug="0" privileged="true"/> path:虚拟路径 docBase:物理路径 workDir:工作目录,存放运行时与工程相关的文件 reloadable:为true时,支持热部署,会自动检测应用程序的/WEB-INF/lib 和/WEB-INF/classes目录的变化,自动装载新的应用程序 antiResourceLocking和antiJARLocking:

localhost/live - detect by HTTP_HOST

点点圈 提交于 2019-12-04 13:52:18
问题 let's say I develop locally and debug small things on live server. Is it good idea to have something like this in my code? : $is_local = (strpos($_SERVER['HTTP_HOST'], 'localhost') !== false); define ('DEBUG',$is_local); And then use it through my code, when setting stuff? $mysql_settings = (DEBUG) ? array(/*localhost settings*/) : array(/*live settings*/); This way, I can use the same files live and on localhost, so I can sync without any fear of having wrong e.g. connection settings on live

Local Name Resolution without Port - MAMP Pro

ぃ、小莉子 提交于 2019-12-04 13:30:00
问题 This has been bothering me for a while, within MAMP Pro, I've got a few sites setup with "Local Name Resolution", however they only work with a port number. I've noticed many people are able to get them to work without any port numbers. E.g Chris Coyier from CSS-Tricks can work directly on v10.whatup , where as my own would only work on v10.whatup : 8888 TL:DR. test.dev:8888 works, but not test.dev/ Am I missing something/What's the problem? UPDATE/EDIT: If I set MAMP Pro port settings to use