Time of Update: 2015-04-17
標籤:Linux下字型查看:#fc-list :lang=zh字型更改:首先找到相應的字型庫:simsun.ttf 宋體#mkdir -p /usr/share/fonts/truetype //建立相應的存放路徑#cp simsun.ttf /usr/share/fonts/truetype/ //將下載好的字型庫放此路勁下面並在 /usr/share/fonts/truetype/
Time of Update: 2015-04-17
標籤:1. Install aide software.[[email protected] ~]# yum install aide -y2. Modify aide configuration file.Basic cofigrations:# Define DB/Log location.@@define DBDIR /var/lib/aide@@define LOGDIR /var/log/aide# Define DB location and
Time of Update: 2015-04-17
標籤: linux系統是如何?對使用者的密碼的複雜度的檢查的呢?系統對密碼的控制是有兩部分組成:1 cracklib2 /etc/login.defspam_cracklib.so 才是控制密碼複雜度的關鍵檔案/lib/security/pam_cracklib.soredhat公司專門開發了cracklib這個安裝包來判斷密碼的複雜度# rpm -qa | grep cracklibcracklib-2.8.9-3.1 \\檢查軟體是否安裝cracklib-dicts-2.8.9-3.1 \\
Time of Update: 2015-04-17
標籤:使用 ls -aldrwxr-xr-x. 4 root root 100 Apr 26 15:05 cpulrwxrwxrwx. 1 root root 13 Apr 26 15:05 fd -> /proc/self/fdbrw-rw----. 1 root disk 7, 0 Apr 26 15:05 loop0crw-rw----. 1 root lp 6, 2 Apr 26 15:05
Time of Update: 2015-04-17
標籤:Linux把實體記憶體分為了固定統一大小的塊,稱為page(頁框),一般為4KB。Linux採用4KB頁框大小作為標準的實體記憶體配置單位,核心用資料結構page描述一個頁框的狀態資訊,其實頁是進程的概念,頁框裡面裝的是頁 linux核心中使用struct page的頁描述符表示頁框的狀態,每個物理頁框對應一個page結構體,也就是頁描述符。頁描述符是按照數組的方式組織的,這個數組的首地址存在於mem_map這個結構體指標中。如果知道了頁框號pfn則可以通過pfn<<
Time of Update: 2015-04-17
標籤:總結:~~~~~~~~~~~~~~~~~~~~fdisk -lpvcreate /dev/sdbvgextend VolGroup /dev/sdblvextend -L +180G /dev/mapper/VolGroup-lv_root resize2fs /dev/VolGroup/lv_root ~~~~~~~~~~~~~~~~~~~ 1, 在VM WARE ESXI裡為客戶機增加一塊新的硬碟2, 重啟客戶機3, 用FDISK
Time of Update: 2015-04-17
標籤:elf格式 可執行檔 入口地址 靜態連結 execve 陳鐵 + 原創作品轉載請註明出處 +
Time of Update: 2015-04-17
標籤:linux 壓力測試 監測 一般做壓力測試都需要監測伺服器的狀態,以評估伺服器負載能力,除了可以通過工具(如zabbix)進行分析之外,還可以使用命令來分析1.uptime命令檢查伺服器平均負載[[email protected] ~]# uptime 20:57:23 up 13 days, 2:00, 2 users, load average: 0.00, 0.00,
Time of Update: 2015-04-17
標籤:進入安裝目錄,啟動memcached:/usr/local/memcached/bin/memcached -d -c 10240 -m 1024 -u root擷取運行狀態:echo stats | nc localhost 11211(可以查看出pid) 或使用ps -ef|grep memcached 停止memcached:kill -9 pid (-9表示強制殺死,pid 為進程的進程標識符)-d 選項是啟動一個守護進程,-m
Time of Update: 2015-04-17
8 個 Git 的小技巧git 已經成為了我日常必備工具之一,我總結我幾乎每天使用的8個有用(且簡潔)的小技巧。使用-p選擇性添加當你想提交內容時,你可以通過使用 git commit -am 來選擇所有檔案或使用 git add file 來添加特定檔案。然而,有時候你可能想只添加檔案的一部分來提交。你可以用 git add -p 互動性地選擇哪些你想提交的部分。在選擇完你所想要提交的區塊後,只需要做一個 git commit(沒有 -a),這樣只會提交選中的部分。同樣可以使用 git
Time of Update: 2015-04-17
Linux 下配置多重路徑1、安裝多重路徑軟體包:device-mapper-1.02.67-2.el5device-mapper-event-1.02.67.2.el5device-mapper-multipath-0.4.7-48.el5[root@RKDB01 Server]# rpm -ivh device-mapper-1.02.67-2.el5.x86_64.rpm warning: device-mapper-1.02.67-2.el5.x86_64.rpm: Header V3
Time of Update: 2015-04-17
Linux系統普通使用者怎麼關機?下載安裝了Ubuntu 14.04伺服器版,安裝過程中建立了一個普通使用者,使用普通使用者登入後無法執行shutdown、init、halt、reboot命令,提示需要root許可權才可以執行這些命令。安裝過程中也沒有建立root使用者,這可怎麼辦?通過搜尋找到了答案,王婆賣瓜和大家分享一下,有遇到和我同樣情況的可以試試。普通使用者登入的提示符為$$vi sudo添加一行bkjia
Time of Update: 2015-04-17
Ubuntu
Time of Update: 2015-04-17
代理上網中Linux下YUM無法使用的解決方案背景:公司的電腦是通過代理上網的,VMware下一台CentOS 6.5_64的系統,網路模式為NAT。可以ping的通外網,但是yum安裝東西總是報錯,如[root@www.bkjia.com ~]#yum list Loaded plugins: fastest, refresh-packagekit, securitySetting up Remove ProcessNo Match for argument:
Time of Update: 2015-04-17
Git 安裝和配置(網路代理程式的設定)安裝 gitsudo apt-get install git查看git配置git config --list或者~/gedit .gitconfiggit設定代理(一般用於公司內部網路,如果上網正常,不需要設定)git config --global http.proxy ip:portgit使用者名稱git config --global user.name "FIRST_NAME LAST_NAME"配置emailgit config
Time of Update: 2015-04-17
怎樣升級到 Ubuntu 15.04 (Beta)Ubuntu 15.04 Vivid Vervet 將會在2015年4月23日正式發布,該版本預設採用 Kernel 3.19.3 核心。可能很多人更想新版本中採用 Kernel 4.0,因為 Linux Kernel 4.0 在核心補丁時無需重啟系統,該技術基於 Ksplice 實現。很不幸,Kernel 4.0 和 Kernel 3.19.4 在 Ubuntu Vivid 核心凍結之後才發布,所以 Canonical
Time of Update: 2015-04-17
磁碟儲存結構與檔案恢複實驗(FAT檔案系統)實驗地點:主樓A2-412 一、實驗室名稱:主樓實驗室A2-412
Time of Update: 2015-04-17
LinuxRegexsed 詳述sed、awk工具可以實現文本替換並且把替換的文本輸出到螢幕上sed和awk都是流式編輯器,是針對文檔的行來操作的。sed通常用來替換操作。樣本的常值內容,以下操作根據此文本。[root@bkjia ~]# cat test.txt rot:x:0:0:rot:/rot:/bin/bashroot:x:0:0:root:/root:/bin/bashdaemon:x:2:2:daemon:/sbin:/sbin/nologinrooooot:x:0:0
Time of Update: 2015-04-17
RHEL5 多重路徑配置1 檢查軟體包是否安裝[root@pcvmaster ~]# rpm -qa|grep
Time of Update: 2015-04-17
Fedora 21 設定開機啟動指令碼Fedora 21 設定開機啟動指令碼sudo touch /etc/rc.d/rc.localsudo vim /etc/rc.d/rc.local在/etc/rc.d/rc.local檔案中寫入, 然後使用:wq命令 儲存並退出.#!/bin/bash # 在這個檔案中寫入開機啟動需要執行的命令賦予可執行許可權:sudo chmod+x /etc/rc.d/rc.local設定開機啟動:sudo systemctl enable