安装的时间顺序

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. linux-memcache安装及memcached memcache扩展

    linux memcached安装yum -y install libevent libevent-deve yum list memcached yum -y install memcached m ...

  2. sudo pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple ipython

    sudo pip install -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple ipython

  3. 利用CSS的translate属性或利用CSS实现图片居中的效果

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  4. 批处理遍历文件夹执行git pull

    echo off & color 0A for /d %%f in (D:\www\*) do ( D: cd %%f chdir git pull ) pause 遍历D:\www\这个文件 ...

  5. 牛客练习赛53E 老瞎眼 pk 小鲜肉(线段树)

    链接:https://ac.nowcoder.com/acm/contest/1114/E来源:牛客网题目:老瞎眼有一个长度为 n 的数组 a,为了为难小鲜肉,他准备了 Q 次询问,每次给出 一个区间 ...

  6. Qt带参数的信号和槽

    在Qt的开发过程中,信号带参数是很常见的,在使用带参数的信号槽时,有以下几点需要注意. 当信号和槽函数的参数数量相同时,它们的参数类型要完全一致. 信号和槽函数的声明: signals: void i ...

  7. java 中的编码(二)

    UTF-16编码规则: 按照UTF-16编码规则计算下Unicode码位为 U+10002 (十进制:65538)的字符的UTF-16编码表示. U+10002落在 [U+10000, U+10FFF ...

  8. js赋值后 改变现有数据会修改原来的数据

    看代码: let obj1 = { name: '张三', age: , sex: '男' } let obj2 = obj1 console.log('obj2:', obj2) obj2.age ...

  9. SDOI2010代码拍卖会 (计数类DP)

    P2481 SDOI2010代码拍卖会 $ solution: $ 这道题调了好久好久,久到都要放弃了.洛谷的第五个点是真的强,简简单单一个1,调了快4个小时! 这道题第一眼怎么都是数位DP,奈何数据 ...

  10. MySQL集群安装与配置

    MySQL集群安装与配置   文章目录 [隐藏] 一.mysql集群安装 二.节点配置 三.首次启动节点 四.测试服务是否正常 五.安全关闭和重启 MySQL Cluster 是 MySQL 适合于分 ...