安装的时间顺序

bit3 192.168.107.128

wredis 192.168.107.129

wmysql 192.168.107.130

wslave 192.168.107.131

w

0-Ubuntu 64 -bit(3)

1-3

wredis

wmysql

wslave

0-一键安装ubuntu-16.iso

1-wslave sudo passwd

  root

2-root

  apt-get upgrade  比较耗时

  apt install ssh

目的:

  mongo

  msyql

  redis

  master slave 主从复制实战

3 ifconfig 查ip xshell 连接

集群

更多的虚拟机

dooker 来替代上述012 避免重复,提高核心问题的时间比重

w

arp -a

目的

Connecting to 192.168.107.128:...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'. Welcome to Ubuntu 16.04. LTS (GNU/Linux 4.4.--generic x86_64) * Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Tue May ::
wuser@ubuntu:~$

well@well:~$ ps -e
PID TTY TIME CMD
? :: bash
? :: sshd
? :: sshd
? :: sshd
pts/ :: bash
? :: mongod
? :: sshd
? :: sshd
pts/ :: bash
pts/ :: ps
well@well:~$ ps -e | grep ssh
? :: sshd
? :: sshd
? :: sshd
? :: sshd
? :: sshd
well@well:~$ netstat -ntlp
(No info could be read for "-p": geteuid()= but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 127.0.0.11: 0.0.0.0:* LISTEN -
tcp 127.0.0.1: 0.0.0.0:* LISTEN -
tcp 127.0.0.1: 0.0.0.0:* LISTEN -
tcp 0.0.0.0: 0.0.0.0:* LISTEN -
tcp6 ::: :::* LISTEN -
well@well:~$

well@well:~$ ssh
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port]
[-Q cipher | cipher-auth | mac | kex | key]
[-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] [user@]hostname [command]
well@well:~$ sudo apt-get install ssh
[sudo] password for well:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ssh is already the newest version.
upgraded, newly installed, to remove and not upgraded.
well@well:~$

查看linux ssh服务信息及运行状态 - 零一小筑 - 51CTO技术博客
http://jetyi.blog.51cto.com/1460128/997221

well@well:~$ ifconfig
eth0 Link encap:Ethernet HWaddr ::0a:::
inet addr:10.0.0.2 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80:::aff:fe00:/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (56.1 MB) TX bytes: (4.7 MB) lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::/ Scope:Host
UP LOOPBACK RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (72.3 KB) TX bytes: (72.3 KB)

w

https://www.freebsd.org/doc/zh_CN.UTF-8/books/handbook/network-bridging.html

ubuntu-16.04.2-server-amd64.iso

Q
VMware虚拟机无法连接外网问题
A
0-虚拟机网卡属于桥接模式
1-关闭虚拟机
2-重置虚拟机网络 restore

C:\>arp -a

Interface: 192.168.95.251 --- 0xc
Internet Address Physical Address Type
192.168.95.1 bc--0e-0a-de- dynamic
192.168.95.20 -0c--b7-ca- dynamic
192.168.95.100 -a0--7d-b8-6b dynamic
192.168.95.236 -e0--1a-b9- dynamic
192.168.95.248 3c--0e-ab-cf-7a dynamic
192.168.95.252 -cf-e0--- dynamic
192.168.95.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 --5e--- static
224.0.0.251 --5e---fb static
224.0.0.252 --5e---fc static
224.0.0.253 --5e---fd static
230.0.0.3 --5e--- static
239.192.152.143 --5e---8f static
239.255.255.250 --5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static Interface: 192.168.19.1 --- 0x15
Internet Address Physical Address Type
192.168.19.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 --5e--- static
224.0.0.251 --5e---fb static
224.0.0.252 --5e---fc static
239.255.255.250 --5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static Interface: 192.168.107.1 --- 0x16
Internet Address Physical Address Type
192.168.107.254 ---f7-- dynamic
192.168.107.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 --5e--- static
224.0.0.251 --5e---fb static
224.0.0.252 --5e---fc static
239.255.255.250 --5e-7f-ff-fa static
255.255.255.255 ff-ff-ff-ff-ff-ff static Interface: 169.254.97.165 --- 0x19
Internet Address Physical Address Type
169.254.255.255 ff-ff-ff-ff-ff-ff static
224.0.0.22 --5e--- static
224.0.0.251 --5e---fb static
224.0.0.252 --5e---fc static
224.0.0.253 --5e---fd static
239.192.152.143 --5e---8f static
239.255.255.250 --5e-7f-ff-fa static
well@well:/$ arp
Address HWtype HWaddress Flags Mask Iface
10.0.0.1 ether :::2e:: C eth0
well@well:/$

docker 提高效率 network-bridging 桥接的更多相关文章

  1. 【转】.NET程序员提高效率的70多个开发工具

    原文:.NET程序员提高效率的70多个开发工具 工欲善其事,必先利其器,没有好的工具,怎么能高效的开发出高质量的代码呢?本文为各ASP.NET 开发者介绍一些高效实用的工具,涉及SQL 管理,VS插件 ...

  2. Docker 配置固定IP及桥接的实现方法(转载)

    这篇文章主要介绍了Docker 配置固定IP和桥接的实现方法的相关资料,这里详细介绍了Docker 的四种网络模式及如何实现桥接的案例,需要的朋友可以参考下 docker默认使用bridge模式,通过 ...

  3. KVM Network Bridging

    from http://hzqtc.github.io/2012/02/kvm-network-bridging.html http://wiki.ubuntu.org.cn/Kvm_%E7%BD%9 ...

  4. 《.NETer提高效率——环境部署》

    初衷 兵马未动,粮草先行. 电脑坏了or换工作等需要重装系统. 开发运维一把梭. 与时俱进. 记忆力差,需要文字记录. 因为懒... 目的 通过学习 Linux+docker+kubernetes+C ...

  5. Oracle多表连接,提高效率,性能优化 (转)

    执行路径:ORACLE的这个功能大大地提高了SQL的执行性能并节省了内存的使用:我们发现,单表数据的统计比多表统计的速度完全是两个概念.单表统计可能只要0.02秒,但是2张表联合统计就可能要几十表了. ...

  6. 提高效率的Matlab使用方式

    1.花一点时间学习一些提高效率的技巧永远是值得的: 2.总结和记录永远是必要的. Command窗口: Editor窗口: 1.Tab自动补全

  7. paip.提高效率---集合的存取括号方式 uapi java python php js 的实现比较

    paip.提高效率---集合的存取括号方式 uapi java python php js 的实现比较 ##java ----------- 在JDK1.7中,摒弃了Java集合接口的实现类,如:Ar ...

  8. paip.提高效率---微信 手机app快速开发平台—微网络撬动大市场

    paip.提高效率---微信 手机app快速开发平台-微网络撬动大市场   手机app快速开发平台 尤其适合crm系统,呼叫中心等业务功能...    作者Attilax  艾龙,  EMAIL:14 ...

  9. oracle里要查看一条sql的执行情况,有没有走到索引,怎么看?索引不能提高效率?

    index scan 索引扫描 full table scan是全表扫描 直接explain plan for 还有个set autotrace什么 索引一定能提高执行效率吗? 索引不能提高效率的情况 ...

随机推荐

  1. (Windows)Python第三方库手动安装教程(以lxml库为例)

    案例前提:已安装Python 已安装pip 1.进入官网https://www.lfd.uci.edu/~gohlke/pythonlibs/,搜索lxml库,下载到本地(放到Python目录下的Sc ...

  2. python中输入三个整数x,y,z,请把这三个数由小到大输出。

    输入三个整数x,y,z,请把这三个数由小到大排序,再把数组由大到小排序,再输出最大值和最小值! #定义一个空数组 numbers = [] #循环遍历,下面的4是控制循环次数 for i in ran ...

  3. HNUSTOJ-1695 跳格子(略感头疼)

    1695: 跳格子 时间限制: 1 Sec  内存限制: 128 MB提交: 230  解决: 57[提交][状态][讨论版] 题目描述 逸夫楼的大厅的地面有10行10列的石砖,我们用坐标(x,y)来 ...

  4. P2218 [HAOI2007]覆盖问题

    传送门 首先可以想到二分答案,然后考虑判断 注意到所有点的外包矩形的四条边一定要被覆盖到,而正方形只有 $3$ 个,所以一定有一个正方形在角落 考虑爆搜,枚举正方形在当前外包矩形的那个角,然后对剩下的 ...

  5. wordpress添加index页面跳转链接

    1. 制作page页面 1.1 在themes下的主题目录新建一个page页面 1.2 在wordpress后台新建页面跟在目录页面中相同名字的页面文件 1.3 复制后台页面中的古定链接 1.4 在i ...

  6. 04-Django-templates

    # 模板系统 - 模板:一组相同或者相似的页面,在需要个性化的地方进行留白,需要的时候只是用数据填充就可以使用 - 步骤: 1. 在settings中进行设置:TEMPLATES 2. 在tmeplt ...

  7. Scala学习笔记(6)对象

    1.单例对象.Scala没有静态方法或字段,可以使用object这个语法结构来达到同样的目的.对象定义了单个实例,包含了你想要的特性. object Accounts{ def newUniqueNu ...

  8. AFNetworking2.0源码解析<一>

    本篇先看看AFURLConnectionOperation,AFURLConnectionOperation继承自NSOperation,是一个封装好的任务单元,在这里构建了NSURLConnecti ...

  9. MySQL索引优化(索引三表优化案例)

    建表SQL phone.book表建立索引 [关联优化查询建议] 1.保证被驱动表的join字段已经被索引 被驱动表  join 后的表为被驱动表  (需要被查询) 2.left join 时,选择小 ...

  10. 关于Mysql 修改密码的记录

    初次安装后完毕,使用管理员身份进入cmd界面, 输入" mysql -u root -p",出现"Enter password:",直接回车输入" s ...