0%

Fedora簡單配置

設置root密碼

1
2
#回車后輸入密碼并重復
$ sudo passwd root

切換用戶至管理員

1
$ su

添加國內倉庫源

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# cd /etc/yum.repos.d

##備份
# cp fedora.repo fedora.repo_bak
# cp fedora-updates.repo fedora-updates.repo_bak

##阿里巴巴
# wget -O /etc/yum.repos.d/fedora.repo http://mirrors.aliyun.com/repo/fedora.repo
# wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.aliyun.com/repo/fedora-updates.repo

##網易
# wget http://mirrors.163.com/.help/fedora-163.repo
# wget http://mirrors.163.com/.help/fedora-updates-163.repo

##搜狐
# wget http://mirrors.sohu.com/help/fedora-sohu.repo
# wget http://mirrors.sohu.com/help/fedora-updates-sohu.repo

更新源緩存

1
2
# dnf clean all 
# dnf makecache

刪除舊的內核

1
2
3
4
5
# uname -a  
# rpm -qa |grep kernel

#查詢所有內核,有兩個版本的,舊內核版本為4.1的
# yum remove kernel-core-4.16.*

更新系統

1
# dnf upgrade

安裝常用軟件

vim編輯器

1
# dnf install vim

防火墻界面

1
# dnf install firewall-config

sshd

1
2
3
4
5
#啟動ssh服務
#systemctl start sshd

#開機自啟ssh服務
#systemctl enable sshd
layicr 微信支付

微信支付

layicr 支付寶

支付寶