1.fedora21關閉防火牆
systemctl start/stop firewalld 啓動和關閉防火牆
systemctl disable firewalld 禁用防火牆
2.關閉selinux
SELinux的全稱是Security-Enhanced Linux。1、臨時關閉selinux。如果你想不關閉系統而暫時關閉,使用以下命令:setenforce 0。 2、開機不啓動:vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:enforcing - SELinux security policy is enforced.permissive - SELinux prints warnings instead of enforcing.disabled - No SELinux policy is loaded.SELINUX=修改加粗部分爲disabled。
# SELINUXTYPE= can take one of these two values:targeted - Targeted processes are protected, mls - Multi Level Security protection.SELINUXTYPE=targeted
3.安裝google瀏覽器後yum不可使用,因爲無法鏈接到google的源,將/etc/yum.repos.d/的google源刪掉就可以了
4.在windows用putty連虛擬機,我是vmware安裝的fedora,需要putty選擇ssh協議,並且fedora要安裝ssh,我直接 yum list openssh*
然後systemctl start sshd.service //開啓服務
systemctl enable sshd.service//開機自啓
即可putty鏈接虛擬機fedora
5.解壓文件
.tar.gz 格式解壓爲 tar zxvf xx.tar.gz
.tar.bz2 格式解壓爲 tar jxvf xx.tar.bz2
.tar.xz 格式解壓爲 tar xvJf xx.tar.xz