Time of Update: 2016-08-06
標籤: LANGLC_*的預設值,是最低層級的設定,如果LC_*沒有設定,則使用該值。類似於 LC_ALL。 LC_ALL它是一個宏,如果該值設定了,則該值會覆蓋所有LC_*的設定值。注意,LANG的值不受該宏影響。1. LC_COLLATE定義該環境的排序和比較規則2. LC_CTYPE用於字元分類和字串處理,控制所有字元的處理方式,包括字元編碼,字元是單位元組還是多位元組,如何列印等。是最重要的一個環境變數。3.
Time of Update: 2016-08-06
標籤:定位、尋找檔案的命令 命令功能命令功能which從path中找出檔案的位置find找出所有符合要求的檔案whereis找出特定程式的路徑locate 從索引中找出檔案位置9.1 which文法which command說明依序從path環境變數所列的目錄中找出command的位置,並顯示完整路徑的名稱。在找到第一個合格程式檔案時,就立刻停止搜尋,省略其餘未搜尋目錄。範例,找出ls命令的程式檔案的位置:which ls系統輸出:/usr/bin/ls9.2
Time of Update: 2016-08-06
標籤:轉自http://mirrors.163.com/.help/centos.html使用說明首先備份/etc/yum.repos.d/CentOS-Base.repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup下載對應版本repo檔案,
Time of Update: 2016-08-05
標籤:centos 時間同步 1、確認已經ntp程式包: # yum install ntp 2、配置時間源 # vi /etc/ntp.conf server pool.ntp.org #可選擇其他優先伺服器server 2.cn.pool.ntp.orgserver 1.asia.po
Time of Update: 2016-08-04
標籤:svn配置1.yum install subversion mysql-server httpd mod_dav_svn mod_perl sendmail wget gcc-c++ make unzip perl* ntsysv vim-enhanced2.mkdir /home/svn//建立一個目錄用於儲存SVN所有檔案3.svnadmin create /home/svn/project//建立一個版本倉庫4.mkdir project project/server
Time of Update: 2016-08-01
標籤: 注意:本人還沒有發現這個源有什麼優點!!!![[email protected] yum.repos.d]# lsCentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repoCentOS-Debuginfo.repo CentOS-Media.repo[[email protected] yum.repos.d]# rpm -ivh
Time of Update: 2016-07-30
標籤:網路 centos 今天在配置新系統的時候,因為有兩個網卡,一個eth0(192.168.118.132):對外服務,eth1(192.168.133.129):對內服務。安裝好系統後,使用了dhclient自動擷取IP,然後就分別配置了eth0和eth1。配置如下:DEVICE=eth0HWADDR=00:0C:29:70:84:8DTYPE=EthernetUUID=6eaaa43f-fe2a-4e81-8bc1-89
Time of Update: 2016-07-29
標籤:萬用字元 使用者 預定義符 linux centos 檔案萬用字元使用舉例* 匹配零個或者多個字元
Time of Update: 2016-07-28
標籤:查看核心版本這個命令適用於所有的linux,包括Redhat、SuSE、Debian、Centos等發行版。[email protected] ~ # unameLinux[email protected] ~ # uname -r2.6.18-164.el5[[email protected] ~]# uname -aLinux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35
Time of Update: 2016-07-24
標籤:centos配置現象:ping內網正常ping外網ip,網域名稱均無法正常,返回錯誤提示:connect: Network is
Time of Update: 2016-07-23
標籤:系統管理員 網路連接 screen 伺服器 遠程協助
Time of Update: 2016-07-23
標籤:首先保證作業系統中已經安裝好了gcc,將apue.2e解壓後拷貝到linux作業系統中,然後輸入[[email protected] apue.2e]# cd lib進入apue.2e的lib檔案夾,輸入[[email protected] lib]# make -f
Time of Update: 2016-07-22
標籤:1)[[email protected] ~]# cat /proc/versionLinux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14 EDT 20102)[[email protected] ~]# uname -aLinux
Time of Update: 2016-07-21
標籤: [[email protected] ~]# yum search pintaLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * epel: mirrors.ustc.edu.cn * extras: mirrors.163.com *
Time of Update: 2016-07-19
標籤:dockerfile1、安裝docker並啟動docker,不在贅述2、建立使用Dockerfile安裝sshd服務的目錄,名字路徑自訂mkdir sshd_centoscd sshd_centos3、編輯啟動sshd服務的指令檔vim run.sh內容為#!/bin/bash/usr/sbin/sshd -D4、產生宿主機和docker容器通訊的密鑰ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key650) this.width=
Time of Update: 2016-07-18
標籤:設定檔 網卡 虛擬機器 網路 centos7 vm 環境win7 64bitVM workstation 10CentOS 7NAT模式訪問網路,所有虛擬機器都配置在同一個網段內即192.168.0.1~192.168.0.2542.查看並修改預設配
Time of Update: 2016-07-15
標籤:RedHat linux 預設是安裝了yum軟體的,但是由於啟用認證的原因讓redhat無法直接進行yum安裝一些軟體,如果我們需要在redhat下直接yum安裝軟體,我們只用把yum的源修改成CentOS的就好了,然後把源裡面的變數全部修改成實際的值,這樣就能使用yum直接安裝我們需要的軟體了。使用說明 (先將/etc/yum.repos.d的內容移到其他地方,將下載後的.repo複製到/etc/yum.repos.d中)cd /etc/yum.repos.d/mv
Time of Update: 2016-07-13
標籤:CentOS5.x: http://mirrors.163.com/.help/CentOS5-Base-163.repoCentOS6.x: http://mirrors.163.com/.help/CentOS6-Base-163.repo CentOS 163 yum源使用:1、先關閉 fastestmirrorvim /etc/yum/pluginconf.d/fastestmirror.conf設定 enable=02、先備份
Time of Update: 2016-07-08
標籤:單機模式: 1) 首先下載zookeeper壓縮包, 這裡採用zookeeper3.4.8....wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz 2) 解壓縮 首先建立檔案夾,這裡放到/user/zookeeper/檔案夾下mkdir zookeeper1 mkdir zookeeper2 mkdir
Time of Update: 2016-07-07
標籤:centos 6.5 zabbix 3.0 CentOS 6.5 + LAMP 安裝Zabbix 3.0 關閉:iptables&Selinux服務#iptables -F#iptables -nv -L 查看SELinux狀態:/usr/sbin/sestatus -v ##如果SELinux status參數為enabled即為開啟狀態SELinux