摘要:
sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用 阅读全文
摘要:
Openstack部署实例: 硬件配置: 6个刀箱*每个24个刀片=144个物理刀片服务器 定制刀片,每个节点有双路12核CPU,64G的内存,两块千兆网卡,一块万兆网卡、1TB的SATA本地盘 充分利用每个节点的三块网卡,实现流量的隔离 千兆网卡:管理网、业务网 万兆网卡:存储网络,提高存储的访问带宽 软件配置: Openstack-N版 OS-3.8版本的Ubuntu 12.04 Ce... 阅读全文
摘要:
安全组Security Neutron为instance提供了两种管理网络安全的方法:安全组和虚拟防火墙 安全组原理:通过iptables对instance所在计算节点的网络流量进行过滤 虚拟防火墙原理:FWaaS,底层也是iptables,在Router上对网络包流量进行过滤 安全组的应用对象是虚拟网卡,由L2 Agent实现,比如LinuxBridge或者Open vswitch,安全... 阅读全文
摘要:
#指定service_plugins [root@master1 ~]# grep '^[a-z]' /etc/neutron/neutron.conf auth_strategy = keystone core_plugin = ml2 service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin ... 阅读全文
摘要:
控制节点的配置项: #使用core plugin使用ml2 [root@master1 ~]# grep '^[a-z]' /etc/neutron/neutron.conf auth_strategy = keystone core_plugin = ml2 service_plugins = #ml2加载指定网络类型 #加载指定的plugin-agent:Linuxbridge [roo... 阅读全文
摘要:
控制节点的配置项: #使用core plugin使用ml2 [root@master1 ~]# grep '^[a-z]' /etc/neutron/neutron.conf auth_strategy = keystone core_plugin = ml2 service_plugins = #ml2加载指定网络类型 #加载指定的plugin-agent:Linuxbridge [roo... 阅读全文
摘要:
#导入连接到host2的环境变量 [root@host1:~ [host2]]#eval $(docker-machine env host2) #查看docker的原生网络:桥接、本机、无三种 [root@host1:~ [host2]]#docker network ls NETWORK ID NAME DRIVER ... 阅读全文
摘要:
#安装docker-machine cupid@ubuntu:~$ pwd /home/cupid cupid@ubuntu:~$ ls Desktop docker-machine-Linux-x86_64 Documents Downloads examples.desktop Music Pictures Public Templates Videos cupid@ub... 阅读全文
摘要:
01.如何运行容器 #启动容器 -d 后台,--name指定容器运行的名称 root@ubuntu:~# docker run --name "my_httpd_server" -d httpd 8bd623b3e7b88c585f99aeab17e97c597e2e0193d65f581a61d0c58ebb0d6043 #查看容器 root@ubuntu:~# docker ps -a ... 阅读全文