Linux 系统text安装方法

您所在的位置:网站首页 vim折叠代码命令 Linux 系统text安装方法

Linux 系统text安装方法

2023-01-23 14:46| 来源: 网络整理| 查看: 265

步骤:

1)输入linux text选择text安装模式。2)安装时语言环境选English。3)键盘类型选us。4)鼠标选择No-mouse。5)安装类型选Custom。6)分区设置为:/dev/sda/dev/sda1 512M ext3 /boot/dev/sda2 5G ext3 /home/dev/sda3 3G ext3 //dev/sda4 Extended/dev/sda5 5G ext3 /var/dev/sda6 2G ext3 /swap/dev/sda7 余空间 /data7)使用GRUB Boot loader。8)不增加参数在Boot Loader Configuration。9)不为Boot Loader设置密码。10)设置Boot Loader启动Linux。11)将Boot Loader安装在硬盘的MBR。12)网络设置,按分配的IP配置网卡。/etc/sysconfig/network-scripts/#ls ifcfg-*ifcfg-eth0 ifcfg-eth1 ifcfg-lo编辑相应文件/sbin/service network restart13)主机名称视情况而定,预定为DB-数字,数字为IP最后3位。14)防火墙的安全级别设为No firewall,禁用SEClinux15)语言支持选English (USA) 和Chinese (P.R. of China)。16)默认语言为English (USA)。17)时区选Asia/Shanghai。18)Root Password为:xxxxxx19)Authentication Configuration启用Use Shadow Passwords和Enable MD5 Passwords。20)Package Group选择:@ Editors@ Text-based Internet@ Server Configuration Tools@ Development Tools@ Kernel Development@ Administration Tools@ System Tools21)不必创建Boot Diskette。22)配置显示选项,指定启动时进入文本模式。OS安装完毕 "_"。简单配置1) 禁用ssh1登录vi /etc/ssh/sshd_config#Port 22#Protocol 2,1修改为Port 22Protocol 22) 禁用多于服务rm /etc/rc.d/rc3.d/* -rfchkconfig network onchkconfig rsync onchkconfig sshd onchkconfig syslog onchkconfig crond onchkconfig xinetd on根据需要加入自已的相应服务。3)限制登录IPvi /etc/hosts.allow加入all:IP.:allowall:all:denyIP为允许进入管理的IP。当然这个文件也可以不用。4)定时同步时间crontab -e加入0 0 * * * rdate -s time-a.nist.govor10 03 * * * /usr/sbin/ntpdate -u tick.ucla.edu tock.gpsclock.com ntp.nasa.gov timekeeper.isi.edu usno.pa-x.dec.com5)关闭ipv6echo “alias net-pf-10 off” >> /etc/modprobe.conf.dist



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3