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 在内的开发套件. 今天我们就来看一看怎么使用命令行来快速注册和激活订阅服务,以后就可以方便地 ...
随机推荐
- sudo: /etc/sudoers is world writable
错误信息: sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting 解决办法: 修复磁盘 ...
- LeetCode 21 -- Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing t ...
- MMU内存管理单元相关知识点总结
1.MMU是Memory Management Unit的缩写,中文名是内存管理单元,它是中央处理器(CPU)中用来管理虚拟存储器.物理存储器的控制线路,同时也负责虚拟地址映射为物理地址,以及提供硬件 ...
- Xen启动过程分析(还是分享过来吧,找了好长时间)
XEN启动过程 Xen Hypervisor运行在Ring0,在启动过程中,Xen首先被引导:系统由Grub启动,遵循Multiboot引导规范:然后Linux内核做为module也被引导入 ...
- SQlServer第一天
SQLserver是个什么东西?相当于一是个货仓,在计算机领域的货仓,学名:数据库. 数据库是个什么东西呢?是指长期存储在计算机内的.有组织.可共享的数据结合.由此可知数据库的三个特点:永久存储.有组 ...
- 使用spring @Scheduled注解执行定时任务、
http://blog.csdn.net/sd4000784/article/details/7745947,留下来备用.
- USACO 刷水
BZOJ 1666 水.. BZOJ 1579 分层图最短路. BZOJ 1782 从一开始若某头牛停在U,那么U的子树的时间都会加一用BIT维护DFS序就行了 BZOJ 1572 贪心+堆 排序后查 ...
- Velocity快速入门教程-脚本语法详解(转)
1.变量 (1)变量的定义: #set($name = "hello") 说明:velocity中变量是弱类型的. 当使用#set 指令时,括在双引号中的字面字符串将解析 ...
- Nginx配置指定媒体类型文件强制下载
由于业务需要,在点击显示链接(如www.xxx.com/2015-01-15/xxx.png)显示媒体资源(如图片.视频.音频.文档),而在点击下载链接(如www.xxx.com/2015-01-15 ...
- 烧写ARM开发板系统教程----->uboot 、内核以及文件系统
一.sd启动 将u-boot镜像写入SD卡,将SD卡通过读卡器接上电脑(或直接插入笔记本卡槽),通过"cat /proc/partitions"找出SD卡对应的设备,我的设备节点是 ...