RedHat linux7 虚拟化+集群安装精简手册

合集下载

Red Hat Linux 7.0为例说明安装过程

Red Hat Linux 7.0为例说明安装过程

以Red Hat Linux 7.0为例说明安装过程,如下:塞入第一张光盘,让计算机从CDROM启动,马上就出现了简洁的欢迎信息。

敲回车,可以进入默认的安装模式-图形界面,鼠标操作,基本和6.1、6.2类似。

敲入“text”,可以进入文本安装模式,和6.0以前的版本相似。

不支持鼠标,需要使用键盘操作,主要是为了兼容。

如果你的计算机使用图形模式不好用,比如,屏幕出奇的大,按钮怎么也找不到,那就使用此模式。

打入“expert”,可以进入所谓的专家模式,实际上就是安装程序把所有的步骤都交给了你,随遍你怎么设置,如果你的机器有些特殊的硬件,安装程序无法正确配置,那就试试这样的方式。

敲入“linux rescue”,会进入“救援”模式,主要用于原有的Linux系统无法正常启动的情况。

使用这个办法,实际上你是进入了一个微型的Linux系统,里面有许多可以用来拯救操作系统的工具程序。

如果你有特殊硬件的安装驱动盘,就敲入“linux dd”,它会提示你插入软盘,读取进系统。

以便更好的利用它们。

敲回车进入默认安装模式,内核启动后,出现语言选择选单,18种语言,可惜就是没有中文。

选“english”,再挑键盘,鼠标。

值得一提的是,我的双飞燕4D+鼠标自动的被认出三键。

要知道,第三键在Linux环境下的作用很大。

许多操作可以用它来实现,如果你没有三键鼠标,就使用模拟三键的方法,左右键同时按下,即表示第三键。

安装界面非常好用,左面有及时详尽的帮助信息,右面是选项。

完全鼠标操作。

在系统安装的阶段,最重要的事情是看清楚左面的说明!因为许多的朋友都有过惨痛的教训-漫不经心,结果,硬盘里面所有的东西都被干掉了,系统瘫痪。

简直欲哭无泪,好些人不停的到网上请教恢复的办法。

这里详细说明一下,RedHat 7.0有两大类安装方式:Install 或者upgrade。

前者包含下面三种选择:WorkStation、ServerSystem、Custem System。

RedHat7 zookeeper集群(含observer配置)安装

RedHat7 zookeeper集群(含observer配置)安装

一、服务器版本查看cat /etc/redhat-release二、新建目录:mkdir -p /softwares三、解压下载3.4.9版本,解压到/softwares目录cd /softwarestar zxvf zookeeper-3.4.9.tar.gz四、配置将conf目录下的zoo_sample.cfg改为zoo.cfgcd /softwares/zookeeper-3.4.9/confmv zoo_sample.cfg zoo.cfgmkdir -p /softwares/zookeeper-3.4.9/data查看配置cd /softwares/zookeeper-3.4.9/conf【yum install vim】vim zoo.cfg注意其中tickTime=2000dataDir=/softwares/zookeeper-3.4.9/dataclientPort=2181五、启动单机测试cd /softwares/zookeeper-3.4.9/bin(没有的话使用chmod u+x *.sh使以sh为扩展名的脚本都有运行权限) ./zkServer.sh start./zkServer.sh status使用命令./zkCli.sh -server 127.0.0.1:2181连接到zookeeper服务。

六、配置主机名和ip的映射vim /etc/hosts其中编辑增加如下内容192.168.18.202 logsrv01192.168.18.203 logsrv02192.168.18.208 logsrv03192.168.18.201 obsrv01七、配置Zookeeper的配置文件cd /softwares/zookeeper-3.4.9/bin./zkServer.sh stopcd /softwares/zookeeper-3.4.9/confvim zoo.cfg在clientPort=2181下增加如下内容server.1=logsrv01:2887:3887server.2=logsrv02:2888:3888server.3=logsrv03:2889:3889server.4=obsrv01:2886:3886:observerps: server.A=B:C:D:其中A 是一个数字,表示这个是第几号服务器;B 是这个服务器的ip 地址;C 表示的是这个服务器与集群中的Leader 服务器交换信息的端口;D 表示的是万一集群中的Leader 服务器挂了,需要一个端口来重新进行选举,选出一个新的Leader,而这个端口就是用来执行选举时服务器相互通信的端口。

RedHat LINUX安装全步骤(附图)

RedHat LINUX安装全步骤(附图)

LINUX软件安装步骤1.在Vmware 中创建一个Linux 的虚拟机版本是Red Hat Linux ,其中硬盘最少要有2GB 的空间(建议分4GB 其他硬盘,网卡的配置和Windows 虚拟机一样即可)。

2.把Vmware 的光驱制定到对应的镜像文件上,我们这里是linux iso 文件中的第一张盘。

3.启动虚拟机,由光盘进入。

在这个界面中输入linux text 后回车才能进入文本安装界面。

4.提示检测介质。

因为我们使用的是镜像文件,所以可以直接单击Skip 如果使用的是光盘最好还是检测一下比较好。

(在LINUX 文本模式中基本都是使用键盘进行操作,鼠标也支持但是不像在Windos 中那样好用。

用户可以通过Tab键和方向键来切换选项,空格和回车来确定)如果上面选择的是Skip就会直接跳到第8步。

5.开始检测。

如果是使用的光盘CD 需要先插入CD 后在Test 因为我们使用的是镜像文件所以就可以直接Test6.检测完毕。

选择OK7.提示是否检测其他的盘。

如果你为了保险起见可以继续检测,但是时间可能会长一些。

8.选择语言安装过程,在这里选择英语。

(如果选择的不是英语的话,在以后的一些提示显示中会出现乱码看不懂)9.选择键盘类型,在这里选择us 即可。

10.选择鼠标类型,在Linux 这类操作系统中,经常用到三键鼠标,因此,除了选择鼠标类型外,一般还选中下面的“Emulate 3 Buttons?”,这样同时点击鼠标左右键,代表点击中键。

11.选择安装类型。

在这里我们选择第4个Custom(定制)。

12.准备分区。

在这里选择Autopartition 。

13.这里会让用户选择如何处理硬盘上的原始分区。

因为我们是新建的所以选那个都无所谓,但是如果在已经安装好Windows 的系统上进行安装,一般选择第三项。

意思就是使用硬盘当中没有使用的空间来创建相应的分区。

在下面会让用户选择。

要安装到那个硬盘中,在这里只有一个硬盘sda ,所以直接选择即可。

redhat7安装图文教程

redhat7安装图文教程
redhat7安装图文教程 1.从光盘启动,选择"installred hat enterprise linux 7.0" 2.选择用那种语言进行安装 3.选择"date&time" 4.设置时区 5.选择语言支持 6.选择中文支持 7.对软件包进行选择 8.选择要安装的软件包 9.选择自动分区 10.选择开始安装 11.设置root用户密码 12.安装完成 13.点击license information 14.接受协议 15.设置kdump 16.进入登录界面 17.登录成功 2942b39d61 分享于 2020-08-02 16:44:10.0 redhat7安装图文教程 文档格式: .pdf 文档页数: 8页 文档大小: 794.65k 文档热度: 文档分类: 管理/人力资源 -- 管理学资料 文档标签: redhat7安装图文教程 系统标签: 图文 安装 教程 软件包 kdump 时区
13.点击 LICENSE INFORMATION 14.接受协议
15.设置 Kdump 16.进入登录界面 17.登录成功
1.从光盘启动,选择“install Red Hat Enterprise Linux 7.0" 2.选择用那种语言进行安装
3.选择”DATE&支持 6.选择中文支持
7.对软件包进行选择 8.选择要安装的软件包
9.选择自动分区 10.选择开始安装
11.设置 root 用户密码 12.安装完成

Linux操作系统(RHEL7/CentOS7)课件第1章 Linux简介与安装

Linux操作系统(RHEL7/CentOS7)课件第1章  Linux简介与安装
第1章 Linux简介与安装
一本好的入门教材可以让读者快速领悟Linux的操作方式和系 统的基本使用。
目前Linux的入门教材主要针对两类读者:非技术型、技术型。
非技术型读者:对Linux不是真的感兴趣,只是用Linux上网、 听音乐、编辑文档等。针对非技术型用户的入门教材以插图为主, 讲的内容主要是在GUI下的操作(鼠标),所以,这种使用Linux 的方式还是Windows的思维方式。
第1章 Linux简介与安装
1.1 Linux简介 1.2 实例—硬盘安装RedHat Enterprise Linux 7 1.3 引导工具GRUB的设置与应用 1.4 引导工具GRUB2的设置与应用 1.5 RHEL7的启动流程 1.6 本章总结 1.7 习题
本书的重点在前4章,只有学好前4章,读者 才算对Linux真正入门,后面几章的学习才会比 较轻松,甚至可以自学。随着读者学习、掌握越 来越多的计算机主要课程的相关知识,你就可以 在Linux的世界里纵深发展了。因此,本书是一 本比较好的入门教材。也希望读者在学习的过程 中重基础、重理论,切忌浮躁。
第1章 Linux简介与安装
技术型读者:对Linux很感兴趣,针脱离Windows的思维方式, 这样会给读者以后的进一步学习带来很大帮助,也能使读者逐步 领悟Linux的精髓(命令行)所在。
第1章 Linux简介与安装
本书针对的是技术型读者,主要是计算机专 业(或相关专业)的学生。
本章学习目标:
❖ 了解Linux的起源、特点、内核版本和发行版本的区别 ❖ 了解硬盘分区和MBR ❖ 理解计算机的启动顺序 ❖ 理解引导工具GRUB/GRUB2 ❖ 理解RHEL 7的详细启动流程 ❖ 熟练掌握RedHat Enterprise Linux 7的安装 ❖ 熟练掌握系统引导工具GRUB/GRUB2设置及使用

Red Hat Enterprise Linux 7.X LE ALT 安装指南说明书

Red Hat Enterprise Linux 7.X LE ALT 安装指南说明书

Installing Red Hat Enterprise Linux on IBM Power System IC922 (9183-22X) servers with virtual mediaQuick Start Guide for installing Linux® on IBM® Power® System IC922 (9183-22X) server.Version 1.0.0This guide helps you install Red Hat Enterprise Linux on IBM Power System IC922 (9183-22X) server.Note:© Copyright IBM Corp. 2020. US Government Users Restricted Rights - Use, duplication or disclosurerestricted by GSA ADP Schedule Contract with IBM Corp.IBM, the IBM logo, and ® are trademarks or registered trademarks of International BusinessMachines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the web at"Copyright and trademark information" (/legal/copytrade.shtml).About this taskOverviewUse this information to install Red Hat® Enterprise Linux 7.X LE ALT on a non-virtualized or bare metal IBM Power System IC922 (9183-22X) server.To install Red Hat Enterprise Linux on IBM Power System IC922 (9183-22X) servers by using virtualmedia, use a PC and access the BMC web page by using a browser. You can connect your PC to theOpenBMC port of the server over a configured network so that the service processor can read the .iso file from the PC during the installation of the operating system.For a list of supported distributions, see Supported Linux distributions for POWER8® and POWER9™ Linux on Power systems.Procedurepleting the prerequisites and booting your firmwareBefore you power on the system, ensure that you have the following items:•Ethernet cable.•USB Keyboard.–Power cords and outlet for your system.•SSH client.•PC or Notebook with Linux installed on it.•Notes:–You do not need an ssh client and a PC with Linux installed on it, if you are using a VGA screen andkeyboard.–You do not need a USB keyboard if you are using a serial connection.Complete these steps:•Download the ISO image of Red Hat Enterprise Linux 7.X LE ALT from the https:///products/red-hat-enterprise-linux/#addl-arch website to your computer that you use to access theOpenBMC by using a web browser. Take the link for Downloads for Red Hat Enterprise Linux forPower, little endian. Log into your Red Hat account (if you have not already done so). Select RedHat Enterprise Linux for Power 9 from the Product Variant list. Look for the Red Hat EnterpriseLinux for Power 9 (v. 7.x for ppc64le) ISO file. The downloaded ISO file will include rhel-alt......isorather than rhel....iso in the path name.•If your system belongs in a rack, install your system into that rack. For instructions, see IBM Power Systems information at https:///support/knowledgecenter/POWER9/p9hdx/POWER9welcome.htm.•Make one of the following connections:–Connect an Ethernet cable to the dedicated BMC Ethernet port that is located close to the USB 3.0 port and it is labeled M. Connect the other end to your PC or Notebook which you use to configure the IP address.–You can also connect to the serial port of the server by using a serial connection.•Attach the USB to serial (RS232) adapter cable to the IPMI serial 9-pin D-shell connector on the Power system.•Attach USB connection to USB port on either PC or Notebook.•Open a terminal emulator program such as PuTTY or minicom.•Set the communications to use the following options:–115200 baud rate–Data bits of 8–Parity of None–Stop bits of 1•Connect the power cords to the system and plug them into the outlets.At this point, your firmware is booting. Wait for the green LED on the power button to start flashing, indicating that it is ready to use. If your system does not have a green LED indicator light, then wait 1 -2 minutes.2.Configuring the IP addressNote: You can use either a serial connection or a keyboard and monitor to connect to the BMC. After the IP details are configured, you can use SSH connection. For more information, see Managing BMC-based systems.To set up or enable your network connection to the BMC firmware, use the Petitboot bootloader interface. Follow these steps:a.Your system will power on to the Petitboot bootloader menu. This process usually takes about 1 - 2minutes to complete, but might take 5 - 10 minutes on the first boot or after a firmware update. Do not walk away from your system! When Petitboot loads, your monitor becomes active and you will need to push any key to interrupt the boot process.b.At the Petitboot bootloader main menu, select Exit to Shell.c.Program your BMC IP address by running the following commands:Note: The shared BMC port is located near to the USB 3.0 port and it is labeled 1 and the dedicated BMC port is located next to the shared BMC port and it is labeled M.1)Set the mode to static by running this command: ipmitool lan set 2 ipsrc static2)Set your IP address by running this command: ipmitool lan set 2 ipaddr ip_addresswhere ip_address is the static IP address that you are assigning to this system.3)Set your netmask by running this command: ipmitool lan set 2 netmasknetmask_address where netmask_address is the netmask for the system.4)Set your gateway server by running this command: ipmitool lan set 2 defgw ipaddrgateway_server where gateway_server is the gateway for this system.5)For the shared BMC port run the following command: Run ipmitool lan print 16)For the dedicated BMC port run the following command: Run ipmitool lan print 2d.To reset your firmware, run the following command: ipmitool mc reset cold.e.You should be able to ping the BMC now. If your ping does not return successfully within areasonable amount of time (2 - 3 minutes), try these additional steps:1)Power your system off with this command from the petitboot shell: poweroff2)Unplug the power cords from the back of the system. Wait 30 seconds and then apply power toboot BMC.3.Creating a bootable virtual mediaa.Open a supported web browser. In the address bar, enter the IP address of the BMC that you wantto connect to. For example, you can use the format https://<BMC IP> in the address bar of the web browser.b.From the OpenBMC logon window, enter the Host address of the BMC and the username andpassword that is assigned to you.c.Then select Server control → Virtual Media to network-attach the ISO image to the IBM PowerSystem IC922 (9183-22X) server. After clicking Start, the ISO is available to the server to start the operating system installation process.4.Powering on your server by using a PC or NotebookNote: After your system powers on, the Petitboot interface loads. If you do not interrupt the boot process by pressing any key within 10 seconds, Petitboot automatically boots the first option.To power on your server from a PC or Notebook that is running Linux, follow these steps:a.Connect an Ethernet cable from the BMC port to a PC or Notebook. Or you can also make sure yourPC or Notebook is on the same network as the BMC firmware.b.Open a terminal program on your PC or Notebook.c.Log in to the BMC by running the following commands.ssh root@<BMC server_ip_address>root@<BMC server password>where BMC server_ip_address is the IP address of the BMC and BMC server password is thepassword to authenticate.Note: The default username is root and the default password is 0penBmc (where, 0penBmc is using a zero and not a capital O).d.To power on your server, run the following command:$ root@<BMC server_ip_address>:~# obmcutil powerone.Connect to OS console and use the default password 0penBmc.ssh -p 2200 root@<BMC server_ip_address>root@where BMC server_ip_address is the IP address of the BMC and BMC server password is thepassword to authenticate.5.Configuring PetitbootAfter the system powers on, the Petitboot bootloader scans local boot devices and network interfaces to find boot options that are available to the system.a.After you start the system, Petitboot displays the virtual media boot device, and you can select theboot entry, but do not start the installation. If you start the installation, you might not be able to finish the installation and the system might show errors similar to the following string:dracut-initqueue[3537]: Warning: dracut-initqueue timeout - starting timeoutscriptsNote: Select Rescan devices if the virtual media boot device does not appear.b.Record the UUID of the virtual media boot device. The UUID of the virtual media boot device in thefollowing example is 2018-10-10-22-13-55-00.Petitboot (v1.11) 9183-22X 78002BA____________________________________________________________________________________[USB: sdc / 2018-10-10-22-13-55-00]Rescue Red Hat Enterprise Linux Alternate Architectures system (64 bit keTest this media & Install Red Hat Enterprise Linux Alternate Architectures* Install Red Hat Enterprise Linux Alternate Architectures 7.6 (64 bit kernelSystem informationSystem configurationSystem status logLanguageRescan devicesRetrieve config from URLPluginsExit to shell___________________________________________________________________________________Enter = accept, e=edit, n=new, x=exit, l=language, g=log, h=helpc.Select Install Red Hat Enterprise Linux Alternate Architectures 7.6 (64 bit kernel) and press e(Edit) to open the Petitboot Option Editor window.d.Move the cursor to the Boot arguments section and add the following information: inst.textinst.stage2=hd:UUID=your_UUID where your_UUID is the UUID that you recorded.Petitboot Option Editor_______________________________________________________________________Device: ( ) sda2 [3cb1868c-7fd4-466a-a7b0-70942ca452cd](*) sdb1 [2018-10-10-22-13-55-00]( ) Specify paths/URLs manuallyKernel: /ppc/ppc64/vmlinuzInitrd: /ppc/ppc64/initrd.imgDevice tree:Boot arguments: ro inst.text inst.stage2=hd:UUID=2018-10-10-22-13-55-00[ OK ] [ Help ] [ Cancel ]________________________________________________________________________tab=next, shift+tab=previous, x=exit, h=helpe.Select OK to save your options and return to the Main menu.f.Verify that Install Red Hat Enterprise Linux Alternate Architectures 7.6 (64 bit kernel) isselected and then press Enter to begin your installation.pleting your installationAfter you select to boot the Red Hat Enterprise Linux 7.X LE ALT installer, the installer wizard walks you through the steps.a.Follow the installation wizard for Red Hat Enterprise Linux to set up disk options, your usernameand password, time zones, and so on. The last step is to restart your system.b.After the system restarts, Petitboot displays the option to boot the Red Hat Enterprise Linux releasenumber. Select this option and press Enter.Note: Be sure to check for firmware updates. See https:///support/knowledgecenter/ POWER9/p9ei8/p9ei8_fixes_kickoff.htmWhat to do nextMore informationFor more information, see the following resources:•IBM Knowledge Center at https:///support/knowledgecenter/.•IBM Power System IC922 (9183-22X) server Redbook at /redpapers/ pdfs/redp5584.pdf.•The Linux on Power developer portal at Linux on Power developer portal.。

Redhat7系统安装教程

Redhat7系统安装教程

Redhat7系统安装教程系统的安装部署过程第⼀个历程:进⼊系统引导界⾯进⾏配置引导项说明:1. 安装centos7系统(*)2. 测试光盘镜像并安装系统3. 排错模式(修复系统重置系统密码)===============================================补充:centos7系统⽹卡名称centos6默认系统的⽹卡名称为 eth0 eth1centos7默认系统的⽹卡名称为 ens33 ens34如何调整⽹卡名称:选择安装Install CenOS7--tab键 -- net.ifnames=0 biosdevname=0===============================================从虚拟主机返回到windows系统⽅法:ctrl+alt第⼆个历程:对安装系统语⾔进⾏设置第三个历程:对系统安装过程进⾏配置1. 系统⽹络的配置2. 系统分区的配置Linux系统磁盘分区知识简介:在分区之前,需要先简单介绍⼀下磁盘分区相关知识,便于⼤家更好地理解学习。

1)磁盘在使⽤前⼀般要先分区(相当于买房要有⼏居⼀样)。

2)磁盘分区有主分区、扩展分区和逻辑分区之分。

⼀块磁盘最多可以有4个主分区,其中⼀个主分区的位置可以⽤⼀个扩展分区替换,在这个扩展分区内可以划分多个逻辑分区。

3)如果规划的分区数量超过4个,则分区组合为3primary+1extend或2p+1e或1p+1e。

4)⼀块磁盘最多只能有⼀个扩展分区,扩展分区不能直接使⽤,必须在扩展分区上划分逻辑分区,然后格式化(创建⽂件系统),之后才能存取数据或装系统。

磁盘分区命名及编号⽅式(1)以设备名命名在Linux系统中,磁盘设备对应于系统中的特殊⽂件,这些特殊的⽂件存放在“/dev”⽬录中,不同的设备对应的设备名称如下:❑系统的第⼀块有IDE接⼝的硬盘称为/dev/hda。

❑系统的第⼆块有IDE接⼝的硬盘称为/dev/hdb。

RedHat7 FlumeNg安装

RedHat7 FlumeNg安装

一、服务器版本查看cat /etc/redhat-release二、新建目录:mkdir -p /softwares上传apache-flume-1.7.0-bin.tar.gz到/softwares三、解压cd /softwarestar zxvf apache-flume-1.7.0-bin.tar.gz四、配置文件创建flume-env.sh文件cp /softwares/apache-flume-1.7.0-bin/conf/flume-env.sh.template /softwares/apache-flume-1.7.0-bin/conf/flume-env.sh示例如下图:创建测试目录mkdir -p /softwares/data/logsmkdir -p /softwares/data/logs/channels/a1/checkpointmkdir -p /softwares/data/logs/channels/a1/datamkdir -p /softwares/data/local/collectormkdir -p /softwares/data/logs/channels/a2/checkpointmkdir -p /softwares/data/logs/channels/a2/data创建配置文件cp /softwares/apache-flume-1.7.0-bin/conf/flume-conf.properties.template /softwares/apache-flume-1.7.0-bin/conf/flume.confvim /softwares/apache-flume-1.7.0-bin/conf/flume.conf查看被占用的PIDnetstat -aon | grep "4545"在文件末尾加入以下配置:# Agent a1a1.sources = r1a1.sinks = k1a1.channels = c1# source 配置a1.sources.r1.type = execmand = tail -F /softwares/data/logs/system.log# sink 配置a1.sinks.k1.type=avroa1.sinks.k1.hostname=192.168.18.200a1.sinks.k1.port=4545# channel 配置a1.channels.c1.type = filea1.channels.c1.checkpointDir=/softwares/data/logs/channels/a1/checkpointa1.channels.c1.dataDirs = /softwares/data/logs/channels/a1/data# 绑定source、single到channel上a1.sources.r1.channels = c1a1.sinks.k1.channel = c1#ageng a2a2.sources=r2a2.sinks=k2a2.channels=c2#a2 source 配置a2.sources.r2.type=avroa2.sources.r2.bind=0.0.0.0 # 使用0.0.0.0表示绑定机器所有的接口a2.sources.r2.port=4545#a2 sink 配置将合并后的日志数据写到/softwares/data/local/collector目录下a2.sinks.k2.type = file_rolla2.sinks.k2.sink.directory = /softwares/data/local/collectora2.sinks.k2.sink.rollInterval=3600##下面是注释掉的代码为配置sink ,日志按天合并后保存到单独的文件夹中#a2.sinks.k2.type=hdfs#a2.sinks.k2.hdfs.path=hdfs://hadoop-master:9000/events/%y-%m-%d#a2.sinks.k2.hdfs.filePrefix=events-#a2.sinks.k2.hdfs.rollInterval=0#a2.sinks.k2.hdfs.rollSize=0#a2.sinks.k2.hdfs.rollCount=0#eLocalTimeStamp=true#a2 channel配置a2.channels.c2.type = filea2.channels.c2.checkpointDir=/softwares/data/logs/channels/a2/checkpoint a2.channels.c2.dataDirs = /softwares/data/logs/channels/a2/data# 绑定source、single到channel上a2.sources.r2.channels=c2a2.sinks.k2.channel=c2scp -r /softwares/apache-flume-1.7.0-bin 192.168.18.200:/softwares/scp -r /softwares/apache-flume-1.7.0-bin 192.168.18.205:/softwares/五、生成测试数据的python小程序cd /softwares/apache-flume-1.7.0-bin/binvim runTestLog.py#!/usr/bin/pythonimport osimport randomfrom time import ctime,sleepfor i in range(1,1000000):smil=random.randint(50,100)print smil/1000.0com="echo \"hello message from 192.168.18.200\t"+str(i)+"\">>/softwares/data/logs/system.log";print comos.system(com)sleep(smil/1000.0)运行python runTestLog.py六、运行在192.168.18.200上使用下面命令启动Agent2(a2)cd /softwares/apache-flume-1.7.0-bin/bin./flume-ng agent --conf /softwares/apache-flume-1.7.0-bin/conf --conf-file /softwares/apache-flume-1.7.0-bin/conf/flume.conf --name a2 -Dflume.root.logger=INFO,console &在192.168.18.200另启动一个终端,运行下面命令启动Agent1(a1)cd /softwares/apache-flume-1.7.0-bin/bin./flume-ng agent --conf /softwares/apache-flume-1.7.0-bin/conf --conf-file /softwares/apache-flume-1.7.0-bin/conf/flume.conf --name a1 -Dflume.root.logger=INFO,console &分别在192.168.18.204~205上同样启动Agent1(a1)cd /softwares/apache-flume-1.7.0-bin/bin./flume-ng agent --conf /softwares/apache-flume-1.7.0-bin/conf --conf-file /softwares/apache-flume-1.7.0-bin/conf/flume.conf --name a1 -Dflume.root.logger=INFO,console &。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

RedHat linux7 虚拟化+集群安装精简手册
redhatlinux7-虚拟化+集群安装精简手册
RedHat Linux X7虚拟化环境群集安装手册
1、前期准备挂载磁盘
/*通过使ISO便于后续安装操作,ISO映像系统*/ddif=/dev/sr0of=/APP/rh71应在知识库isomount oloop/APP/rh71中形成。

ISO/MNT安装
mount-loop/dev/sr0/mnt
看看丢失了什么包裹
/*如果想要是用vgscan指令,系统至少需要安装lvm2包,这个从安装好的系统上查*/[root@jttldb1host5]#rpm-qf/sbin/vgscanlvm2-2.02.83-3.el6.x86_64
通用软件包安装
net-tools(ifconfig等用)
Yum-yinstallnautilus-open-terminal(右击可添加终端)
配置yum
/*调整*/build file/etc/yum。

Com根据具体的安装路径和版本进行重新安装。

d/mycdrom。

回购[基础]
name=rhel
baseurl=file:///mntenabled=1gpgcheck=0[cluster]name=rhel
baseurl=file:///mnt/addons/highavailabilityenabled=1gpgcheck=0
配置IP
ipaddr=10.88.89.100gateway=10.88.89.1netmask=255.255.255.0onboot=yes
在一张网卡上配置多个IP地址
ifconfigteam0:010.88.89.101netmask255.255.255.0(临时添加一个ip,重启后消失,如果想永久拥有,需要配置ifcfg-ens32:0文件)临时文件取消:
ifconfigens32:0down
网卡绑定
1)创建组接口(会生产一个ifcfg-team0)nmcliconaddtypeteamcon-
nameteam0ifnameteam0'{\
NMCLICondalTeam0(删除绑定团队)2)查看组接口配置NMCLICondShow
3)给组接口添加设备
nmcliconaddtypeteam-slavecon-nameteam0-
Port1IfNameP11S0F0MasterTeam0NMCLICONAddTypeTeam-slavecon-nameteam0-
Port2IfNameP16S0F0MasterTeam0NMCLICONModTypeTeam-slavecon-nameteam0-
Port2IfNameP16S0F0MasterTeam0
4)配置ip
[ root@jttldb2network-scripts]#moreifcfg-team0device=team0devicetype=team
team_config=\bootproto=noneipaddr=10.88.89.100prefix=25
网关=10.88.89.1电子线路=是
ipv4_failure_fatal=yesipv6init=yes
ipv6_uuAutoConf=yesipv6_uuDefRoute=yes
config
ipv6\uPeernds=yesipv6\uPeerRoutes=yesipv6\uFailure\uFatal=noname=team0
uuid=afa9d1a3-05d8-4cad-af44-fd187c5be16fonboot=yes查看网卡状态
TeamDctLTEAM0状态验证
nmclidevdiseno断开nmclidevconeno连接
操作系统版本查询
lsb_release-a
需要安装包(yuminstallredhat LSB)
起停服务
SystemCtlStopFirewallDSystemCtlStartDirectWallDSystemCtlStatus FirewallDSystemCtl | grep
是否开机启动
Systemctlenablexxx启动系统CtlDisableXXX启动系统CtlStatusXXX未启动系统CtlStatusXXX查看状态
关闭防火墙
[ root@localhost~]#SystemCtlStopFirewall
D[root@localhost~]#systemctldisablefirewalld
关闭selinux
[ root@localhost~]#VI/etc/sysconfig/SELinux将SELinux=强制执行改为SELinux=禁用[root@localhost~]#重新启动视图#getenforce
临时关闭#setenforce0
LVM配置
虚机上共享磁盘配置要求磁盘置备:厚置备置零磁盘模式:独立持久
在HA1上,
创建pv、vg、lv挂载文件系统,在ha2上重启系统即可识别vg信息
修改主机名:
linu7通过hostname临时修改主机名,加hostnamectlstatic修改静态主机名的方式实现永久生效主机名(修改主机名后注意修改hosts)hostname
hostnamectl--staticset-hostnamelinux7-ha2
而在linux7之前是没有hostnamectl命令的,永久修改主机名的方式是通过hostname加修改/etc/sysconfig/network文件的方式
配置VNC连接
rehhat7
1)安装包
yuminstalltigervnc-server
创建登录密码:#vncserver
2)配置vnc
cp/lib/systemd/system/vncserver@.service/etc/systemd/system/vncserver@:1。

服务
替换文件
#将类型=分叉改为类型=简单
3)重启systemd
systemctldaemon重新加载
4)启动vcn
systemctlstartvncserver@:1。

servicesystemctlstatusvncserver@:1。

服务永久启动
systemctlenablevncserver@:1.service5)关闭vnc
systemctlstopvncserver@:1。

启动后服务不会启动
systemctldisablevncserver@:1.service
客户
服务器段需要关闭防火墙,或修改过滤
2.Oracle静默安装
安装必要的包
静默安装Oracle
修改./database/response/db_install.rspdb_install.rsp如下内容
oracle.install.option=install_db_swonly。

相关文档
最新文档