《智慧消防项目部署运维手册.docx》由会员分享,可在线阅读,更多相关《智慧消防项目部署运维手册.docx(19页珍藏版)》请在第壹文秘上搜索。
1、智慧消防项目部署运维手册XX科技股份有限公司编制目录一、文章编写目的5二、前置准备52.1 配置网络ip52.2 编写相关操作脚本91. 批量执行命令脚本92. 批量重命名脚本113. 批量拷贝脚本134. cm_migrate,sh155. format2.sh166. mountDisk.sh167. network,sh178. node,1.ist189. node,txt182. 3hostname及hosts配置181.配置每台节点的hostname182.配置节点ip、hostname映射192.4 禁用SE1.inux192.5 关闭防火墙212.6 设置Swappiness2
2、12.7 关闭透明大页面222.8 配置操作系统本地yum源232.9 安装http服务25这里注意,因为律态ip地址设置为192.168.139.101,因此默认网关和DNS地址前面部分,即192.168.139必须相同,不然会出现无法Ping通的情况SVICE=ethOHWADDr=OO:0C:29:14:8B:FATYPE=EthernetUID=63af865f-878d-4d93-8284-85d60af589bbIDNBOOT=yes1NM_CONTRO1.1.ED=yesbPRQTQ=staticI1.PAK=1.Z.1.b.1.IUU5ATEWAY=192,168.1.2)NS
3、1=114.114.114.114)NS2=8.8.8.8重启网络服务使ip生效servicenetworkrestart如果报错,reboot重启虚拟机三台节点配置的ip分别为:192.168.1.131,192.168.1.132.192.168.1.133注意:每台节点克隆后需要删除每台节点e1.cudevru1.es.d70-PCrSiStCnt-net.ru1.es文件,清除mac地址。重启每台节点即可。节点克隆后还可以使用以下方式修改mac地址Inorderto1.ogintoMariaDBtosecureit,we1.1.needthecurrentpasswordforther
4、ootuser.Ifyou,vejustinsta1.1.edMariaDB,andyouhaventsettherootpasswordyet,thepasswordwi1.1.beb1.ank,soyoushou1.djustpressenterhere.Entercurrentpasswordforroot(enterfornone):力回车OK,successfu1.Iyusedpassword,movingon.Settingtherootpasswordensuresthatnobodycan1.ogintotheMariaDBrootuserwithouttheproperaut
5、horisation.Setrootpassword?YnYNewpassword:Re-enternewpassword:Passwordupdatedsuccessfu1.1.y!Re1.oadingprivi1.egetab1.es.Success!nyonecanaccess.Thisisa1.sointendedon1.yfortesting,andshou1.dberemovedbeforemovingintoaproductionenvironment.Removetestdatabaseandaccesstoit?YnYDroppingtestdatabase.Success!
6、-Removingprivi1.egesontestdatabase.Success!Re1.oadingtheprivi1.egetab1.eswi1.1.ensurethata1.1.changesmadesofarwi1.1.takeeffectimmediate1.y.Re1.oadpriviIcgctab1.esnow?YnYSuccess!C1.eaningup.A1.1.done!Ifyouvecomp1.eteda1.1.oftheabovesteps,yourMariaDBinsta1.1.ationshou1.dnowbesecure.CREATEUSERcm,%,IDEN
7、TIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONcm.*TO,cm,0%,;F1.USHPRIVI1.EGES;createdatabaseamdefau1.tcharactersetutf8;CREATEUSER,amQ,%,IDENTIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONam.*TOam,%;F1.USHPRIVI1.EGES;createdatabasermdefau1.tcharacterseiutf8:CREATEUSERrmQ,%,IDENTIFIEDBYpassword:GRANTA1.1.PRIVI1.EG
8、ESONrm.*TOrm,%,;F1.USHPRIVI1.EGES;createdatabasehuedefau1.tcharactersetutf8;CREATEUSERhue1%IDENTIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONhue.*TOhue%;F1.USHPRIVI1.EGES;createdatabaseooziedefau1.tcharactersetutf8;CREATEUSER,oozie,%,IDENTIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONoozie.*TO,oozie,%;F1.USHPRIV
9、I1.EGES;createdatabasesentrydefau1.tcharactersetutf8;CREATEUSERsentry10%IDENTIFIEDBYpassword,;GRANTA1.1.PRIVI1.EGESONsentry.*TOsentrye%;F1.USHPRIVI1.EGES;createdatabasenav_msdefau1.tcharactersetutf8;CREATEUSER,navms侦%IDENTIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONnav_ms.*TOnavjns速*:F1.USHPRIVI1.EGES;cr
10、eatedatabasenav_asdefau1.tcharactersetutf8;CREATEUSER,nav.as,e%IDENTIFIEDBYpassword;GRANTA1.1.PRIVI1.EGESONnav_as.*TOnav-ase%,:F1.USHPRIVI1.EGES;安装jdbc驱动mkdir-Psrsharejavanv11ysq1.-connector-java-5.1.34.jar/usrsharejava/Cdusrshare/javaIn-smysq1.-connector-java-5.1.34.jarmysq1.-connector-java,jarootn
11、ode1.java#11tota1.940rwxrwxr-x.1rootroot960372Feb108:31mysq1.-connector-java-5.1.34.jarInvxrwxrwx1rootroot31Feb200:52mysq1.-conncctor-java.jar-mysq!-connector-java-5.1.34.jar三、C1.ouderaManager安装3.1配置本地CM源下载CM516.1的安装包,地址为:http:/archive,http:/archive,http:/archive,http:/archive,http:/archive,rpmhttp:
12、/archive,cm5rec1.hat7x8664cm5.16.1/RPMS/x86_64/jdk-6u31-1inux-amd64.rpnhttp:/archive,下载CDH5.16.1的安装包,地址为:http:/archive.c1.oudera.eom/cdh5/parce1.s/5.16.1/CDH-5.16.1-1.cdh5.16.1.p.3-e1.7.parce1.http:/archivc.c1.oudera.eom/cdh5/parcc1.s/5.16.1.CI)H-5.16.1-1.cdh5.16.1.p.3-e1.7.parce1.,sha1.http:/archive,cdh5parce1.s5.16.1/manifest,json将CIOUderaManagCr安装需要的7个rpm包下载到本地,放在同-目录,执行CreaIerePO命令生成rpm元数据。rootQnode1.cm5.16.1#11tota1.1019160-rw-rr-1rootroot9864584Nov2714:40CIOUdera-manager-agcnt-5.16.1-I.cm5161.p.1.c1.7.x8664.rpm-rw-rr1rootroot789872988Nov2714:40C1.OUdera-Inanager-daenons-5.16.1-