1、rhel 6.5 系统准备
1、启动、关闭、重置服务 (rhel7 为 systemctl)
[root@rhel-6 ~]# service atd status #关闭atd服务atd 已停[root@rhel-6 ~]# service atd start #启动atd服务正在启动 atd: [确定][root@rhel-6 ~]# service atd stop #停止atd服务停止 atd: [确定][root@rhel-6 ~]# service atd restart #重启atd服务停止 atd: [失败]正在启动 atd: [确定][root@rhel-6 ~]# service atd reload #重置atd服务停止 atd: [确定]正在启动 atd: [确定]
[root@rhel-6 ~]# chkconfig atd on #设置atd服务开机自启[root@rhel-6 ~]# chkconfig --list atd #查看atd服务各启动级别开机启动情况atd 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭[root@rhel-6 ~]# chkconfig atd off #设置atd服务不开机自启[root@rhel-6 ~]# chkconfig --list atd #查看atd服务各启动级别开机启动情况atd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@rhel-6 ~]# iptables -F #清空防火墙配置[root@rhel-6 ~]# service iptables save #保存防火墙配置iptables:将防火墙规则保存到 /etc/sysconfig/iptables: [确定][root@rhel-6 ~]# chkconfig iptables off #关闭防火墙自启[root@rhel-6 ~]# chkconfig --list iptables #检查自启情况iptables 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@rhel-6 ~]# getenforce #检查selinux状态Enforcing #Enforcing 启动状态[root@rhel-6 ~]# vim /etc/selinux/config #修改selinux配置文件# disabled - No SELinux policy is loaded.SELINUX=Disabled #修改为Disabled 并保存# SELINUXTYPE= can take one of these two values:[root@rhel-6 ~]# init 6 #重启后使关闭生效
[root@rhel-6 ~]# vim /etc/hosts
[root@rhel-6 ~]# df -h #df -h 查看挂载情况Filesystem Size Used Avail Use% Mounted on/dev/sda2 20G 4.5G 15G 24% /tmpfs 2.0G 0 2.0G 0% /dev/shm/dev/sda1 194M 34M 150M 19% /boot/dev/sr0 3.6G 3.6G 0 100% /mnt[root@rhel-6 ~]# echo "/dev/sr0 /mnt iso9660 defaults 0 0" >> /etc/fstab #在/etc/fstab 配置文件添加echo ""的内容
[root@rhel-6 ~]# cat /etc/yum.repos.d/rhel-source.repo[rhel6-source] #yum名称 随便取name=rhel-source #yum名称2 随便取baseurl=file:///mnt #yum源路径,/mnt 是光盘挂载点enabled=1 #=1 表示启用此源gpgcheck=0 #=0表示不检查[root@rhel-6 ~]# yum clean all #清空yum缓存[root@rhel-6 ~]# yum list #生成新缓存- #配置网络源
[root@xuegod63 ~]# yum list[root@xuegod63 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo #阿里云的源[root@xuegod63 ~]# sed -i 's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo [root@xuegod63 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo #163的源 [root@xuegod63 ~]# sed -i 's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo [root@xuegod63 ~]# yum clean all [root@xuegod63 ~]# yum list
[root@rhel-6 ~]# setup #setup进入图形配置界面[root@rhel-6 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 #修改网卡配置文件
[root@rhel-6 ~]# vim /etc/sysconfig/network #RHEL6版本修改主机名[root@rhel7-14 ~]# hostnamectl set-hostname rhel7-14.com #RHEL7版本修改主机名 后面接新主机名
[root@rhel7-14 ~]# hostnamectl status #RHEL7 查看主机名信息
Static hostname: rhel7-14.com
Icon name: computer-vm
Chassis: vm
Machine ID: 5ed0276bb5324c97bdbcd0ec2bf59834
Boot ID: c5ea02318bbe4137a2558b4420a266a6
Virtualization: vmware
Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.2:GA:server
Kernel: Linux 3.10.0-327.el7.x86_64
Architecture: x86-64
[root@rhel-6 ~]# rm /etc/udev/rules.d/70-persistent-net.rules #删除此网络缓存文件。里面有MAC记录
1、rhel 6.5 系统准备的更多相关文章
- HP DL388 gen9服务器安装RHEL 6.5系统
测试: 1.默认UEFI模式,F10下智能安装,如果选择自己划分分区,进入该选项后会看到系统自动就帮我们创建了一个/efi 的500M分区,一开始我就是被这个分区坑了的,要知道服务每次重启都要等很久的 ...
- 介绍两种在RHEL 和 CentOS 系统上检查或列出已安装的安全更新的方法
在本文中,我们将向你展示如何检查已安装的安全更新.我会介绍两种方法,你可以选择最适合你的. 此外,我还添加了一个小的 shell 脚本,它为你提供已安装的安全包计数. 运行以下命令获取系统上已安装的安 ...
- 如何做raid级别磁盘(rhel和centos系统皆可)
添加磁盘,自己需要多少磁盘即可添加多少数量 此处只添加了三块200MB大小的磁盘 此处三块磁盘,只有两块做raid,一块与raid磁盘为实验测读写速率,不测速率可三块都做raid. 进入虚拟机给三个磁 ...
- CENTOS/RHEL 7 系统中设置SYSTEMD SERVICE的ULIMIT资源限制
遇到的问题: golang程序一直出现 too many open files的报错, 尽管对 /etc/security/limits.conf 做了设置, 对最大文件打开数,最大进程数做了调优. ...
- 【转】CENTOS/RHEL 7 系统中设置SYSTEMD SERVICE的ULIMIT资源限制
在bash中,有个ulimit命令,提供了对shell及该shell启动的进程的可用资源控制.主要包括打开文件描述符数量.用户的最大进程数量.coredump文件的大小等. 在centos 5/6 等 ...
- 如何在CentOS/RHEL & Fedora上安装MongoDB 3.2
MongoDB(名称取自"huMONGOus")是一个有着全面灵活的索引支持和丰富的查询的数据库.MongoDB通过GridFS提供强大的媒体存储.点击这里获取MongoDB的更多 ...
- 忠告初学者学习Linux系统的8点建议
导读 新手或者说即将要入坑的小伙伴们,常常在QQ群或者在Linux论坛问一些问题,不过,其中大多数的问题都是很基础的.例如:如何给添加的用户归属用户组,复制整个文件到另一个目录下面,磁盘合理划分,甚至 ...
- 高手总结的“恋爱法”学习Linux系统,效果更好。
如果你恋爱了,那你一定非常喜欢她.了解她,知道她喜欢吃什么玩什么,知道她需要什么,在她生气的时候可以哄她开心,一切尽在你的手指中.那你想学好Linux吗?喜欢Linux吗?你懂她吗?你有喜欢Linux ...
- RHEL 7 命令行注册和激活订阅服务
导读 前一阵子,红帽推出了开发者免费使用订阅功能,只要注册成为红帽开发者就可以免费使用包括 RHEL7 在内的开发套件. 今天我们就来看一看怎么使用命令行来快速注册和激活订阅服务,以后就可以方便地 ...
随机推荐
- repo upload上传提交时发生remote rejected异常
部分关键异常内容为: ...... remote:ERROR:committer email address %%%%%% remote:ERROR:does not match your user ...
- Java中的Exception
Caused by: java.lang.IllegalArgumentException: The servlets named [XXX] and [YYY] are both mapped to ...
- HDU 5386 暴力
题目 也是个坑题,可惜没有发现这是个水题,被矩阵的气势吓住了,其实后来做出来的人挺多,就应该想到没那么难了.(两个队友陷入DP无法自拔,没有想换题的打算). 题意:告诉初始矩阵,目的矩阵,告诉n个步骤 ...
- display:inline; display:block;
block(块级元素): div .from. p .table. pre.h1~h6. dl .ol .ul等 inline(内联元素): span.a.strong.em.label.input. ...
- RPM方式安装MySQL5.6
原文转自:http://blog.csdn.net/liumm0000/article/details/18841197 未整理! RPM方式安装MySQL5.6 a. 检查MySQL及相关RPM包, ...
- js 获取当前焦点所在的元素、给元素和input控件添加键盘监听事件、添加页面级的键盘监听事件
页面级的键盘监听事件 document.onkeydown = function (event) { var e = event || window.event || arguments.callee ...
- oracle select into 的时候提示未找到数据
); begin '; --在select into 后面添加exception 错误处理机制 exception when no_data_found then version:= 'hhh '; ...
- Ajax作用、及Ajax函数的编写
关于Ajax 指的是异步 (Asynchronous JavaScript and XML) <异步的javascript和XML> 1. Ajax并非缩写词,而是由Jesse James ...
- iOS 自定义选项卡-CYLTabBarController
正常的选项卡流程 cocoapods就不说了 创建一个CYLTabBarControllerConfig类 #import <Foundation/Foundation.h> #impor ...
- 集合框架(JCF/Java Collection Framework)
集合的特点:1.数据的类型可以不同2.集合长度可变3.空间不固定集合也是对象,用于检索,存储以及传输对象集合框架的组成Collection接口和Map接口 Collection是Set接口和List接 ...