localhost

cm api

亡梦爱人 提交于 2019-12-04 01:56:16
cm API: https://github.com/cloudera/cm_api/tree/master/python/examples/auto-deploy #看集群有几个cluster curl -u admin:opaytest99 'http://localhost:7180/api/v1/clusters' curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/serviceName/roles' 列出所有服务及健康状态: curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services' 看某个服务下有什么角色: curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/hdfs/roles' 查看host信息: curl -u admin:opaytest99 'http://195.189.142.89:7180/api/v32/hosts' 来源: https://www.cnblogs.com/hongfeng2019/p

部署MooseFS分布式文件系统

点点圈 提交于 2019-12-04 01:50:01
MooseFS是一个分布式文件系统,其本身具有高可用性,高拓展性,开放源代码,高容错,等在数据的读写性能方面,通过dd测试,MooseFS也就是写入的速度稍微好于NFS,读上没有差别. MooseFS的文件系统结构体系可分为以下四种角色,分别对应不同的功能: 1.管理服务器managing server (master) 2.元数据日志服务器Metalogger server(Metalogger) 3.数据存储服务器data servers (chunkservers) 4.客户机挂载使用client computers 下面我们分别编译安装MFS的每个组件,实现一个企业环境的分布式文件系统. 实验环境与IP分配 [主机类型] [主机IP] [主机作用] Master-Server 192.168.22.195 主控服务器 MetaLogger-Server 192.168.22.191 备份服务器 Cunk-Server 192.168.22.192 存储节点1 Cunk-Server 192.168.22.193 存储节点2 Client 192.168.22.194 挂载客户端 Master-Server配置 管理服务器managing server (master):负责各个数据存储服务器的管理,文件读写调度,文件空间回收以及恢复,多节点拷贝单个机器管理整个文件系统

ELK日志分析系统

偶尔善良 提交于 2019-12-04 01:30:54
======================================================================================= 操作系统 IP地址 主机名 软件包 角色备注 CentSO7.5x86_64 192.168.200.113 elk-node1 内存:2G CentSO7.5x86_64 192.168.200.114 elk-node2 内存:2G CentSO7.5x86_64 192.168.200.115 elk-node3 内存:1G 创建多台Elasticearch节点的目的是存放数据的多个副本,在实际生产环境中,节点的数量可能更多,及Logstash.Elasticsearch和kibana集中部署在node1节点上,也可以采用分布式部署,即logstash/Elasticserach 分别部署在不同的服务器上。 3.1、在2个ELK节点上配置名称解析,通过本地/etc/hosts映射实现。 Elk-node1(192.168.200.113)上的配置: [root@localhost ~]# hostname elk-node3 [root@localhost ~]# bash [root@elk-node3 ~]# vim /etc/hostname elk-node1 [root@elk-node1 ~

How can I get Yahoo OAuth to work when I develop locally when my local domain is not registered with Yahoo?

家住魔仙堡 提交于 2019-12-04 01:11:54
I'm working on an app that uses Yahoo OAuth. The OAuth had been working fine but I just registered my domain with Yahoo and now it will not let me use the OAuth when I develop locally because "Custom port is not allowed or the host is not registered with this consumer key." The issue is because my call back URL is to a domain that is not registered with Yahoo ( http://localhost:8080/welcome ). I'm not sure what to do. I'm also new to development so if you could be specific with suggestions that would be awesome! Any help is greatly appreciated. Hiii... yahoo works on localhost :).. what you

Enable ZipArchive on localhost [closed]

梦想的初衷 提交于 2019-12-04 00:46:27
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I need to enable ZipArchive php class on my localhost , How can I enable it !? add extension=zip.so to your php.ini if you already have it installed (not sure what OS you're on) Linux: pecl install zip Restart the web server once php.ini is edited. 来源: https://stackoverflow.com/questions/12477837/enable-ziparchive-on-localhost

uninitialized constant ApplicationRecord

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 00:27:08
I am working on the rails tutorial book online and I am getting the following error message when I go to http://localhost:3000/ "uninitialized constant ApplicationRecord" and it gives me the following code highlighting the first line. class User < ApplicationRecord attr_accessor :remember_token before_save { self.email = email.downcase } validates :name, presence: true, length: { maximum: 50 } VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i validates :email, presence: true, length: { maximum: 255 }, Here is my application.html.erb file: <!DOCTYPE html> <html> <head> <title><%= full

nodejs https Error: socket hang up with localhost

痴心易碎 提交于 2019-12-04 00:10:15
I have this small code snippet that targets an endpoint hosted on localhost var https = require('https'); var options = { hostname: 'localhost', port: 443, path: '/', method: 'GET', agent: false }; var req = https.request(options, function(res) { console.log("statusCode: ", res.statusCode); console.log("headers: ", res.headers); res.on('data', function(d) { process.stdout.write(d); }); }); req.end(); req.on('error', function(e) { console.error(e); }); and I always get the error: { [Error: socket hang up] code: 'ECONNRESET', sslError: undefined } It seems that the request is not even received

PHPSTORM_设置连接FTP,并快速进行文件比较,上传下载,同步等操作

青春壹個敷衍的年華 提交于 2019-12-04 00:08:53
Phpstorm除了能直接打开localhost文件之外,还可以连接FTP,除了完成正常的数据传递任务之外,还可以进行本地文件与服务端文件的异同比较,同一文件自动匹配目录上传,下载,这些功能是平常IDE,FTP软件中少见的,而且是很耗工作时间的一个操作。换句话说,在Webstorm/Phpstorm中操作ftp能找到原来版本控制的感觉。唯一的缺点是:上传,下载的打开链接要稍费时间,适合的场景在于单文件的编辑,这个如果网速够快一般可以忽略,而且就个人体验,虽然链接的速度稍慢,传输的速度并不慢。 1. 设置: 设置的入口有两处, a. Tools->Deployment->configruation b. File->Settings->Deployment->configruation 单击左上角加号新增一个FTP服务连接 然后配置FTP host,username,pwd等信息,配置好之后,可以Test FTP connection测试FTP是否连接成功。 然后点击Root path三点,如果有FTP服务端的目录读取出来,那就没问题,如果读取不出来,则在下面的Advanced options中选择Passive mode(被动模式)。 然后在Web server root URL中填写域名信息或者空间商提供的免费三级域名。 然后在Mappings 选择映射目录分别为本地

Ocelot简易教程(四)之请求聚合以及服务发现

浪尽此生 提交于 2019-12-04 00:02:04
上篇文章给大家讲解了Ocelot的一些特性并对路由进行了详细的介绍,今天呢就大家一起来学习下Ocelot的请求聚合以及服务发现功能。希望能对大家有所帮助。 作者:依乐祝 原文地址: https://www.cnblogs.com/yilezhu/p/9695639.html 请求聚合 Ocelot允许你声明聚合路由,这样你可以把多个正常的ReRoutes打包并映射到一个对象来对客户端的请求进行响应。比如,你请求订单信息,订单中又包含商品信息,这里就设计到两个微服务,一个是商品服务,一个是订单服务。如果不运用聚合路由的话,对于一个订单信息,客户端可能需要请求两次服务端。实际上这会造成服务端额外的开销。这时候有了聚合路由后,你只需要请求一次聚合路由,然后聚合路由会合并订单跟商品的结果都一个对象中,并把这个对象响应给客户端。使用Ocelot的此特性可以让你很容易的实现前后端分离的架构。 为了实现Ocelot的请求功能,你需要在ocelot.json中进行如下的配置。这里我们指定了了两个正常的ReRoutes,然后给每个ReRoute设置一个Key属性。最后我们再Aggregates节点中的ReRouteKeys属性中加入我们刚刚指定的两个Key从而组成了两个ReRoutes的聚合。当然我们还需要设置UpstreamPathTemplate匹配上游的用户请求

wamp cannot load mysqli extension

限于喜欢 提交于 2019-12-03 23:55:09
问题 WAMP installed fine, no problems, BUT... When going to phpMyAdmin, I get the error from phpMyAdmin as follows: Cannot load mysqli extension. Please check your PHP configuration Also, phpMyAdmin documentation explains this error message as follows: To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll.