你的位置:首页 > 云计算大数据

FULE9.0系统安装完成后需要做的配置

2年前 (2017-06-22) 浏览:(565) 云计算大数据 评论(0)

1、修改网络配置

cd /etc/sysconfig/network-scripts/

[root@fuel network-scripts]# vim ifcfg-eth0

# *********************************************************************

# This file is being managed by Puppet. Changes to interfaces

# that are not being managed by Puppet will persist;

# however changes to interfaces that are being managed by Puppet will

# be overwritten.

# *********************************************************************

BOOTPROTO=none

IPADDR=10.20.0.2

DEVICE=eth0

ONBOOT=yes

TYPE=Ethernet

PREFIX=24


[root@fuel network-scripts]# vim ifcfg-eth1

# *********************************************************************

# This file is being managed by Puppet. Changes to interfaces

# that are not being managed by Puppet will persist;

# however changes to interfaces that are being managed by Puppet will

# be overwritten.

# *********************************************************************

BOOTPROTO=none

IPADDR=192.168.1.119

DEVICE=eth1

ONBOOT=yes

TYPE=Ethernet

PREFIX=24

GATEWAY=192.168.1.1

[root@fuel network-scripts]# vim ifcfg-eth2

# *********************************************************************

# This file is being managed by Puppet. Changes to interfaces

# that are not being managed by Puppet will persist;

# however changes to interfaces that are being managed by Puppet will

# be overwritten.

# *********************************************************************

BOOTPROTO=none

IPADDR=172.16.0.254

DEVICE=eth2

ONBOOT=yes

TYPE=Ethernet

PREFIX=24

[root@fuel network-scripts]# vim ifcfg-eth3

# *********************************************************************

# This file is being managed by Puppet. Changes to interfaces

# that are not being managed by Puppet will persist;

# however changes to interfaces that are being managed by Puppet will

# be overwritten.

# *********************************************************************

BOOTPROTO=none

IPADDR=192.168.4.254

DEVICE=eth3

ONBOOT=yes

TYPE=Ethernet

PREFIX=24

[root@fuel network-scripts]# 

[root@fuel ~]# vi /etc/resolv.conf 

search abaoyun.local

domain abaoyun.loal

nameserver 223.5.5.5

nameserver 10.20.0.2

nameserver 10.20.0.1


2、配置防火墙


#添加防火墙规则使我们可以通过SSH连接本机,因为都windows客户端在此网段,所以需此配置。

iptables -A INPUT -i eth1 -p tcp -s 192.168.1.0/24 --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT

#保存防火墙规则

/usr/libexec/iptables/iptables.init save


3、下载并完成上传


链接: https://pan.baidu.com/s/1qYHLZIk 密码: e7cc

链接: https://pan.baidu.com/s/1c2ByWI8 密码: ctcy


测试网络连通情况并安装unzip工具

[root@fuel ~]# ping www.baidu.com

PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.

64 bytes from 14.215.177.38: icmp_seq=1 ttl=46 time=51.0 ms

64 bytes from 14.215.177.38: icmp_seq=2 ttl=46 time=48.2 ms

64 bytes from 14.215.177.38: icmp_seq=3 ttl=46 time=49.7 ms

[root@fuel ~]# yum install -y unzip



4、导入bootstrap


[root@fuel ~]# cd /var/www/nailgun/

[root@fuel nailgun]# ls

bootstraps             bootstraps.zip  dump        extra-repos  mirrors.zip  mos-centos    ubuntu

bootstraps-bak.tar.gz  centos          error.html  index.html   mitaka-9.0   targetimages

[root@fuel nailgun]# unzip bootstraps.zip 

Archive:  bootstraps.zip

replace bootstraps/active_bootstrap/initrd.img? [y]es, [n]o, [A]ll, [N]one, [r]ename: A

 extracting: bootstraps/active_bootstrap/initrd.img  

  inflating: bootstraps/active_bootstrap/metadata.yaml  

 extracting: bootstraps/active_bootstrap/root.squashfs  

  inflating: bootstraps/active_bootstrap/vmlinuz  

 extracting: bootstraps/bootstrap_stub/initrd.img  

 extracting: bootstraps/bootstrap_stub/vmlinuz  

   creating: bootstraps/d01c72e6-83f4-4a19-bb86-6085e40416e6/

 extracting: bootstraps/d01c72e6-83f4-4a19-bb86-6085e40416e6/initrd.img  

  inflating: bootstraps/d01c72e6-83f4-4a19-bb86-6085e40416e6/metadata.yaml  

 extracting: bootstraps/d01c72e6-83f4-4a19-bb86-6085e40416e6/root.squashfs  

  inflating: bootstraps/d01c72e6-83f4-4a19-bb86-6085e40416e6/vmlinuz 

  

[root@fuel nailgun]# fuel-bootstrap activate d01c72e6-83f4-4a19-bb86-6085e40416e6

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Bootstrap image d01c72e6-83f4-4a19-bb86-6085e40416e6 has been activated.

[root@fuel nailgun]# fuel-bootstrap list

+--------------------------------------+--------------------------------------+--------+

| uuid                                 | label                                | status |

+--------------------------------------+--------------------------------------+--------+

| d01c72e6-83f4-4a19-bb86-6085e40416e6 | d01c72e6-83f4-4a19-bb86-6085e40416e6 | active |

+--------------------------------------+--------------------------------------+--------+


5、切换到本地镜像


运行 Fuel-createmirror命令,此命令目的是让web后台管理界面的源地址变为本地地址.

[root@fuel nailgun]# unzip mirrors.zip 

[root@fuel nailgun]# fuel-createmirror

This script is DEPRECATED. Please use fuel-mirror utility!

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

loading packages from mos9.0-holdback.restricted ...

loaded: 0 packages from mos9.0-holdback.restricted.

loading packages from mos9.0-holdback.main ...


-----------------------------------------------


KeyboardInterrupt

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Starting new HTTP connection (1): 10.20.0.2

Updating the Cluster repositories...

Updating the release repositories...

Try to update the Release 'Mitaka on Ubuntu 14.04'

Try to update the Release 'Mitaka on Ubuntu+UCA 14.04'

Operations have been completed successfully.

尊重共享,欢迎转载,请自觉添加本文链接,谢谢!本文链接:https://www.601849.com/post/260.html