CentOS6.4
2019獨角獸企業重金招聘Python工程師標準>>>
安裝
Q:sudo xxx的時候提示“xxx不在sudoers列表中”
A:
gvim /etc/sudoers #在root后面添加一行 root ALL=(ALL) ALL lee ALL=(ALL) ALL
Q:Win7+CentOS6.4,如何修改默認啟動項
http://blog.csdn.net/dimons/article/details/7849114
調換Win7與CentOS6對應的代碼
Q:修改源列表
網絡源+光盤源(先弄網絡源)
cd /etc/yum.repos.d/ gvim CentOS-Base.repo 下面貼上自己的源列表 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # #[base] name=CentOS-$releasever - Base mirrorlist=http://http://mirror.zjustu.org/centos/$releasever/os/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.zjustu.org/centos/RPM-GPG-KEY-CentOS-6 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://http://mirror.zjustu.org/centos/$releasever/updates/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.zjustu.org/centos/RPM-GPG-KEY-CentOS-6 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://http://mirror.zjustu.org/centos/$releasever/extras/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.zjustu.org/centos/RPM-GPG-KEY-CentOS-6 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://http://mirror.zjustu.org/centos/$releasever/centosplus/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.zjustu.org/centos/RPM-GPG-KEY-CentOS-6 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://http://mirror.zjustu.org/centos/$releasever/contrib/$basearch #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.zjustu.org/centos/RPM-GPG-KEY-CentOS-6 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 參照http://lug.ustc.edu.cn/wiki/mirrors/help/centos 進行的修改
Q:如何鏈接VPN
A:到這個頁面下載安裝包 http://pkgs.org/download/xl2tpd
再參照這個頁面的說明安裝zjuvpn包 ? http://zjuwiki.zju.edu.cn/index.php/VPN
Q:如何解壓縮xx.tar.gz, xx.tar.bz2文件
A:
tar -xzvf xxxxx.tar.gz tar -xjvf xxxxx.tar.bz2
轉載于:https://my.oschina.net/zjlaobusi/blog/144447
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
- 上一篇: windows下增加python的库搜索
- 下一篇: 【翻译】为什么 goroutine 的栈