localhost

关于MySQL的安装使用心得

谁说我不能喝 提交于 2019-12-06 13:04:56
MySQL浅浅地学习了几天,当然还是转到正轨Java上来了,昨天打了一串代码,测试注解来着,结果MySQL挂了~~~ 如何干净卸载MySQL帖子有很多,不再赘述,注册表是个好东西~~ 卸载了Mysql57,去官网下了个新版的8.0.18安装,结果卡死在starting service。。。。。。 这里反复卸载安装了3次,其中一次尝试装回57版,同样卡在启动服务那里 很多帖子说到没有卸载干净上一次安装的mysql,还有说安装时不勾选日志什么的,在win10环境下安装时没有用,这种情况不绝对,之所以没解决是药不对症,终于还是发现了问题所在,解决如下:(安装手法不同的人仅供参考,有时候你离解决问题就只有一步,懂行人一眼看穿,不懂的人就要多琢磨,多折腾下就熟了) 安装卡在启动服务就cancel,然后win+r,输入services.msc 登陆身份改成:本地系统账户(安装时可能默认的是“此账户”)就可以啦! 接下来就是配置环境变量,启动mysql服务即可! 解决问题就是松一口气!! 安装完成之后当然是连接数据库了,连接的过程并不是一帆风顺的! 虽然mysql57只在我的电脑上存在了不到一个星期,但习惯了mysql57的密码设置风格,在设置mysql80时就出问题了,默认账户root密码不能简单设置了,比如设置成“root”,查了资料说事加密方式改了: mysql57使用的是 mysql

Chrome now treating IP address of localhost same as somesite.localhost

随声附和 提交于 2019-12-06 12:49:29
For a while I have been running two different server environments on my Windows 7 OS. IIS runs on 127.0.0.1 and I have a Vagrant VM that uses 192.168.33.10. My hosts file looks something like: vagrantsite1.localhost 192.168.33.10 vagrantsite2.localhost 192.168.33.10 iissite1.localhost 127.0.0.1 iissite2.localhost 127.0.0.1 Up until a week or so back, this setup worked perfectly fine, however something has changed recently with my Chrome browser. Now all of a sudden in Chrome when I access vagrantsite1.localhost it is referencing the IIS 127.0.0.1 IP address instead of 192.168.33.10. I checked

Tomcat运行WEB项目的3种方法

落花浮王杯 提交于 2019-12-06 12:49:13
在方法一中可以通过下图中的路径修改项目的发布路径(一般情况默认发布到webapps目录下, 访问路径是: http://localhost:8080/PorjectName/index.jsp ) 具体修改位置是图中间的Web Context Root,里面的默认值是你的项目名,就是上面括号里的情况; 可以把项目名去掉,那么只剩下一个 '/' 代表项目会直接发布到webapps/Root目录下,访问路径是: http://localhost:8080/index.jsp(是的,Root目录下是不需要加上项目名的) 还有一种是Web Context Root里面填上你自定义的名字:例如下图中的/Tess,此时,访问路径是: http://localhost:8080/Tess/index.jsp(如果有使用框架也可以是:http://localhost:8080/Tess/index.action) 方法二:把项目打成war包到任意位置,然后把该war包放入tomcat的webapps目录,然后到tomcat/bin下启动startup.bat即可运行 发布项目到webapps目录下运行之后,会根据war包的名字在webapps目录下生成一个对应的文件夹,里面包含前端的资源,后端的class文件、配置文件、jar包等等,访问路径是: http://localhost:8080/War

IE 10 not setting / sending cookies (from js) to server

删除回忆录丶 提交于 2019-12-06 12:48:37
A while back I switched a large development project from using cookies to using localStorage. However I've realized that I was a little bit gun-ho and that some of the cookies were actually need on the server. I have set these back from localStorage to using cookies. However in the interim I have installed IE10 on my Win7 dev box and also switched my development server from IIS Express to ISS 7.5 running locally. To allow Fiddler to intercept my local traffic I access the development pages through the URL http://local_iis/ which is identified in the Hosts file as: local_iis 127.0.0.1 However

iPhone can not connect to local HTTP server over WiFi

泪湿孤枕 提交于 2019-12-06 11:50:51
问题 I can not open static HTML pages served from a HTTP server run on my MacBook in iPhone 6s iOS 9.2, neither in 'Safari' nor in 'Chrome' browser when using: http://ipNumberOfMyServer:portNumber I am able to open the pages on Android phones and I'm also able to open the pages if I turn MacBook's WiFi off and on, but if I change the page and refresh the browser, it again fails to load the page and says that server has stopped responding or that Safari could not connect to the server. Resetting

使用Cap解决.Netcore分布式事务

扶醉桌前 提交于 2019-12-06 10:57:46
一、什么是Cap CAP 是一个基于 .NET Standard 的 C# 库,它是一种处理分布式事务的解决方案,同样具有 EventBus 的功能,它具有轻量级、易使用、高性能等特点。 在我们构建 SOA 或者 微服务系统的过程中,我们通常需要使用事件来对各个服务进行集成,在这过程中简单的使用消息队列并不能保证数据的最终一致性, CAP 采用的是和当前数据库集成的本地消息表的方案来解决在分布式系统互相调用的各个环节可能出现的异常,它能够保证任何情况下事件消息都是不会丢失的。 你同样可以把 CAP 当做 EventBus 来使用,CAP提供了一种更加简单的方式来实现事件消息的发布和订阅,在订阅以及发布的过程中,你不需要继承或实现任何接口。 以下是CAP集在ASP.NET Core 微服务架构中的一个示意图: 二、安装 你可以运行以下下命令在你的项目中安装 CAP。 PM> Install-Package DotNetCore.CAP CAP 支持 Kafka、RabbitMQ、AzureServiceBus 等消息队列,你可以按需选择下面的包进行安装: PM> Install-Package DotNetCore.CAP.Kafka PM> Install-Package DotNetCore.CAP.RabbitMQ PM> Install-Package DotNetCore

Kong的核心对象

↘锁芯ラ 提交于 2019-12-06 10:26:58
目录 Kong 的管理方式 1. kong的关键术语 Service: Route: Upstream: Target: API: Consumer: Plugin: 2. 举例kong service的配置步骤 kong的重要对象关系 kong对象特征 前言须知: 从0.13开始 kong就弃用的api改用service来组织api 增加了service Route Upstream Target service 相当于原来的api,但是没有路由信息,可以直接挂载物理host,也可以挂一个Upstream的host Route指kong的路由实体。Route是Kong的入口,定义了请求的匹配规则,路由到指定的服务。就是专门定义外部访问的分发hosts,strip_path,preserve_host,protocols,甚至method都在这里定义,和service关联 Upstream,这个是新东西,一个虚拟的后端服务, 需要结合Target一起使用, 好处是可以在这里就完成负载均衡,还有健康检查 给Upstream添加实际的物理节点,实现的负载均衡 Kong 的管理方式 Kong 简单易用的背后,便是其所有的操作都是基于 HTTP Restful API 来进行的,Kong 在port上公开了 RESTful Admin API :8001

How to Open a Windows Program with JavaScript?

半腔热情 提交于 2019-12-06 10:00:18
问题 So I'm trying to make a projects hub for Windows (run locally with Localhost) that will open different apps (e.g. a CAD program) at the click of a button. Is this insecure? If not, how would I do it? If so, is there an alternative? Thanks! 回答1: A URI (Uniform Resource Identifier) will provide for the best user experience. A URI is a schema that can launch an application as well as pass data into the application. The most common example of a URI is the mailto: for launching a computer's mail

Xampp localhost not working

旧街凉风 提交于 2019-12-06 08:53:14
I am running laravel on xampp and I have problem with accessing pages, http://localhost/laravel/public/ I get a login page which is good however when I go for example http://localhost/laravel/public/smokeyard I get 404 error with The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. Route: Route::get('smokeyard', 'GuzzleController@smokeyard'); Controller: function smokeyard(){ return view('smokeyard'); } All my views are located in resources folder. if you want to access laravel project without running artisan serve , you need

[Linux] ubuntu环境安装和使用elasticsearch

北战南征 提交于 2019-12-06 08:39:09
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - apt-get install apt-transport-https echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list sudo apt-get update && sudo apt-get install elasticsearch 编辑配置文件: /etc/elasticsearch/elasticsearch.yml network.host: 127.0.0.1 network.bind_host: 127.0.0.1 transport.tcp.port: 9300 http.port: 9200 /usr/share/elasticsearch/bin/elasticsearch -d ES中使用restful api对数据进行增删查改 1)GET:查询数据 2)POST:插入或更改数据 3)PUT:创建库或表 4)DELETE:删除库 Index:数据库 type:表 Document:行 Field:列