亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

kickstart 最小化安裝centos8

發布時間:2020-07-26 18:08:04 來源:網絡 閱讀:857 作者:戰狐 欄目:系統運維

centos8 發布嘗鮮,先改個ks 安裝

# Kickstart file automatically generated by anaconda.

#version=RHEL8
#use text install
text

# Use NFS installation media
nfs --server=192.168.1.253 --dir=/ct80_64

# System language
lang en_US.UTF-8

# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'

#add root password
rootpw  --iscrypted xxxxxxxxxxx

# System authorization information
authconfig --enableshadow --enablemd5

# SELinux configuration
selinux --disabled

firstboot --disable

# Do not configure the X Window System
skipx

# firewall configuration
firewall --disabled

# System services
services --enabled="chronyd"

# System timezone
timezone Asia/Shanghai

#修改這樣可以定義網卡名稱為ethx
# System bootloader configuration
bootloader --location=mbr --append="net.ifnames=0 biosdevname=0 rhgb quiet"

# Partition clearing information
clearpart --all --initlabel

# create 1MB biosboot type partition, centos7 and centos8 .
part biosboot --fstype=biosboot --size=1

# Disk partitioning information
part /boot --fstype=xfs --size=300

part pv.122 --fstype="lvmpv" --grow
volgroup VolGroup00  --pesize=16384 pv.122
logvol / --fstype="xfs" --size=10000 --name=LogVol00 --vgname=VolGroup00

%packages
@Base
@Core
@development
@network-tools
gettext-devel
sysstat
zlib-devel
psmisc
%end

%post --erroronfail --log=/root/ks-post.log

echo "nameserver 114.114.114.114">/etc/resolv.conf
echo "nameserver 202.106.46.151">>/etc/resolv.conf
echo "search localdomain">>/etc/resolv.conf

#安裝docker repo #####
#######docker repo ##########
sudo tee /etc/yum.repos.d/docker-ce.repo <<-'EOF'
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
EOF

date >> /root/install.log 
echo "network configing " >> /data/install.log

cat >/etc/sysconfig/network-scripts/ifcfg-eth0 <<END
NAME="eth0"
DEVICE="eth0"
ONBOOT=yes
NETBOOT=yes
IPV6INIT=no
BOOTPROTO=none
TYPE=Ethernet
IPADDR=192.168.1.99
PREFIX=24
GATEWAY=192.168.1.1
DNS1=114.114.114.114
DNS2=202.106.46.151
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
END

#DNS
nmcli con mod eth0 ipv4.dns "114.114.114.114 202.106.46.151"
nmcli con up eth0
echo "dns=none">>/etc/NetworkManager/NetworkManager.conf

cat >> /etc/sysctl.conf <<END
fs.file-max = 655360
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_max_syn_backlog = 262144
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.ipv4.ip_local_port_range = 20000 65000
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_orphan_retries = 4
net.nf_conntrack_max=655350
END
echo "ulimit -SHn 655350" >> /etc/rc.local
echo "ulimit -n 655350" >> /etc/rc.local
echo "ulimit -s 102400" >> /etc/rc.local
echo "ulimit -n 655350" >> /etc/profile

echo "root       soft    nproc     unlimited
*          soft    nproc      655350
*          hard    nproc      655350
*          soft    nofile     655350
*          hard    nofile     655350
" >/etc/security/limits.d/20-nproc.conf

# Do not update kerner 
sed -i '/\[main\]'/a\exclude=kernel\* /etc/yum.conf

#這里可以添加用戶key

#禁用密碼認證
sed  -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config

# Reboot after installation
reboot
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

河津市| 毕节市| 巧家县| 松溪县| 福贡县| 渝中区| 怀宁县| 梅河口市| 平谷区| 调兵山市| 泾川县| 十堰市| 西乌珠穆沁旗| 黔西县| 莆田市| 拜泉县| 安龙县| 商都县| 台州市| 邵阳县| 伊吾县| 通州市| 永顺县| 齐河县| 南漳县| 宁明县| 孝昌县| 凌云县| 弥勒县| 河源市| 韶关市| 东乌珠穆沁旗| 来凤县| 新沂市| 襄垣县| 科技| 余庆县| 原阳县| 皋兰县| 宁明县| 巴林右旗|