localhost

Tunnel a localhost subdirectory through ngrok?

孤者浪人 提交于 2019-12-30 01:48:50
问题 Objective: want to share a website preview using ngrok, which creates a tunnel from which my localhost can be seen with an url of something like mywebsite.ngrok.io Problem: I use WAMP and my localhost folder looks something like this: localhostdirectory |-- website1 |-- website2 |-- etc To access a website I type to localhost/website1/ in the browser, I would like to tunnel only that URL, the possible solutions would be: Setting up a Virtual host, I would go through the hassle of manually

Docker 本地私有仓库搭建:

吃可爱长大的小学妹 提交于 2019-12-29 17:17:44
Docker 本地私有仓库搭建: 创建数据卷目录: mkdir /home/sky/registry 用registry镜像启动容器: docker run -d -p 5000:5000 -v /home/sky/registry:/var/lib/registry --restart=always --name registry registry:2 上传镜像: docker tag hello-world localhost:5000/hello-world:latest docker push localhost:5000/hello-world:latest 查询镜像: curl http://localhost:5000/v2/_catalog 下载镜像: docker pull localhost:5000/hello-world 验证: 如果删除容器,是否上传的镜像没有丢失。这是因为数据卷起了作用。 来源: https://www.cnblogs.com/AK47Sonic/p/8743855.html

本地环境 XAMPP+phpStorm+XDebug+chrome配置和断点调试

与世无争的帅哥 提交于 2019-12-29 12:04:01
不明白phpStorm+XAMPP+chrome组合的phpStorm配置XDebug的断点调试,很多种网页办法都看过了,可用,但没达预期。QQ群问,一个大牛很奇怪我都配置了怎么还不正确,很干脆地说远程协助。哈爽快人说爽快话给办利落的事,我还没说感谢呢大牛就直接说有事88。 今天me总算明白了,其实很容易理解的,休闲的时间把配置过程写了,顺便mark下,需要的人来看看。其实今天《爱你,万缕千丝》正在放映,我追看的,今天恰逢之元、天丘因家族利益出现大吵,所谓一部戏铺垫完、到了矛盾激化到极点、将要迎接剧终的时候,我写这个配置过程忘了看了竟然给,找空补上。希望这个配置过程你读起来像是一本故事,或者是拍拍砖: 我的安装环境:XAMPP版本号V3.1.0 ;phpStorm版本8.0.3;windowsxp 32bit。您老人家先过目一下,不然怕影响意义。 XAMPP、phpStorm 都直接安装在了D盘根目录,9999m目录建在D:\xampp\htocts下,即目录工程文件夹路径为D:\xampp\htocts\9999m。在phpStorm>File>open,找到9999m,点击确定,加载9999m到了phpStorm(安装环境路径根据需要自行更改,后面的配置内容也类似)。图1 1. 开始服务器端配置:安装好XAMPP,停止apache服务(注意,如果直接退出XAMPP

phpstorm设置断点过程

一曲冷凌霜 提交于 2019-12-29 12:03:23
1.为php安装xdebug,方法在上一篇中有详细介绍 2.注意这个时候需要修改php.ini内容如下: [Xdebug] zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.1.2-5.2-vc6.dll" xdebug.auto_trace=On xdebug.collect_params=On xdebug.collect_return=On xdebug.trace_output_dir="d:/wamp/php/debuginfo" xdebug.profiler_enable=On xdebug.profiler_output_dir="d:/wamp/php/debuginfo" xdebug.idekey=PhpStorm xdebug.remote_enable=on xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp 3.phpstorm配置 客户端调试,打开 phpStorm ,进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger选 XDebug 进入File>Settings>PHP

【XDebug】PHPStorm+XDebug+Firefox

谁都会走 提交于 2019-12-29 12:01:59
本地环境:windows 7 64位 PhpStorm版本:2016.1 PHP版本:5.6 参考: Xdebug+phpstorm配置 参考: 本地环境phpStorm10+XDebug配置和断点调试 第一步:安装Xdebug 本地的环境是用phpStudy搭建的,直接在phpStudy可以勾选Xdebug: 其他选项菜单-PHP扩展及设置-PHP扩展-Xdebug勾选(默认不勾选) 第二步:配置php.ini 在php.ini中配置以下信息: [ XDebug ] xdebug . profiler_output_dir = "D:\phpStudy\tmp\xdebug" xdebug . trace_output_dir = "D:\phpStudy\tmp\xdebug" zend_extension = "D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug.dll" xdebug . remote_enable = 1 //是否允许远程终端 这里标示开启 xdebug . profiler_enable_trigger = 0 xdebug . remote_handler = dbgp xdebug . remote_mode = req xdebug . remote_host = localhost xdebug .

header(“Location:/”); redirect works on localhost, but not on remote server

半腔热情 提交于 2019-12-29 09:06:01
问题 if (condition) { #lol. Some code here } else { header("Location:/");//i'm trying to redirect to the root } Redirect works perfectly on localhost, but not on remote server. May be it's all better to use $_SERVER ? This redirect wouldn't work even if i choose file in the same directory as file with redirect. Hope you help me :) 回答1: From the manual: HTTP/1.1 requires an absolute URI as argument to » Location: including the scheme, hostname and absolute path, but some clients accept relative

Object not found! The requested URL was not found on this server. localhost

六月ゝ 毕业季﹏ 提交于 2019-12-29 08:26:25
问题 Good day to everyone. I have a typical set up A,M,P and i am just doing some testing on my localhost server for setting up a webpage. I'm a bit new to php and dynamic sites so I'm muddling my way though. So I am at an impasse here. Whenever I attempt to view the page in the browser and click on the links I get this error: Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about

How to limit traffic using multicast over localhost

旧时模样 提交于 2019-12-29 06:56:09
问题 I'm using multicast UDP over localhost to implement a loose collection of cooperative programs running on a single machine. The following code works well on Mac OSX, Windows and linux. The flaw is that the code will receive UDP packets outside of the localhost network as well. For example, sendSock.sendto(pkt, ('192.168.0.25', 1600)) is received by my test machine when sent from another box on my network. import platform, time, socket, select addr = ("239.255.2.9", 1600) sendSock = socket

关于Ocelot和Consul 实现GateWay(网关) 服务注册 负载均衡等方面

孤者浪人 提交于 2019-12-29 01:38:16
Ocelot 路由 请求聚合 服务发现 认证 鉴权 限流熔断 内置负载均衡器 Consul 自动服务发现 健康检查 通过Ocelot搭建API网关 服务注册 负载均衡 1.创建三个空API项目 Api.Gateway(Ocelot网关服务器) Api.ServiceA(资源服务器A) Api.ServiceB(资源服务器B) 2.Api.Gateway项目中 添加Ocelot包 添加Ocelot.Json配置文件 Ocelot服务器端口配成5000 { "ReRoutes": [ { //暴露出去的地址 "UpstreamPathTemplate": "/api/{controller}", "UpstreamHttpMethod": [ "Get" ], //转发到下面这个地址 "DownstreamPathTemplate": "/api/{controller}", "DownstreamScheme": "http", //资源服务器列表 "DownstreamHostAndPorts": [ { "host": "localhost", "port": 5011 }, { "host": "localhost", "port": 5012 } ], //决定负载均衡的算法 "LoadBalancerOptions": { "Type": "LeastConnection"

Thymeleaf实战

拥有回忆 提交于 2019-12-28 21:09:52
一 代码位置 https://gitee.com/cakin24/code/tree/master/05/Thymeleaf 二 测试 1 浏览器输入: http://localhost:8080/thymeleaf/variable 2 浏览器输入: http://localhost:8080/ 3 浏览器输入: http://localhost:8080/thymeleaf/list 4 浏览器输入: http://localhost:8080/thymeleaf/list2 5 浏览器输入: http://localhost:8080/thymeleaf/map 来源: CSDN 作者: cakincqm 链接: https://blog.csdn.net/chengqiuming/article/details/103747703