顯示具有 CentOS 標籤的文章。 顯示所有文章
顯示具有 CentOS 標籤的文章。 顯示所有文章

2012-09-30

CentOS -- Learning

&configure NIC&
#su
#Enter password for root
#service NetworkManager stop
#chkconfig NetworkManager off
#chkconfig NetworkManager --list
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"

NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
DNS1=8.8.8.8
DEFROUTE=yes
#service network restart

&system update&
#yum update --skip-broken

&Disable SELinux&
#getenforce
Enforcing
#vi /etc/selinux/config
SELINUX=disabled
#reboot
#getenforce
Disabled

2012-06-30

Learning CentOS

## command line呈現繁體中文
vi /etc/sysconfig/i18n
LANG="zh_TW.Big5"

## 重啓服務
service xxx restart

## 閒置超過多久就自動登出
vi /etc/profile
export TMOUT=600 (單位為秒)

## 查詢系統版本
uname -a

## 查詢系統是幾位元的
getconf LONG_BIT

## 查詢輸入過的命令
history
history |more

## 清除所輸入過的指令紀錄
history -c