Time of Update: 2015-10-10
標籤:原先系統為windows8.1後來裝上centos7後無win8系統引導,開啟電腦進入引導介面按C 進入grub介面 輸入“cat (hd0,” 按tab可查看到windows8地址為“hd0,msdos1”進入centos7系統 --開啟終端
Time of Update: 2015-10-31
標籤:安裝環境:CentOS-6.3安裝方式:源碼安裝 軟體:apache-tomcat-7.0.29.tar.gz:http://tomcat.apache.org/download-70.cgi安裝前提系統必須已經安裝配置了JDK6+,如果不會安裝請參考《CentOS-6.3安裝配置JDK-7》。安裝tomcat將apache-tomcat-7.0.29.tar.gz檔案上傳到/usr/local中執行以下操作:[[email protected] local]# cd
Time of Update: 2015-10-28
標籤:#運行:cat /dev/net/tun#返回的必須是:cat: /dev/net/tun: File descriptor in bad state #運行:cat /dev/ppp#返回的必須是:cat: /dev/ppp: No such device or address # 方式一安裝bash -c "$(curl http://files.cnblogs.com/files/yzpopulation/vpn_centos6.sh)"# 方式二安裝wget http://www.
Time of Update: 2015-10-27
標籤:問題描述: CentOS 6.x minimal(最小化) 安裝, CentOS yum install net-tools 時出現“Could not retrieve mirrorlist ”, 原因: 網路出現問題 a.修改網路設定 vi /etc/sysconfig/network-script/ifcfg-eth0動態擷取IP配置(可選1): ONBOOT=yes MM_Controlled=no BOOTPROTO=dhcp設定固定IP配置(可選2):
Time of Update: 2015-10-26
標籤:linux 命令
Time of Update: 2015-10-26
標籤:轉:http://www.tuicool.com/articles/YRnQVfq CentOS系統下如果希望向外域發送郵件,需要配置sendmail+dovecot等一系列工具。其實不用這麼麻煩,只要mutt+msmtp就可以實現向外域發送郵件的功能了。本文基於CentOS6 64bit。1,安裝配置msmtp$ yum install gcc gcc-c++ gnutls gnutls-devel gnutls-utils openssl openssl-devel
Time of Update: 2015-10-23
標籤:安裝vsftpd程式。sudo yum -y install vsftpd啟動ftp服務。sudo service vsftp start添加ftp使用者,並設定密碼。sudo useradd -g ftp -s /sbin/nologin ftp-wwwsudo passwd ftp-www建立ftp-www作為ftp根目錄,同時建立子目錄incoming作為上傳目錄。注意,vsftpd新版本要求根目錄不能可寫。sudo mkdir /var/ftp-wwwsudo mkdir
Time of Update: 2015-10-22
標籤:http://zhidao.baidu.com/link?url=KwpGOdwFw1oxnL71pvPlfRgbRL_IuQeYRzIYJjiDb2SnX0dQye5yUXqHAGSyuD6u2nDgfe85qNdpNxFITlAe3a跟我的現象一樣 應該是刪了/root 目錄下的檔案 通過這樣修複下應該就可以了,到你自己家目錄拷貝bashrc和bash_profile 到/root目錄即可-bash-4.1# cd /home/shiwenzhao 我的家目錄-bash-4.1
Time of Update: 2015-10-22
標籤:配置centos 6.5的yum源問題:redhat 6.4 預設內建的 yum 源需要註冊,才能更新。解決方案:刪除預設的yum源,手動設定Centos 6.5的yum源。我這裡的系統是RedHat 6.4的所以在 http://mirrors.163.com/centos/6/os/x86_64/Packages/ 下載相關rpm包1.首先尋找系統自動安裝了那些yum包 # rpm -qa | grep
Time of Update: 2015-10-20
標籤: 基於安全的理由,如果使用者連線到 SSH Server 後閑置,SSH Server 會在超過特定時間後自動終止 SSH 連線。以下是設定終止連線時間的方法: 1. 開啟 /etc/ssh/sshd_config 檔案,裡面有一個參數為 ClientAliveCountMax,指如果發現用戶端沒有相應,則判斷一次逾時,這個參數設定允許逾時的次數。 2. 如果這一行最前面有#號,將那個#號刪除,並修改想要的次數,比如5 。 3. 找到ClientAliveInterval
Time of Update: 2015-10-20
標籤:centos7 運行層級查看當前運行層級:# runlevel修改預設運行層級:#systemctl set-default multi-user.target //修改為層級3(文字模式)各運行層級:runlevel0.target => poweroff.targetrunlevel1.target => rescue.targetrunlevel2.target => multi-user.targetrunlevel3.target =&
Time of Update: 2015-10-17
標籤:yum install git版本號碼是太老,它是1.7.1.在這裡,我們將介紹如何編譯和安裝Git 1.8yum install curl-devel expat-devel gettext-devel openssl-devel zlib-develcd /usr/srcwget https://git-core.googlecode.com/files/git-1.8.5.3.tar.gztar xzf git-1.8.5.3.tar.gzcd
Time of Update: 2015-10-16
標籤:1、登入mirrors.163.com2、點擊centos後面的“centos使用協助”3、下載CentOS7-Base-163.repo4、sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup5、把CentOS7-Base-163.repo放到/etc/yum.repos.d/目錄6、驗證163的repo是否正確配置。指令如下: yum
Time of Update: 2015-10-14
標籤:Ansible是一款為類Unix系統開發的自由開源的配置和自動化工具。它用Python寫成,類似於Chef和Puppet,但是有一個不同和優點是我們不需要在節點中安裝任何用戶端。它使用SSH來和節點進行通訊。本篇中我們將在CentOS 7上安裝並配置Ansible,並且嘗試管理兩個節點。Ansible 服務端 – ansible.linuxtechi.com ( 192.168.1.15 )節點 – 192.168.1.9 ,
Time of Update: 2015-10-13
標籤:功能指令可用參數樣本說明建立檔案夾mkdir mkdir etc/temp在目前的目錄的etc檔案夾下建立temp檔案夾建立檔案vi vi abc.sh建立名為abc.sh的指令碼刪除rm rm abc.sh刪除abc.sh -rrm -r folder遞迴刪除folder目錄及其子目錄,也可用於檔案移動/重新命名mv mv abc.sh xyz.sh將abc.sh重新命名為xyz.sh mv
Time of Update: 2015-10-12
標籤:以root使用者進行部署,python源也可以使用 http://mirrors.aliyun.com/pypi/simple/ 修改系統 更改SElinux的設定檔 /etc/selinux/config,SELINUX=disabled ssh-keygen ~/.ssh/authorized_keys 寫入 id_rsa.pub 安裝Python 2.7.9 yum -y update wget
Time of Update: 2015-09-28
標籤:本人在帝都,覺得首都線上(yun-idc.com)的yum源速度不錯,故選它了。具體操作方法是將以下檔案儲存到 /etc/yum.repos.d/yun-idc.repo 即可。[base]name=CentOS-$releasever -
Time of Update: 2015-09-27
標籤:1、切換使用者 su 使用者名稱(root)2、查看目前的目錄的檔案和檔案夾 ls 3、進入其他目錄 cd 目錄名稱4、建立檔案夾 mkdir 檔案名稱5、刪除檔案 rm -t 檔案名稱 (-r是遞迴的刪除參數表中的目錄及其子目錄。 目錄將被清空並且刪除。 當刪除目錄包含的具有防寫保護的檔案時使用者通常是被提示的。)6.移動檔案或檔案夾 mv lijun lijun1 (lijun表示源檔案或目錄,lijun1表示目標檔案或目錄)
Time of Update: 2015-10-19
CentOS下 command not found 相關問題的解決今天在開啟centos系統的時候,突然全部命令都不能正常使用了,如:shutdown reboot ssh scp這些。全部都顯示 command not found。費解!!! 前幾天還好好的。找出設定檔 /root/.bash_profile進行修改:1、進入root路徑2、.bash_profile是隱藏檔案,用命令:ls -la 顯示出來3、vi .bash_profile 修改如下:# .bash_profile#
Time of Update: 2015-10-19
解決CentOS 6.5下command not found相關問題今天在開啟centos系統的時候,突然全部命令都不能正常使用了,如:shutdown reboot ssh scp這些。全部都顯示 command not found。費解!!! 前幾天還好好的。找出設定檔 /root/.bash_profile進行修改:1、進入root路徑2、.bash_profile是隱藏檔案,用命令:ls -la 顯示出來3、vi .bash_profile 修改如下:# .bash_profile#