人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動(dòng)態(tài)

Fedora系統(tǒng)的一些基本配置分享

發(fā)布日期:2021-12-09 00:59 | 文章來源:腳本之家

1)關(guān)閉selinux

修改/etc/selinux/config文件中的SELINUX="" 為 disabled,然后重啟。

2) 關(guān)閉firewall

復(fù)制代碼
代碼如下:

systemctl disable iptables.service

3) 啟動(dòng)sshd

復(fù)制代碼
代碼如下:

yum install openssh-server openssh-server-sysvinit
systemctl enable sshd.service

如果沒有關(guān)閉防火墻,還要打開22端口

復(fù)制代碼
代碼如下:

iptables -I INPUT -p -tcp --dport 22 -j ACCEPT

4) 系統(tǒng)清理
a)清除yum的cache:

復(fù)制代碼
代碼如下:

yum clean all
yum clean cache

b) 清除無用的包

復(fù)制代碼
代碼如下:

package-cleanup --orphans
package-cleanup --dupes
package-cleanup --problems
package-cleanup --oldkernel


5)本地源設(shè)置
將Fedora 17 DVD ISO添加為源

復(fù)制代碼
代碼如下:

$sudo mkdir /mnt/f17dvd
$mount Fedora-17-i386-DVD.iso /mnt/f17dvd


第二步在/etc/yum.repos.d目錄添加源install-dvd.repo:

復(fù)制代碼
代碼如下:

[install-dvd]
name=dvd
baseurl=file:///mnt/f17dvd
enabled=1
gpgcheck=0


之后使用yum的相關(guān)參數(shù)可以忽略其他的源而只使用指定源。這樣就可以不下載而直接安裝:

復(fù)制代碼
代碼如下:
$ yum --disablerepo=* --enablerepo=install-dvd list available

PS: 如何將源同步到本地:

從fedora的官網(wǎng)http://mirrors.fedoraproject.org/publiclist//Fedora/ 可以查到所有的鏡像站點(diǎn),國內(nèi)有幾個(gè)比較
著名的鏡像,比如中科大,163, 還有搜狐.

比如從sohu同步x86_64的二進(jìn)制包:

復(fù)制代碼
代碼如下:

wget -m ftp://mirrors.sohu.com/fedora/releases/17/Everything/x86_64/os/
wget -m ftp://mirrors.sohu.com/fedora/updates/17/x86_64/

然后將同步下來的目錄放入ftp的根目錄,在/etc/yum.repo.d/下面創(chuàng)建一個(gè)local.repo和local-updates.repo

復(fù)制代碼
代碼如下:

[fedora-local]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=ftp://192.168.0.5/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0</p> <p>
[fedora-local-updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=ftp://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
enabled=1
gpgcheck=0

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對(duì)1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部