德克云技术联盟

会员中心
发新帖
打印 上一主题 下一主题

RHEL7&RHEL6 管理命令集配置文件变化(部分)
发布人: 李臻宇 发布时间:2015-11-25 浏览:11838



Administrative command and config-file changes
System Basics
TaskRHEL6RHEL7
View RH subscription information/etc/sysconfig/rhn/systemid
subscription-manager identity
subscription-manager identity
Configure RH subscriptionrhn_register
rhnreg_ks
subscription-manager
subscription-manager14
rhn_register15
Basic Configuration
TaskRHEL6RHEL7
Graphical configuration toolssystem-config-*gnome-control-center
Configure networksystem-config-networknmcli
nmtui
nm-connection-editor
Configure system languagesystem-config-languagelocalectl
Configure system time and datesystem-config-date timedatectl
datedate
Synchronize time and datentpdate ntpdate
/etc/ntp.conf/etc/chrony.conf
Configure keyboardsystem-config-keyboardlocalectl
Jobs and services
TaskRHEL6RHEL7
List all serviceschkconfig systemctl -at service
ls /etc/init.d/ls /{usr/lib,etc}/systemd/system/*.service
List running servicesservice –status-allsystemctl -t service –state=active
Start/stop a serviceservice name start systemctl start name.service
service name stopsystemctl stop name.service
Enable/disable a servicechkconfig name on systemctl enable name.service
chkconfig name offsystemctl disable name.service
Check if service enabledchkconfig namesystemctl is-enabled name
View service statusservice name statussystemctl status name.service
Create service file or change configchkconfig –addsystemctl daemon-reload
View runlevel/targetrunlevelsystemctl get-default
Change runlevel/targetinit runlevelsystemctl isolate name.target
init runlevel
Configure logging/etc/rsyslog.conf/etc/rsyslog.conf
/etc/rsyslog.d/*.conf
/var/log/journal/
/etc/systemd/journald.conf
View logs/var/log//var/log/
journalctl
Kernel, boot, and hardware
TaskRHEL6RHEL7
Bypass root password prompt at bootappend 1 or s or init=/bin/bash to kernel cmdlineappend rd.break or init=/bin/bash to kernel cmdline
Shut down systemshutdownsystemctl shutdown
Power off systempoweroffsystemctl poweroff
Halt systemhaltsystemctl halt
Reboot systemrebootsystemctl reboot
Configure default runlevel/target/etc/inittabsystemctl set-default
Configure GRUB bootloader/boot/grub/grub.conf/etc/default/grub
grub2-mkconfig
grub-set-default
Software management
TaskRHEL6RHEL7
Install softwareyum install yum install
yum groupinstallyum group install
View software infoyum info yum info
yum groupinfoyum group info
File systems, volumes, and disks
TaskRHEL6RHEL7
Create/modify disk partitionsfdisk
parted
fdisk
parted
gdisk
Default file systemext4xfs
Enlarge volumes formatted with default filesystemvgextend vgextend
lvextend lvextend
resize2fsxfs_growfs
Networking
TaskRHEL6RHEL7
Configure name resolution/etc/hosts
/etc/resolv.conf
/etc/hosts
/etc/resolv.conf
nmcli con mod
Configure hostname/etc/sysconfig/network/etc/hostname
hostnamectl
nmtui
View network interface infoip addr
ifconfig
brctl
ip addr
nmcli dev show
teamdctl
brctl
bridge
Configure network interface/etc/sysconfig/network-scripts/ifcfg-*/etc/sysconfig/network-scripts/ifcfg-*
nmcli con [add|mod|edit]
nmtui
nm-connection-editor
Configure firewalliptables & ip6tables
/etc/sysconfig/ip*tables
system-config-firewall
firewall-cmd
firewall-config
View ports/socketsnetstat
ss
lsof
ss
lsof


分类浏览
关于我们
联系我们
技术联盟
云服务
云技术
云合作
帮助中心
发帖规则
QQ客服
内部通道
企业邮箱
企业论坛
版本选择
手机版
电脑版
用手机扫描下方二维码查看手机版页面

版权所有 西安云联电子科技有限公司
Copyright @ 2011-2022 | decoclouds.com All Rig
陕ICP备13002202号-1

快速回复 返回顶部 返回列表