欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到云服務器

系統配置

CentOS 7安裝后的根基設置講授

安裝完CentOS 7 minimal后,無力吐槽,變革之大,發明以前常用的一些呼吁都沒有。

一、常用呼吁安裝

查察anaconda-ks.cfg,本來是沒裝base group的包

 [[email protected] ~]# cat anaconda-ks.cfg
#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8 --addsupport=zh_CN.UTF-8
# Network information
network  --bootproto=dhcp --device=eno16777736 --onboot=off --ipv6=auto
network  --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$Zz5VMf1HPPRm0YRL$QSoaU9pAUApXMj9BXuK5qlUFGAfCv9Y/ylVGUcDYv.lrxfNodTiI/7DO1UR7carvL1EdgwQpuiwDt524f6.GR.
# System timezone
timezone Asia/Chongqing --isUtc --nontp
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@core      # 這里只有core
%end

[[email protected] ~]# yum groupinstall base  # 安裝完后ifconfig、service、chkconfig等呼吁就都有了

二、運行級別切換

[[email protected] ~]# cat /etc/inittab  #  系統運行級此外配置方法也變革了
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -sf /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
這里寫的很大白了,做個軟鏈修改默認運行級別

[[email protected] system]# ll /lib/systemd/system/runlevel*.target  # 系統0-6 7個運行級別,2 3 4 運行指向同一個文件
lrwxrwxrwx 1 root root 15 Oct 11 03:51 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx 1 root root 13 Oct 11 03:51 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx 1 root root 17 Oct 11 03:51 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx 1 root root 17 Oct 11 03:51 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx 1 root root 17 Oct 11 03:51 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx 1 root root 16 Oct 11 03:51 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx 1 root root 13 Oct 11 03:51 /lib/systemd/system/runlevel6.target -> reboot.target

三、systemctl打點系統處事

systemctl可以看作是service和chkconfig的組合

job
chkconfig、service systemctl
處事開機自啟動 chkconfig --level 3 httpd on systemctl enable httpd
處事不開機自啟動 chkconfig --level 3 httpd off systemctl disable httpd

 

處事狀態

 

service httpd status

systemctl status httpd(處事具體信息)

systemctl is-active httpd(只顯示是否active)

 

所有處事的啟動狀態 chkconfig --list  systemctl list-units --type=service
啟動處事 service httpd start systemctl start httpd
遏制處事 service httpd stop systemctl stop httpd
重啟處事 service httpd restart systemctl restart httpd
騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國外vps服務器租用 夢飛云服務器租用 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 曲水县| 资阳市| 兴国县| 信宜市| 泗洪县| 乐至县| 巫山县| 大邑县| 公安县| 襄垣县| 北票市| 本溪市| 吴川市| 松溪县| 娱乐| 镇康县| 酒泉市| 惠安县| 永平县| 新密市| 伊金霍洛旗| 大余县| 陵川县| 盱眙县| 清新县| 庆城县| 洛浦县| 扶风县| 石家庄市| 朝阳市| 方正县| 三门县| 上饶县| 黑龙江省| 葫芦岛市| 九龙城区| 定边县| 凤冈县| 沙田区| 抚州市| 屏东县|