Linux 操作系统的启动首先从 BIOS 开始,接下来进入 boot loader,由 bootloader 载入内核,进行内核初始化。内核初始化的最后一步就是启动 pid 为 1 的 init 进程。这个进程是系统的第一个进程。它负责产生其他所有用户进程。init 以守护进程方式存在,是所有其他进程的祖先。init 进程非常独特,能够完成其他进程无法完成的任务。
注意:如果 /etc/sysconfig/iptables文件不存在,可以按如下方式配置一条防火墙规则:
Centos 服务管理器:systemd和init并行运行。(systemctl和service)
centos6中使用的是iptables,之前写过一篇文章,在centos7中禁用firewall开启iptables,这次记录下centos7中firewall如何开启端口
一、通过模板创建镜像 首先去下载一个模板(centos-6-x86-minimal.tar.gz)下载速度比较慢,可以先试用浏览器或者第三方工具下载。 http://openvz.org/Download/templates/precreated wget http://download.openvz.org/template/precreated/centos-6-x86-minimal.tar.gz 导入该镜像的命令为: [[email protected] ~]# cat centos-6-x86_
有一天发现自动生成的文件归档和cron job中的时间不一致,于是想弄清原因,最后找到了原因,是由系统下面logrotate来负责生成的,下面对logrotate的执行时间进行探源。
CentOS 7 vs CentOS 6的不同 (1)桌面系统 [CentOS6] GNOME 2.x [CentOS7] GNOME 3.x(GNOME Shell) (2)文件系统 [CentOS6] ext4 [CentOS7] xfs (3)内核版本 [CentOS6] 2.6.x-x [CentOS7] 3.10.x-x (4)启动加载器 [CentOS6] GRUB Legacy (+efibootmgr) [CentOS7] GRUB2 (5)防火墙 [CentOS6] i
安装完毕,会在你的应用程序文件夹中生成一个boot2docker的app,运行他就会初始化docker了!
今天,准备写脚本,新建了一个虚拟机,用的是CentOS7 的系统。开始装的时候图简便用的是VMWare自带的快速装机,秒装。无人值守。然后,我就悲剧了。
由于公司业务大部分都在内网环境下运行,内网环境无法直接使用yum安装升级更新软件,所以需要自建Yum源来满足目前日常工作需要。
CentOS7 的防火墙配置跟以前版本有很大区别,CentOS7这个版本的防火墙默认使用的是firewall,与之前的版本使用iptables不一样
(一)准备工作 1、准备几台机器 10.1.51.100 ambariserver 本地mirrorserver及ambari server都在这一台机器 10.1.51.10 master 10.1.51.11 slave1 10.1.51.12 slave2 2、都创建管理用户hadoop 3、做ssh免密码登录(ambariserver到其他机器的,hadoop用户) ssh-keygen cd .ssh cat id_rsa.pub >> authorized_keys chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys 注意,免密码一定要互相登陆一次,让他记住密码 4、设置sudo免密码(hadoop用户)---后续所有操作都在hadoop用户下去做 在各节点上进入root: visudo 加入如下内容: hadoop ALL=(ALL) NOPASSWD: ALL 5、Maximum Open File Descriptors(10000) 检查语句 ulimit -Sn ulimit -Hn sudo vi /etc/security/limits.conf @hadoop soft nproc 262144 @hadoop hard nproc 262144 @hadoop soft nofile 262144 @hadoop hard nofile 262144 sudo vi /etc/security/limits.d/90-nproc.conf @hadoop soft nproc 262144 以上改动重启才能生效,最好同时执行ulimit -u 10240 命令,是其立即生效。(ulimit 命令很多啊) 6、Check Existing Package Versions 7、Set up Service User Accounts(设置服务用户账户) http://docs.hortonworks.com/HDPDocuments/Ambari-2.0.0.0/Ambari_Doc_Suite/ADS_v200.html#ref-70627b43-7d78-4cbb-8df8-e3f43cbd8422 hdp的各个服务运行在不同的linux账户下,如果你创建了这些账户,ambari就会直接用,否则他会自动创建,但是自动创建的用户不知道密码是什么,但是还是可以 sudo su hdfs进入到这些用户下,不过这样就不方便了。 比较好的办法是自己创建的账户,使用ambari安装组件时选择自定义账户即可(UID >= 1000)。 8、Enable NTP on the Cluster and on the Browser Host 集群各节点,包括安装ambari webui的机器都得开启ntp服务已同步时间,如果有条件,局域网应该有ntp服务器 To check that the NTP service is on, run the following command on each host:chkconfig --list ntpd To set the NTP service to start on reboot, run the following command on each host:chkconfig ntpd on To turn on the NTP service, run the following command on each host:service ntpd start 9、Check DNS(可以选择10) 集群所有机器必须配置正向和反向DNS,如果条件不允许,就设置/etc/hosts文件,每个节点都得改 10、/etc/hosts 1.2.3.4 <fully.qualified.domain.name> //一行一个 注意:这两行千万不要删除 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 vi /etc/sysconfig/network NETWORKING=yesNETWORKING_IPV6=yes HOSTNAME=<fully.qualified.domain.name> 11、关闭防火墙 12、Disable SELinux and PackageKit and check the umask Value set SELINUX=disabled in /etc/selinux/config sudo vi /etc/yum/pluginconf.d/refresh-packagekit.conf 设置:enabled=0 Ambari supports a umask value
笔记内容:docker通过模板创建镜像以及容器、仓库和数据管理 笔记日期:2018-02-05
之前一直用的开源社区的版本,最近突然想到找一个好的商业版本用着,然后一直使用,然后就定上了hdp和cdh,都装上去了,但是cdh使用难度太大了,和开源版本的差距比较大,api不会使用,需要学它的cdk。hdp和开源版差不多,也是经过了优化了的,也是开源的,有一个管理界面,比社区版要好,这个安装过程废了很大的劲儿才搞成功的,发出来跟大家分享一下。 hdp的安装折腾了好久,它的下载地址网址不像CDH那么难找,不过它的设置相对CDH简单很多,一键式安装,而且都是免费的软件。 1.首先要下载它们的安
1、CentOS6服务器双网卡,eth0:192.168.31.25/24可以通过外网出口路由器上网,eth1:172.16.10.1/24用于与内网网段172.16.10.X/24的互通
将yum源设置为国内yum源,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。 国内源:可以使用wget获取或者直接下载
剩余部分见:https://www.cnblogs.com/poiu-elab/archive/2012/11/02/2751323.html
由于公司业务服务器大部分都在内网环境下运行,内网环境无法直接使用yum安装升级更新软件,所以需要自建Yum源来满足目前日常工作需要。
参考资料 1、http://www.linuxidc.com/Linux/2012-07/65748.htm
如果手工安装Hadoop集群,在管理和后继部署中,越来越多的问题不断出现,主要如下:
一般建议安装宝塔面板,然后搭建wordpress,一般可以优先考虑使用centos 7.x版本的系统。
关于ssh默认22端口的修改,防火墙如何开放端口,centos6和centos7的命令有一点差距
最近在安装centos6上通过yum下载vsftpd时,无法下载成功,查了很多资料说需要更好yum源,查了一些资料,很多yum源都过期了,无法解决问题,经常报下面错误。是执行下面yum命令报错的。
12.x是一个比较不错的版本,稳定性和功能性都比较出色,各系统的支持版本也较新和全面,适合做教学和个人使用。
乐乐快跑,马哥门徒,马哥教育原创作者联盟成员,专注于运维领域知识分享,强于知识体系构建。 各位朋友大家好,乐乐快跑今天给大家分享下运维的学习规划路线。上个礼拜我对自己学习的运维知识做
ifconfig命令在CentOS6是自带有的,但是在CentOS7默认是没有的,需要安装net-tools这个包。
CentOS 6已经随着2020年11月的结束进入了EOL(Reaches End of Life)。所以在2020年12月2日,CentOS官方停止了对CentOS 6的所有更新,并且下架了包括官方所有的CentOS6源,目前阿里、163、清华等CentOS6源已无法使用。
修改yum源,就是修改CentOS-Base.repo的内容,所以我们要先备份一下原来的: sudo mv CentOS-Base.repo CentOS-Base.repo.backup
vscode有远程开发功能,即可以在windows打开vscode,连接上linux服务器写代码 但由于公司集群登录节点是centos6,官方表示centos6需要升级glibc和libstdc++,没有管理员权限,只能找一台centos7的计算节点,想办法跳过登录节点
NTP 时间服务器 ntp也是一种协议 ntp软件(支持ntp协议) CentOS6自带 CentOS7需要安装 chrony软件(支持ntp协议) CentOS7自带 安装ntp CentOS6系统自带ntp,CentOS7需要自己安装 [root@m02 ~]# yum -y install ntp [root@m02 ~]# rpm -qa ntp ntp-4.2.6p5-25.el7.centos.2.x86_64 配置ntp 权限参数含义 noquery:不提供ntp服务 notrap:不提
为了能集中管理我们创建好的镜像,方便部署服务,我们会创建私有的Docker仓库。通读了一遍官方文档,Docker为了确保安全使用TLS,需要CA认证,认证时间长的要钱啊,免费过期时间太短,还是用自签名比较简单。 准备环境 环境:两台Centos 7 虚拟机 》服务器IP:10.57.220.244 ,作为Docker仓库使用 》客户端IP:10.57.220.220 ,作为客户端来上传或拉取镜像 》域名:lpxxn.com 两台机器上均已安装好Docker 版本为 17.03.0-c
在Linux系统当中任务计划是必不可少的,因为有时候可能需要凌晨的时候去做一些操作,例如要执行shell脚本、备份文件、执行某个命令等等。我们需要设定一个时间去执行这些操作,Windows因为是作为个人电脑系统居多,所以任务计划在Windows中不怎么常见。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
磁盘扩容 磁盘分区 parted /dev/sdb # GPT就是GRUB分区表,如果是MBR,最大支持2T分区 mktable gpt # 创建一个 2G 的磁盘空间 mkpart primary 0K 2048G # 给1好分区更改为 lvm 格式 toggle 1 lvm centos7 xfs 文件系统 lvm 扩展 因为Centos7默认文件系统是xfs文件系统类型,在xfs文件系统中,只能增大分区而不能减小。 Centos6,Centos5系统都是ext4,ext3文件系统。所以操作方法有一点
centos6 centos7 centos8 yum安装php7,这里以centos7为例,如果是centos6,替换第2句命令里的rpm为centos6对应的文件即可,可以在http://rpms.remirepo.net/enterprise/查询文件的精确地址
CentOS中提供DHCP服务的软件叫做dhcp,CentOS中默认没有安装。我们可以通过yum命令安装
title: CentOS6内核太老更新内核 date: 2020-04-01 23:31:42 tags: [CentOS] categories: [CentOS]
Docker 镜像是容器的基础。镜像是一个有序集合,其中包含根文件系统更改和在容器运 行时中使用的相应执行参数。镜像通常 包含堆叠在彼此之上的联合分层文件系统。镜像 没有状态并且始终不会发生更改。 当运行容器时,使用的镜像如果在本地中不存在, docker 就会自动从 docker 镜像仓库中下载,默认是从 Docker Hub 公共镜像源下载。
CentOS 项目去年(2020年12月20日)宣布了「 CentOS 战略的转变」:CentOS 8 将于2021年结束。说明在这之后不会出现CentOS 9系统了,取而代之是CentOS Stream这个叫滚动发行版本。在这不久之前才刚刚宣布「CentOS 6停止所有更新」,并且下架了包括官方所有的 CentOS6 源,包括阿里、163、清华等在内的 CentOS 6 源已无法使用。
1.整理机器上面运行的服务,编些成sh脚本,文件为:/home/rc/exec.sh
如果你的centos6连wget都没的话,你可以用winscp打开 /etc/yum.repos.d/目录
上一篇文章重点对SVN代表的集中式版本管理工具和Git所代表的的分布式版本管理工具进行详细的介绍,从本篇开始正式进入了Git的学习之旅。其实Git有很多高深的骚操作,但是你基本工作中不可能使用到,本系列教程目的也是打造一份全面基础的Git教程。今天主要介绍下Linux系统下和windows系统下分别如何安装Git。接下来我们先来看看windows下如何下载Git。
Centos7与之前的版本最大的不同,在于Centos6和之前的版本使用的iptables,而Centos7版本以及未来以后的版本则默认使用 FirewallD。
Centos7.x > Debian10 > Ubuntu 20.04 > Cenots8.x > Ubuntu 18.04 > 其它系统
有时候我们的服务器在安装时安装的默认语言不支持中文,导致程序、文档中的汉子显示乱码,从而使系统报一些莫名其妙的错误,这是可以更改操作系统的默认语言
Centos7.x下更改SSH的默认端口 Centos7与之前的版本最大的不同,在于Centos6和之前的版本使用的iptables,而Centos7版本以及未来以后的版本则默认使用 FirewallD。 鉴于Centos7的趋势化,收集并学习如何在Centos7下更改SSH默认22端口。 FirewallD 简介 FirewallD 是 iptables 的前端控制器,用于实现持久的网络流量规则。它提供命令行和图形界面,在大多数 Linux 发行版的仓库中都有。与直接控制 iptables 相比,使用 F
以下是centos系统安装docker的操作记录 1)第一种方法:采用系统自带的docker安装,但是这一般都不是最新版的docker 安装epel源 [root@docker-server ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm [root@docker-server ~]# rpm -ivh epel-release-latest-6.noarch.rpm [root@docker-se
领取专属 10元无门槛券
手把手带您无忧上云