suse linux 12 sp 2

suse linux 12 sp 2没开启记录历史命令,上下键没反应,解决方法,写入记录history1000行。
1.在/etc/bash.bashrc 追加“export HISTSIZE=1000”
echo "export HISTSIZE=1000" >> /etc/bash.bashrc
2.使修改后的变量生效
source /etc/bash.bashrc

group02:~ # echo "export HISTSIZE=1000" >> /etc/bash.bashrc
eSight-group02:~ # source /etc/bash.bashrc
group02:~ # history
1 2019-07-24 16:33:12 history
group02:~ # cat /etc/rele
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp2"
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2

This file is deprecated and will be removed in a future service pack or release.

Please check /etc/os-release for details about this release.

SUSE11下:
关闭操作为:
service SuSEfirewall2_setup stop
service SuSEfirewall2_init stop
取消开机启动防火墙:
chkconfig SuSEfirewall2_init off
chkconfig SuSEfirewall2_setup off

关闭防火墙

启动操作为:
service SuSEfirewall2_setup start
service SuSEfirewall2_init start
取消开机启动防火墙:
chkconfig SuSEfirewall2_init on
chkconfig SuSEfirewall2_setup on

suse12下操作为:
关闭防火墙
systemctl stop SuSEfirewall2.service
取消开机启动防火墙
systemctl disable SuSEfirewall2.service

开启防火墙
systemctl enable SuSEfirewall2.service
开机启动防火墙
systemctl start SuSEfirewall2.service

你可能感兴趣的:(suse linux 12 sp 2)