- 論壇徽章:
- 0
|
quota磁盤配額實(shí)現(xiàn)
1. 編輯/etc/fstab
在相應(yīng)分區(qū)下加入usrquota,grpquota選項(xiàng)
2. mount –o remount,rw 對應(yīng)分區(qū)>
3. quotacheck –cug 掛載目錄>
4. edquota –u/-g 對應(yīng)用戶或者組> (大小k)
5. quotaon 掛載目錄> 啟用配額
6. quotaoff 掛載目錄> 取消配額
Yum服務(wù)器搭建(以光盤源為例)
1.拷貝光盤Server下所有文件到服務(wù)器:
cp –r /misc/cd/Server /file/
2.刪除/Server/repodata/TRANS.TBL文件(此文件可能導(dǎo)致錯(cuò)誤)
rm –f /Server/repodata/TRANS.TBL
3.安裝相關(guān)文件包:
rpm -ivh /misc/cd/Server/createrepo-0.4.4-2.fc6.noarch.rpm
4.建立yum檔案
createrepo -g /file/Server/repodata/comps-rhel5-server-core.xml /file/Server/
yum本地設(shè)置
在/etc/yum.repos.d/下新建1以.repo結(jié)尾的文件。內(nèi)容如下
[Server]
name=RHEL5
baseurl=file:///file/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
之后yum本地服務(wù)器架設(shè)完畢。如需提供公網(wǎng)服務(wù),可將對應(yīng)目錄架設(shè)到ftp(匿名訪問)或http,客戶機(jī)baseurl段設(shè)為ftp地址既可。
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u1/51878/showart_1168038.html |
|