1、永久修改主机名
vi /etc/HOSTNAME
vi /etc/hosts
sysctl -w kernel.hostname=主机名
2、同步时间
ntpdate 目标IP
3、关闭防火墙
vi /etc/init.d
#chkconfig SuSEfirewall2_init off/stop
#chkconfig SuSEfirewall2_setup off/stop
4、查看防火墙是否关闭
service SuSEfilewall2_init status
service SuSEfilewall2_setup status
5、查看防火墙是否开机启动
chkconfig |grep file
6、设置ssh链接服务
修改/etc/ssh/sshd_config文件
将下面字段设置为Yes并启用
PasswordAuthentication yes
重启ssh服务
service sshd restart
7、永久设置服务器时区
timedatectl set-timezone GMT
GMT为东七区时区英文缩写;具体时间计算方式为东加西减;每个时区相差八个小时;
8、确认是否允许root本地用户通过FTP服务登录服务器
修改/etc/ftpusers
注释掉root用户;然后修改/etc/vsftpd.conf将local_enable=YES前面的注释取消掉,表示允许本地用户进行登录
9、查看安装源
zypper lr
更新安装源
zypper ref
10、设置telnet服务
设置telnet服务开机启动
安装telnet服务
zypper -n in telnet-server
修改/etc/xinted.d/telnet将disable的值设置为no
vi /etc/pam.d/login
将auth requisite pam_nologin.so这一行注释掉
重启xinetd服务
service xinted restart
设置开机启动xinted
chkconfig xinted on
chkconfig --list |grep xinted
从AIX迁移至SUSE11基本配置
最新推荐文章于 2021-05-06 16:32:00 发布