Linux 操作系统的启动首先从 BIOS 开始,接下来进入 boot loader,由 bootloader 载入内核,进行内核初始化。内核初始化的最后一步就是启动 pid 为 1 的 init 进程。这个进程是系统的第一个进程。它负责产生其他所有用户进程。init 以守护进程方式存在,是所有其他进程的祖先。init 进程非常独特,能够完成其他进程无法完成的任务。
笔记内容:docker通过模板创建镜像以及容器、仓库和数据管理 笔记日期:2018-02-05
Centos 服务管理器:systemd和init并行运行。(systemctl和service)
(一)准备工作 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
上一篇文章重点对SVN代表的集中式版本管理工具和Git所代表的的分布式版本管理工具进行详细的介绍,从本篇开始正式进入了Git的学习之旅。其实Git有很多高深的骚操作,但是你基本工作中不可能使用到,本系列教程目的也是打造一份全面基础的Git教程。今天主要介绍下Linux系统下和windows系统下分别如何安装Git。接下来我们先来看看windows下如何下载Git。
以下是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
Centos7.x > Debian10 > Ubuntu 20.04 > Cenots8.x > Ubuntu 18.04 > 其它系统
一般我们在项目需要用到远程桌面功能的时候会用到Windows系统,但是大部分海外服务器商都是Linux系统的,我们只可以去安装类似CentOS、Debian、Ubuntu等系统。如果我们是本地电脑用的Linux系统是有见过直接可以安装Debian桌面的,但是在VPS、服务器上我们是否可以安装桌面呢?
vscode有远程开发功能,即可以在windows打开vscode,连接上linux服务器写代码 但由于公司集群登录节点是centos6,官方表示centos6需要升级glibc和libstdc++,没有管理员权限,只能找一台centos7的计算节点,想办法跳过登录节点
2) 下载新的CentOS-Base.repo 到/etc/yum.repos.d/
参考资料 1、http://www.linuxidc.com/Linux/2012-07/65748.htm
之前一直用的开源社区的版本,最近突然想到找一个好的商业版本用着,然后一直使用,然后就定上了hdp和cdh,都装上去了,但是cdh使用难度太大了,和开源版本的差距比较大,api不会使用,需要学它的cdk。hdp和开源版差不多,也是经过了优化了的,也是开源的,有一个管理界面,比社区版要好,这个安装过程废了很大的劲儿才搞成功的,发出来跟大家分享一下。 hdp的安装折腾了好久,它的下载地址网址不像CDH那么难找,不过它的设置相对CDH简单很多,一键式安装,而且都是免费的软件。 1.首先要下载它们的安
1.整理机器上面运行的服务,编些成sh脚本,文件为:/home/rc/exec.sh
内存:512M以上,推荐768M以上(纯面板约占系统60M内存) 硬盘:300M以上可用硬盘空间(纯面板约占20M磁盘空间) 系统:CentOS 7.1+ (Ubuntu16.04+.、Debian9.0+),确保是干净的操作系统,没有安装过其它环境带的Apache/Nginx/php/MySQL/pgsql/gitlab/java(已有环境不可安装) 架构:x86_64(主流服务器均是此架构),ARM不完整兼容(面板环境安装慢,部分软件可能安装不上)
版权声明:本文为耕耘实录原创文章,各大自媒体平台同步更新。欢迎转载,转载请注明出处,谢谢
复制代码 以上节点无法使用的情况下,请使用下面的备用节点: 备用节点【广东】:(宝塔推荐使用充值0.08元即可使用的尊云zun.com云服务器安装)
ZLMediaKit的作者是使用Ubuntu 16开发的,但是如果要跑到测试甚至于生产上必须要部署到centos上,笔者主要是使用centos6 (centos7除了下面rpm包外,编译组件操作一致),因为有需求就装完给大家分享一下。
宿主机1 centos 6.6 64位 内核版本 2.6.32-431.1.2.0.1.el6.x86_64
CentOS中提供DHCP服务的软件叫做dhcp,CentOS中默认没有安装。我们可以通过yum命令安装
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/aixiaoyang168/article/details/91357102
[root@CentOS7 ~]# cd /etc/sysconfig/network-scripts/
CentOS安装Docker请看这里:http://www.linuxidc.com/Linux/2014-09/106671.htm
如果手工安装Hadoop集群,在管理和后继部署中,越来越多的问题不断出现,主要如下:
CENTOS6的网卡命名方式:它会根据情况有所改变而非唯一且固定,在CENTOS6之前,网络接口使用连续号码命名: eth0、 eth1等,当增加或删除网卡时,名称可能会发生变化。
项目地址:https://github.com/FanhuaCloud/Shell-BBR
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
本脚本是一键安装Kangle+Easypanel+Mysql的集合脚本,已率先支持CentOS8操作系统
为简化Mongodb快速安装部署,并添加至服务启动项,开机自启动,本脚本适用于centos6/7.x。
4.添加出站规则,与入站规则相同 5.将安全组加入实例,参考下图进行操作即可
工作环境切换到Centos7 半年有余,epel仓库里的软件版本比el6更新了不少,非常方便。 另外systemd的引入让很多程序,尤其是开机启动上,速度提升了不少。 总体来说,很多细节让你感觉很舒服
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
制作image原生镜像需要使用febootstrap工具,需要注意的是,在centos7系列中,默认的源中不带此包,但是在centos6系列中,该包是默认可用使用的。 在centos6中安装febootstrap # yum install febootstrap -y 会安装相应的软件包:fakechroot-2.9-24.5.el6_1.1.x86_64.rpm fakechroot-libs-2.9-24.5.el6_1.1.x86_64.rpm fakeroot-1.12.2-22.2.el6.
注意:执行第一或第二部分就可以了(不要都执行),第三部分是扩展补充(可以不执行) 一、 CentOS5/CentOS6/CentOS7(通用)安装KDE图形界面 第1步 yum -y groupinstall "X Window System" "KDE Desktop" "Fonts" yum install mariadb firefox system-config-language wqy-unibit-fonts cjkuni-ukai-fonts 第2步:安装xrdp 先直接用yum install xrdp安装,报错的话执行下面步骤 yum install xkeyboard-config xkbcomp pixman libepoxy libXfont2 libxshmfence libgbm libXdmcp libGL -y wget ftp://ftp.scientificlinux.org/linux/scientific/7.6/x86_64/os/Packages/xorg-x11-server-common-1.20.1-3.el7.x86_64.rpm wget ftp://ftp.scientificlinux.org/linux/scientific/7.6/x86_64/os/Packages/xorg-x11-server-Xorg-1.20.1-3.el7.x86_64.rpm yum remove xorg-x11-server-common xorg-x11-server-Xorg -y rpm -ivh xorg-x11-server-common-1.20.1-3.el7.x86_64.rpm rpm -ivh xorg-x11-server-Xorg-1.20.1-3.el7.x86_64.rpm yum install xrdp -y 第3步 执行 system-config-language --text 修改语言为汉语 或者执行如下命令 echo 'export LC_ALL=zh_CN.utf8' >> ~/.bashrc source ~/.bashrc
Kangle+Easypanel+Mysql的集合脚本,已率先支持CentOS8操作系统
ifconfig命令在CentOS6是自带有的,但是在CentOS7默认是没有的,需要安装net-tools这个包。
因为是Centos6,前面安装3.7.x系列在SSL这块有些问题,考虑使用3.6.x系列看看。
Docker 是 2014 年最为火爆的技术之一,几乎所有的程序员都听说过它。Docker 是一种“轻量级”容器技术,它几乎动摇了传统虚拟化技术的地位,现在国内外已经有越来越多的公司开始逐步使用 Docker 来替换现有的虚拟化平台了。作为一名 Java 程序员,我们是时候一起把 Docker 学起来了!
1.查看系统版本 在设置防火墙的时候,首先查看linux系统版本。 lsb_release -a centOS7 系统没有此命令 cat /etc/redhat-release(/etc/centos-release) 输出:CentOS Linux release 7.4.1708 (Core) 此命令对于CentOS6和CentOS7都可以使用。linux系统中etc文件夹主要用于存放一些配置文件。 2.防火墙相关命令 启动: systemctl start firewalld 查看状态: syste
我们一般常规的在Linux服务器中配置WEB系统会用到哪种WEB引擎呢?Apache还是比较常用的引擎之一。所以,我们在服务器中配置LAMP(Linux, Apache, MySQL, PHP)是我们常用的WEB环境。对于大部分同学来说,我们会选择采用WEB面板或者是一键包安装,但是一键包或者面板也是有一些缺陷的,比如有些软件我们并不需要安装。
由于CentOS安装后差不多有4~5G,再加上Oracle等等的安装,所以请准备至少10G的硬盘空间。
(1) 编辑/etc/sysconfig/grub文件,命令为vi /etc/sysconfig/grub,在倒数第二行quiet后加入如下代码: net.ifnames=0 biosdevname=0 [root@localhost ~]# vim /etc/sysconfig/grub
CentOS和Ubuntu的时区文件是/etc/localtime,但是在CentOS7以后localtime以及变成了一个链接文件
在Linux系统当中任务计划是必不可少的,因为有时候可能需要凌晨的时候去做一些操作,例如要执行shell脚本、备份文件、执行某个命令等等。我们需要设定一个时间去执行这些操作,Windows因为是作为个人电脑系统居多,所以任务计划在Windows中不怎么常见。
Docker 是 2014 年最为火爆的技术之一,几乎所有的程序员都听说过它。Docker 是一种“轻量级”容器技术,它几乎动摇了传统虚拟化技术的地位,现在国内外已经有越来越多的公司开始逐步使用 Docker 来替换现有的虚拟化平台了。作为一名 Java 程序员,我们是时候一起把 Docker 学起来了! 本文会对虚拟化技术与 Docker 容器技术做一个对比,然后引出一些 Docker 的名词术语,比如:容器、镜像等,随后将使用 Docker 搭建一个 Java Web 运行环境,最后将对本文做一个总结。
Docker 是 2014 年最为火爆的技术之一,几乎所有的程序员都听说过它。Docker 是一种“轻量级”容器技术,它几乎动摇了传统虚拟化技术的地位,现在国内外已经有越来越多的公司开始逐步使用 Docker 来替换现有的虚拟化平台了。作为一名 Java 程序员,我们是时候一起把 Docker 学起来了! 本文会对虚拟化技术与 Docker 容器技术做一个对比,然后引出一些 Docker 的名词术语,比如:容器、镜像等,随后将使用 Docker 搭建一个 Java Web 运行环境,最后将对本文做一个总结
使用UltraVNC工具连接宿主机的VNC:7788端口,并完成系统的安装,就不详细介绍安装步骤了
CentOS 项目去年(2020年12月20日)宣布了「 CentOS 战略的转变」:CentOS 8 将于2021年结束。说明在这之后不会出现CentOS 9系统了,取而代之是CentOS Stream这个叫滚动发行版本。在这不久之前才刚刚宣布「CentOS 6停止所有更新」,并且下架了包括官方所有的 CentOS6 源,包括阿里、163、清华等在内的 CentOS 6 源已无法使用。
领取专属 10元无门槛券
手把手带您无忧上云