欧美一区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-2019 MFISP.COM. 國外服務器租用 IDC公司 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 平远县| 延长县| 石泉县| 武清区| 颍上县| 界首市| 浑源县| 南江县| 衡阳县| 安化县| 平顶山市| 长岭县| 奈曼旗| 平凉市| 博罗县| 黄浦区| 疏勒县| 梧州市| 农安县| 永德县| 安达市| 宜良县| 武强县| 邵阳市| 张家界市| 巴中市| 株洲市| 延安市| 宁夏| 岳阳县| 凭祥市| 云南省| 开平市| 德江县| 桐庐县| 卢龙县| 曲沃县| 日土县| 株洲市| 河东区| 蒙山县|