Time of Update: 2015-03-30
標籤: 使用sudo可以在以非root使用者登入時臨時獲得root許可權,並執行需要的命令。可以使用sudo的使用者可以叫做sudoer。 添加sudoer的方法(假設您已經安裝sudo):執行 # visudo 或 # sudoedit 提示: 有些發行版的sudo提供了sudoedit,有的則提供了visudo,功能上基本是一樣的。你也可以使用其他編輯器如vi進行編輯/etc/sudoers,但由於檔案是唯讀,請強制儲存(如w!)或去除唯讀屬性再儲存。尋找
Time of Update: 2015-03-30
標籤:一.安裝依賴包每次安裝軟體都必須,預設會少幾個包,必須安裝yum install autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel gcc 二.下載nginx和相關模組nginx:可以去官網 http://nginx.org/ 下載最新版wget
Time of Update: 2015-03-30
標籤: 以編譯netfilter log模組為例,核心目錄為linux-3.18.91.確認所編譯模組在.config中的配置參數,可以通過make menuconfig查看,在linux-3.18.9/net/netfilter/Makefile中為: obj-$(CONFIG_NETFILTER_XT_TARGET_LOG) += xt_LOG.o通過make menuconfig
Time of Update: 2015-03-30
標籤:backtrace用於列印函數呼叫堆疊/******************************************************************************** File Name : backtrace.c* Author : zjw* Email : [email protected]* Create Time : 2015年03月30日 星期一 09時44分15秒********
Time of Update: 2015-03-30
標籤:本原創文章屬於《Linux大棚》部落格。部落格地址為http://roclinux.cn。文章作者為roc希望您能通過捐款的方式支援Linux大棚部落格的運行和發展。請見“關於捐款”==tr指令從標準輸入裝置讀取資料,經過字串轉譯後,輸出到標準輸出裝置。cat filename |tr u n :用於在螢幕上將filename檔案中的u替換為n,而實際檔案中未作替換cat filename | tr -d abc
Time of Update: 2015-03-29
標籤:linux tomcat 在Linux系統下,重啟Tomcat使用命令操作的!首先,進入Tomcat下的bin目錄cd /usr/local/tomcat/bin使用Tomcat關閉命令./shutdown.sh查看Tomcat是否以關閉ps -ef|grep java如果顯示以下相似資訊,說明Tomcat還沒有關閉root 7010 1 0 Apr19 ? 00:30:13
Time of Update: 2015-03-30
標籤:linux 虛擬機器 kickstart 今天晚上在這裡和大家分享一下如何利用kickstart全自動安裝Linux,當然還有別的工具可以全自動的安裝Linux,每個工具都有它自己的優點和缺點,選擇一個適合你的就好了。 需要的軟體包:nfs* dhcp*
Time of Update: 2015-03-29
標籤: ssh的應用之一就是做SOCKS5代理, SOCKS5是一個代理協議,它在使用 TCP/IP協議通訊的終端機器和伺服器機器之間扮演一個中介角色,使得內部網中的終端機器變得能夠訪問 Internet網中的伺服器,或者使通訊更加安全。SOCKS5 伺服器通過將終端發來的請求轉寄給真正的目標伺服器, 類比了一個終端的行為。在這裡,終端和SOCKS5之間也是通過TCP/IP協議進行通訊,終端將原本要發送給真正伺服器的請求發送給SOCKS5服務
Time of Update: 2015-03-29
標籤: 我們常常會碰到忘記rootpassword的情況,以下是解決之道, 此方法使用絕大多數的Linux發行版: 1. 首先進入grub 2. 在須要編輯的入口處,按下e,在quite後增加 init=/bin/bash,按CTRL+x啟動。註:這裡的quite一般 處於網上最普遍的說法 - 第二行,也就是指定kernel的
Time of Update: 2015-03-29
標籤:第一步:下載jdk-7-linux-i586.tar.gzwget -c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz (註:如果下載不下來,建議使用迅雷下載,然後拷貝到Linux系統上。) 第二步:解壓安裝sudo tar zxvf ./jdk-7-linux-i586.tar.gz &nbs
Time of Update: 2015-03-28
標籤:1.源路徑:/etc/apt/source.list網易源:deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiversedeb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiversedeb http://mirrors.163.com/ubuntu/ precise-security
Time of Update: 2015-03-28
標籤:Linux將虛擬位址空間劃分為兩個部分,分別稱為核心空間和使用者空間
Time of Update: 2015-03-28
標籤:1. 函數說明pipe(建立管道):1) 標頭檔 #include<unistd.h>2) 定義函數: int pipe(int filedes[2]);3) 函數說明: pipe()會建立管道,並將檔案描寫敘述詞由參數filedes數組返回。
Time of Update: 2015-03-28
標籤:OpenCV is the most popular and advanced code library for Computer Vision related applications today, spanning from many very basic tasks (capture and pre-processing of image data) to high-level algorithms (feature extraction, motion tracking,
Time of Update: 2015-03-30
Unix/Linux之命令備忘錄,unixlinux備忘錄arp:ARP緩衝中包含一個或多個表,它們用於儲存IP地址及其經過解析的MAC地址// 提取出所有Bound0的ip資訊與mac資訊arp -n -i bond0 | awk '$5=="bond0" {print $1,$3}' sed:用來把文檔或字串裡面的文字經過一系列編輯命令// 從/script/ip讀取單行資料後列印出來sed -n '1p' /script/ip iptables:是與最新的 3.5
Time of Update: 2015-03-30
Centos安裝LinuxRAR我們一般在Windows環境下壓縮檔比較方便還是使用RAR,而Linux預設是不支援RAR壓縮、解壓的.Linux下也有RAR軟體【LinuxRAR】還免費呢!執行下面的命令下載安裝包解壓安裝:wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gztar -xvf rarlinux-3.9.3.tar.gzcd rarmake執行後出現以下資訊:mkdir -p /usr/local/binmkdir -p
Time of Update: 2015-03-28
Centos6.X安裝smokeping如果是64位為[root@localhost src]# uname -aLinux localhost.localdomain 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux[root@localhost Test]# perl -vThis is perl, v5.8.8 built for x86_64-linux-thread-
Time of Update: 2015-03-28
centos6.5安裝cobbler1.安裝指令碼#yum -y install wget#wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#rpm -ivh epel-release-6-8.noarch.rpm#/etc/cobbler/dhcp.templateyum install cobbler httpd rsync tftp-server xinetd dhcp
Time of Update: 2015-03-28
Centos6.5安裝OpenVAS Scanner 4.0.6由於yum問題,centos6.0以下版本我裝不上openvas,有人說6.0和6.5能裝。1.配置網路[root@localhost ~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yes[root@localhost ~]#/etc/init.d/network restart2.禁用selinux,重啟生效[root@localhost
Time of Update: 2015-03-27
centos徹底刪除檔案夾、檔案命令(centos 建立、刪除、移動、複製等命令),centos命令centos徹底刪除檔案夾、檔案命令(centos 建立、刪除、移動、複製等命令:1.建立檔案夾mkdir 檔案名稱建立一個名為test的檔案夾在home下view source1 mkdir /home/test2.建立文本在home下建立一個test.sh指令碼 vi /home/test.sh3.刪除檔案或檔案夾1、刪除home目錄下的test目錄 rm