Time of Update: 2016-01-07
標籤:centos7在linux中簡單的尋找檔案與目錄大小很簡單#已易讀的格式顯示指定目錄或檔案的大小,-s選項指定對於目錄不詳細顯示每個子目錄或檔案的大小du -sh [dirname|filename] 如: 目前的目錄的大小: 代碼如下複製代碼du -sh . 目前的目錄下個檔案或目錄的大小: 代碼如下複製代碼du -sh * 顯示前10個佔用空間最大的檔案或目錄: 代碼如下複製代碼du -s * | sort -nr
Time of Update: 2016-01-05
標籤:centos 鏡像 安裝LiveCD 和 LiveDVD 是可以直接光碟片運行系統,但不能安裝,兩者差別在於容量大小,dvd包含的軟體要多一些。netinstall 是用於網路安裝和系統救援的鏡像檔案。minimal 這個鏡像檔案用於安裝一個非常基本的 CentOS系統,包含了一些基本所需的最小安裝包。DVD 鏡像檔案包含了完整的發布版,可以用於安裝完整的 CentOS 系統。centos6.7 64位 sohu源地址http://mirrors.sohu.com/centos/
Time of Update: 2016-01-05
標籤:[[email protected] /]# mkdir swap [[email protected] /]# cd swap [[email protected] swap]# dd if=/dev/zero of=swap1 bs=1024 count=524288記錄了524288+0 的讀入記錄了524288+0 的寫出536870912位元組(537 MB)已複製,2.15306 秒,249 MB/秒 [[email&
Time of Update: 2015-12-31
標籤:centos kvm 搭建環境作業系統:CentOS 6.5 final x86_64KVM:qemu-kvm-0.12.1.2-2.479.el6_7.3.x86_64工具:Win7和vnc-viewer(先在伺服器端裝好VNC,通過VNC viewer串連伺服器CentOS)一、安裝KVM及相關軟體1、KVM 需要有 CPU 的支援(Intel vmx 或 AMD svm),在安裝 KVM 之前檢查一下 CPU
Time of Update: 2015-12-29
標籤:運行環境 防火牆 運行環境 Centos6.7[[email protected] ~]# vim ipt.sh#!/bin/bashipt="/sbin/iptables"$ipt -F$ipt -P INPUT ACCEPT#$ipt -t nat -P INPUT DROP$ipt -P OUTPUT ACCEPT$ipt -A INPUT -p tcp -s 10.0.0.1 --dport 20 -j
Time of Update: 2015-12-22
標籤:msmtp mutt 1:搭建配置msmtp下載msmtp包:官方地址:http://msmtp.sourceforge.net/download.html編譯,安裝(官方下載的包為tar.xz格式):#xz -d msmtp-1.6.3.tar.xz#tar -xvf msmtp-1.6.3.tar#cd msmtp-1.6.3#./configure --pr
Time of Update: 2015-12-22
標籤:環境: 系統硬體:vmware vsphere (CPU:2*4核,記憶體2G) 系統版本:Centos-6.5-x86_64 路由器網關:192.168.1.1 步驟: 1.查看網路MAC地址 [[email protected] ~]# cat /etc/udev/rules.d/70-persistent-net.rules 顯示如下資訊 # PCI device 0x15ad:0x07b0 (vmxnet3) SUBSYSTEM=="net"
Time of Update: 2015-12-21
標籤:VirtualBox error: Kernel driver not installed (rc=1908)Hi all, Let me first say that this is my final resort after googling this issue for the last several hours. None of the solutions that I have found are working for me. My VirtualBox (PUEL,
Time of Update: 2015-12-14
標籤:LAMP環境搭建(編譯安裝CentOS+httpd2.2+mysql5.5+php5.4)首先準備以下壓縮包<ignore_js_op> (1)編譯安裝apache1、配置防火牆,開啟80連接埠、3306連接埠執行以下命令:#vi /etc/sysconfig/iptables添加以下兩條規則到22連接埠這條規則的下面-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Time of Update: 2015-12-10
標籤:筆記本自大一入手,只重裝過一次系統,從不曾拆機清灰過。讀研之後,日常工作與學習都在實驗室進行,筆記本一直在宿舍的桌子上落灰,只偶爾開啟來看個電影。上周末,心血來潮,把筆記本抱到實驗室拆了清灰,以前一直以為很難的事情,做了之後才發現很簡單,第一次做,仍然成就感滿滿。作為一隻想做程式媛的懶人,不妨搞一搞傳說中的linux吧!雖然開始的有點晚。我就抱著這樣的想法,去跟實驗室的小夥伴要系統安裝盤。聽說從windows換到linux會格掉所有硬碟,於是我花了一晚上清理copy出積攢了四五年的資料,斷
Time of Update: 2015-12-10
標籤:centos換源 http://mirrors.163.com/.help/centos.html mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupWget http://mirrors.163.com/.help/CentOS6-Base-163.repoYum clean allYum makecache Centos
Time of Update: 2015-12-10
標籤:抄襲於:http://jingyan.baidu.com/article/6d704a13f0d61128db51ca82.html?qq-pf-to=pcqq.temporaryc2c 我們在redhat中使用yum命令的時候,可能會遇到這種情況,yum install build-essential提示This system is not registered with
Time of Update: 2015-12-09
標籤:防火牆的基本操作命令查詢防火牆狀態:[[email protected] ~]# service iptables status<斷行符號>停止防火牆:[[email protected] ~]# service iptables stop <斷行符號>啟動防火牆:[[email protected] ~]# service iptables start <斷行符號>重啟防火牆:[[
Time of Update: 2015-12-09
標籤:1. 卸載原Open JDK 查看已安裝包rpm -qa | grep java 如果已經安裝有Open JDK,可能會列出類似下面的內容:tzdata-java-2015e-1.el6.noarchjava-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.x86_64java-1.7.0-openjdk-1.7.0.79-2.5.5.4.el6.x86_64 卸載rpm -e
Time of Update: 2015-12-09
標籤:centos zabbix 筆記,暫無圖,有時間再添加吧。準備好CentOS6,迷你安裝就可以,設定IP,測試internet,關閉Selinux,(後期可以再開啟Selinux,添加Zabbix相應的連接埠)安裝Zabbix軟體源:rpm -ivh
Time of Update: 2015-12-09
標籤:[1] 首先備份/etc/yum.repos.d/CentOS-Base.repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup[2] 進入yum源設定檔所在檔案夾[[email protected] yum.repos.d]# cd /etc/yum.repos.d/[3]
Time of Update: 2015-12-06
標籤:CentOS下添加使用者並且讓使用者獲得root許可權 http://www.centoscn.com/CentOS/config/2014/0810/3471.html 1、添加使用者,首先用adduser命令添加一個普通使用者,命令如下: #adduser tommy //添加一個名為tommy的使用者#passwd tommy //修改密碼Changing password for user tommy.New UNIX
Time of Update: 2015-12-03
標籤:centos zookeeper install環境:CentOS 6.7, java version "1.7.0_51, ZooKeeper 3.4.6環境:CentOS 6.7, jdk 1.7.0_51, ZooKeeper
Time of Update: 2016-01-10
標籤:最近在CentOS6.5上安裝wordpress,遇上一個問題,安裝好之後外網總是不能再網頁進行配置,想了半天應該是原始碼檔案的許可權問題,具體問題與解決如下:如果你的wordpress安裝目錄是wordpress,則通過預設嚮導配置會出現許可權不足的情況:Sorry, but I can’t write the wp-config.php file.You can create the wp-config.php manually and paste the
Time of Update: 2016-01-08
標籤:postfix gmail起因:[[email protected] ~]# echo 123|mail -s "123" [email protected][[email protected] ~]# smtp-server: 530 5.7.0 Must issue a STARTTLS command first. 71sm664699pfs.63 - gsmtp"/root/dead.letter" 11/317. . . message not