localhost

Elasticsearch 集群状态恢复(RED 与 YELLOW)

情到浓时终转凉″ 提交于 2019-12-02 12:11:57
集群状态解读 绿色——最健康的状态,代表所有的主分片和副本分片都可用; 黄色——所有的主分片可用,但是部分副本分片不可用; 部分主分片不可用。(此时执行查询部分数据仍然可以查到,遇到这种情况,还是赶快解决比较好。) curl localhost:9200/_cluster/health 查看 _cat/shards 查看集群中不同节点、不同索引的状态: curl localhost:9200/_cat/shards?h=index,shard,prirep,state,ur my_index 4 p STARTED my_index 4 r UNASSIGNED CLUSTER_RECOVERED my_index 3 p STARTED my_index 3 r UNASSIGNED CLUSTER_RECOVERED my_index 2 p STARTED my_index 2 r UNASSIGNED CLUSTER_RECOVERED my_index 1 p STARTED my_index 1 r UNASSIGNED CLUSTER_RECOVERED my_index 0 p STARTED my_index 0 r UNASSIGNED CLUSTER_RECOVERED 查看可用的表头字段 curl localhost:9200/_cat/shards

registry搭建及容器管理

為{幸葍}努か 提交于 2019-12-02 12:10:55
registry 的搭建 docker pull registry:2 docker run -d -v /opt/registry:/var/lib/registry -p 5000:5000 --name myregistry registry:2 Registry服务默认会将上传的镜像保存在容器的/var/lib/registry,我们将主机的/opt/registry目录挂载到该目录,即可实现将镜像保存到主机的/opt/registry目录了 ##浏览器访问测试 http://127.0.0.1:5000/v2 出现 {} 为正常 ##上传镜像测试 docker tag nginx:latest localhost:5000/nginx:latest docker push localhost:5000/nginx:latest ##查看上传的镜像 http://127.0.0.1:5000/v2/_catalog 查看私有仓库目录 {"repositories":["nginx"]} 镜像操作 ##推送一个镜像到registry docker push <registry_ip>:<registry_port>/<image_name>:<image_tag> docker push 192.168.37.100:5000/busybox:0.0.1 #

kafka centos安装发送消费消息

守給你的承諾、 提交于 2019-12-02 11:56:31
1. 请先下载安装文件,java环境需提前安装,解压到指定目录: tar -zxvf kafka_2.11-2.3.1.tgz -C /root/soft/ 从官网下载文件,上传到centos虚拟机指定路径下,当前download文件夹下面 解压到指定目录soft文件夹下面: 2. 创建zk日志目录。 mkdir zklogs 3. 查看是否启动成功, ps -ef | grep zookeeper 4. 启动zookeeper nohup bin/zookeeper-server-start.sh ./config/zookeeper.properties & 5. 修改kafka配置 vim config/server.properties 执行命令 vi config/server.properties 修改kafka的配置信息 修改advertised.host.name和advertised.port信息 修改日志文件路径: 修改log.dirs=/root/soft/kafka-logs为log.dirs=/root/soft/kafka/logs 该参数为kafka日志文件存放路径 advertised.host.name=192.168.132.152 advertised.port=9092 log.dirs=/root/soft/kafka/logs 6.

How to redirect localhost to 127.0.0.1:8080?

心已入冬 提交于 2019-12-02 11:36:32
When I check using Apache > Service > Test Port 80, then it shows Your port 80 is actually used by : Server: Microsoft-HTTPAPI/2.0 How can I disable this. Tried every possible way, even via registry, and stopping World Wide Web Publishing. I don't think that's possible. When you type "localhost" into the browser, it resolves that to "127.0.0.1", and fills in the default port of 80. If nothing is listening there, it won't connect. It can't resolve "localhost" to "127.0.0.1:8080". If you can't use port 80, you have to specify the port you want. Use a bookmark if it makes it easier for you. This

can I do test shibboleth IdP and SP on localhost environment?

♀尐吖头ヾ 提交于 2019-12-02 11:33:05
can I do test shibboleth IdP and SP on localhost environment? I have just one PC(Win7) Akshay Yes you sure can. Download and install SP and idP in that machine, configure metadata for both to communicate to localhost or for better ease use two domains for SP and idP, C:\Windows\System32\drivers\etc here add two domains localhost-sp and localhost-idp to the hosts file. So you have now two differet domains for sp and idp. 来源: https://stackoverflow.com/questions/21273062/can-i-do-test-shibboleth-idp-and-sp-on-localhost-environment

elasticsearch 基本概念

北慕城南 提交于 2019-12-02 11:12:59
创建索引库 就是存放索引的数据库, 在索引中创建 映射 put http://localhost:9200/索引库名称 请求体: { "settings":{ "index":{ "number_of_shards":1, "number_of_replicas":0 } } } number_of_shards:设置分片的数量,在集群中通常设置多个分片,表示一个索引库将拆分成多片分别存储不同 的结点,提高了ES的处理能力和高可用性,入门程序使用单机环境,这里设置为1。 number_of_replicas:设置副本的数量,设置副本是为了提高ES的高可靠性,单机环境设置为0. 如下是创建的例子,创建xc_course索引库,共1个分片,0个副本: 创建映射 就是设置索引中 字段的属性 一旦创建只能增加,不能修改已经创建的 post 请求:http://localhost:9200/xc_course/doc/_mapping { "properties": { "name": { "type": "text" }, "description": { "type": "text" }, "studymodel": { "type": "keyword" } } } 创建文档 ES中的文档相当于MySQL数据库表中的记录。 发送:put 或Post http://localhost

-canOpenURL: failed for URL: “spotify:” - error: “(null)”

帅比萌擦擦* 提交于 2019-12-02 10:59:15
Not sure if this is true , but from what I've read, people say this issue only occurs on the Xcode simulator so you you must test on an actual device. The problem with this is my current server is a local node server at http://localhost:3000 , and my iOS device can not access this server. 1) Is there a way to give my iOS device access to the local server on my device? 2) Why am I getting this error when running the simulator? I have put the following in my info.plist: <key>LSApplicationQueriesSchemes</key> <array> <string>spotify</string> </array> 1) To test on the device - replace the

What is the easiest and quickest method to deploy a Laravel web application live? [closed]

前提是你 提交于 2019-12-02 10:43:43
After finishing a Laravel website, I realized it doesn't work like work like WordPress, where you can deploy it directly from localhost to live server. How do I do it? Here's how you can deploy your laravel site to different kinds of hostings: Shared Hosting: First, it is well discouraged to use a shared hosting for your laravel app. There are very cheap VPS web hosting providers starting from $5/month that you can use but still if you are using shared hosting here is how to get your laravel site live: For shared hostings with SSH access: Major shared hosting providers (like goDaddy, 1&1

Can we use roundcube, thunderbird or any webmail in our xampp/wamp server?

断了今生、忘了曾经 提交于 2019-12-02 10:10:13
I have a web application developed in PHP and all users can access it via local network(xampp), now the users want to access their gmail,yahoo or any emails via localhost(xampp), I want something like MS-outlook to work in my xampp. is there any solution ? 来源: https://stackoverflow.com/questions/39699980/can-we-use-roundcube-thunderbird-or-any-webmail-in-our-xampp-wamp-server

【ASP.NET Core学习】入门

人盡茶涼 提交于 2019-12-02 09:51:32
/*--> */ /*--> */ 下面操作都是基于VS Code,Net Core3.0 创建 Web 应用项目 VS Code终端输入 dotnet new webapp -o aspnetcoreapp 创建一个名称为aspnetcoreapp的web项目 可以创建不同的项目,具体可以输入 dotnet new -h 查看 主要文件结构 文件名称 说明 Pages    页面文件  appsettings.json 配置文件 aspnetcoreapp.csproj 项目文件 Program.cs 程序入口文件 Startup.cs 程序启动文件 信任开发证书 VS Code终端输入 dotnet dev-certs https --trust 弹出确认框选是 运行应用 VS Code终端输入 cd aspnetcoreapp dotnet watch run 浏览器输入: https://localhost:5001/ 就能看到页面 如果想停止运行,在终端页面输入Ctrl + C 运行时能在终端看到下面日志信息 分析上面日志 AspNet Core 的数据保护,从Xml里面加载( 查看数据保护 ) 正在监听 https://localhost:5001 正在监听 http://localhost:5000  程序已启动 主机运行环境是Development 根目录位置