master

git的安装与简单使用

拟墨画扇 提交于 2019-12-07 12:35:25
git: 分布式版本控制系统,git是一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理 git的安装 ①. 在Linux上安装 可以使用发行版包含的基础软件包管理工具来安装。 如果以 Fedora 上为例,你可以使用 yum: $ sudo yum install git 如果你在基于 Debian 的发行版上,请尝试用 apt-get: $ sudo apt-get install git ②. 在MAC上安装 http://git-scm.com/download/mac ③. 在windows上安装 http://git-scm.com/download/win 下载会自动开始 ssh -key 设置   安装git完成之后,打开Git,在Git命令行输入cd ~/.ssh检查电脑本机是否有ssh key设置,注意: .ssh是隐藏文件,一般在电脑C/用户/Administrator下面就能够找到。 一般情况下 ,之前没有用过git的同学电脑本机一般不会 有ssh key 的,下面我讲给大家介绍如何配置ssh key ①、 进入~ 路径下,必须保证当前路径在~路径下 ,在git命令行敲击 ssh-keygen -t rsa -C “邮箱地址” //建议写自己真实有效的邮箱地址。注意:在敲代码是不要将双引号也敲击进去。然后命令行会出现如下代码:

Redis之哨兵机制(五)

与世无争的帅哥 提交于 2019-12-07 12:07:29
什么是哨兵机制 Redis的哨兵(sentinel) 系统用于管理多个 Redis 服务器,该系统执行以下三个任务: · 监控(Monitoring): 哨兵(sentinel) 会不断地检查你的Master和Slave是否运作正常。 · 提醒(Notification):当被监控的某个 Redis出现问题时, 哨兵(sentinel) 可以通过 API 向管理员或者其他应用程序发送通知。 · 自动故障迁移(Automatic failover):当一个Master不能正常工作时,哨兵(sentinel) 会开始一次自动故障迁移操作,它会将失效Master的其中一个Slave升级为新的Master, 并让失效Master的其他Slave改为复制新的Master; 当客户端试图连接失效的Master时,集群也会向客户端返回新Master的地址,使得集群可以使用Master代替失效Master。 哨兵(sentinel) 是一个分布式系统,你可以在一个架构中运行多个哨兵(sentinel) 进程,这些进程使用流言协议(gossipprotocols)来接收关于Master是否下线的信息,并使用投票协议(agreement protocols)来决定是否执行自动故障迁移,以及选择哪个Slave作为新的Master. 每个哨兵(sentinel) 会向其它哨兵(sentinel)

【杭电1551】Cable master

好久不见. 提交于 2019-12-07 10:41:01
Cable master Time Limit: 1000 MS Memory Limit: 32768 KB 64bit IO Format: %I64d & %I64u Submit Status Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network

[POJ](1064)Cable master ---二分查找(查找)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 10:39:41
Cable master Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 50208 Accepted: 10558 Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network cables, the

poj1064 Cable master(二分)

本小妞迷上赌 提交于 2019-12-07 10:39:26
Cable master Time Limit: 1000MS Memory Limit: 10000K Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network cables, the Judging Committee has contacted a local

POJ 1064 - Cable master(二分)

怎甘沉沦 提交于 2019-12-07 10:38:18
Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a “star” topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network cables, the Judging Committee has contacted a local network solutions provider with a request to sell for

POJ 1064 Cable master(二分查找)

有些话、适合烂在心里 提交于 2019-12-07 10:36:46
Cable master Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 31900 Accepted: 6827 Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network cables, the

poj 1064 Cable master - 二分查找

倖福魔咒の 提交于 2019-12-07 10:36:08
Cable master Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was decided to connect computers for the contestants using a "star" topology - i.e. connect them all to a single central hub. To organize a truly honest contest, the Head of the Judging Committee has decreed to place all contestants evenly around the hub on an equal distance from it. To buy network cables, the Judging Committee has contacted a local network solutions provider with a

错误: 代理抛出异常错误: java.net.MalformedURLException: L...

别来无恙 提交于 2019-12-07 08:35:05
问题:错误: 代理抛出异常错误: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: Master.Hadoop: Master.Hadoop 解决: <!-- lang: php --> vim /etc/sysconfig/network HOSTNAME=Master.Hadoop vim /etc/hosts 127.0.0.1 localhost.localdomain localhost Master.Hadoo ::1 localhost6.localdomain6 localhost6 来源: oschina 链接: https://my.oschina.net/u/242853/blog/160424

LInux CentOS7 MySql 5.7.23主从复制(主从同步)

跟風遠走 提交于 2019-12-07 03:21:01
一、编辑主服务器mysql 配置文件 vim /etc/my.conf server-id=1 #服务器id (主从必须不一样) log-bin=mysql-bin #打开日志(主机需要打开),这个mysql-bin也可以自定义,这里也可以加上路径作为主机的配置 binlog-do-db=ifast-new2 #要给从机同步的库 #binlog-do-db= binlog-ignore-db=mysql #不给从机同步的库(多个写多行) binlog-ignore-db=information_schema binlog-ignore-db=performance_schema binlog-ignore-db=sys expire_logs_days=7 #自动清理 7 天前的log文件,可根据需要修改 二、设置成功 重启Mysql 服务 service mysqld restart 三、创建备份账号与测试log_bin是否成功开启 1.登录主数据库 show variables like '%log_bin%'; 2.设置备份账户信息 grant replication slave on *.* to 'backup'@'%' identified by '123456'; 3.查看快照 show master status\G 关闭主数据库的读取锁定 unlock