Time of Update: 2018-12-08
本文以redhat AS 4.0為例:首先要安裝linux下的vsftp軟體包。rpm -qa|gerp vsftpd //尋找vsftpd有沒有安裝如果沒有安裝就 vsftpd-2.0.1-5.i386.rpm (在第一張光碟片)在linux中有一個非常重要的一點就是要掛載光碟機 mount /media/cdrom在這裡我們就不用原始碼安裝了。用的是rpm安裝#rpm -ivh vsftpd-2.0.1-5.i386.rpm這裡就安裝好了。service vsftpd start
Time of Update: 2018-12-08
Linux是一個真正的多使用者作業系統,它可以同時接受多個使用者登入。Linux還允許一個使用者進行多次登入,這是因為Linux和UNIX一樣,提供了虛擬控制台的訪問方式,允許使用者在同一時間從控制台進行多次登入。虛擬控制台的選擇可以通過按下Alt鍵和一個功能鍵來實現,通常使用F1-F6例如,使用者登入後,按一下Alt-F2鍵,使用者又可以看到"login:"提示符,說明使用者看到了第二個虛擬控制台。然後只需按Alt-F1鍵,就可以回到第一個虛擬控制台。
Time of Update: 2018-12-08
linux C 遍曆目錄及其子目錄複製代碼 代碼如下:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <dirent.h> #include <sys/stat.h> #include <unistd.h> #include <sys/types.h> using namespace std;void
Time of Update: 2018-12-08
The awk function split(s,a,sep) splits a string s into an awk array a using the delimiter sep.set time = 12:34:56set hr = `echo $time | awk '{split($0,a,":" ); print a[1]}'` # = 12set sec = `echo $time | awk '{split($0,a,":" ); print a[3]}'` # = 56#
Time of Update: 2018-12-08
Windows: C:/Users/ewanbao>netstat -aon|findstr "123" TCP 127.0.0.1:55123 0.0.0.0:0 LISTENING 5092 TCP 127.0.0.1:55123 127.0.0.1:55124 ESTABLISHED 5092 TCP 127.0.0.1:55124 127.0.0.1:55123 ESTABLISHED 5092 UDP 0.0.0.0:123 *:* 1416 UDP [::]:123 *:* 1
Time of Update: 2018-12-08
方法一:首先需要限制登入的ip(或者如果需要自己本地登入,查看最後登入ip即可)Vim /etc/hosts.allow輸入 sshd:114.80.100.159:allowvim /etc/hosts.deny輸入(表示除了上面允許的,其他的ip 都拒絕登陸ssh) sshd:ALL最後sshd重啟service sshd restart方法二:比如說你只允許114.80.100.159這個IP進入,其它都禁止: vim
Time of Update: 2018-12-08
1.使用光碟片內建的軟體包,安裝以下包: bind bind-utils bind-libs (rpm -i xxx.rpm) 2. 將named服務設定為自啟動 (使用ntsysv,chkconfig等工具) 3. 假設你需要解析bcomcn.com,如下操作: cd /var/named cp localdomain.zone bcomcn.zone vi bcomcn.zone $TTL 86400 @ IN SOA ns.bcomcn.com. root.
Time of Update: 2018-12-08
在學習Linux的過程中,安裝Linux是每一個初學者的第一個門檻。在這個過程中間,最大的困惑
Time of Update: 2018-12-07
參考地址:http://www.cnblogs.com/xuechao/archive/2011/12/05/2277180.html表 1. UNIX 中的處理序間通訊名稱說明範圍用途檔案在典型的 UNIX
Time of Update: 2018-12-07
原文連結用途說明iconv命令是用來轉換檔的編碼方式的(Convert encoding of given files from one encoding to
Time of Update: 2013-11-15
1.Tcpdump命令1)所有參數及含義:-A 以ASCII格式列印出所有分組,並將鏈路層的頭最小化。-c 在收到指定的數量的分組後,tcpdump就會停止。-C 在將一個原始分組寫入檔案之前,檢查檔案當前的大小是否超過了參數file_size 中指定的大小。如果超過了指定大小,則關閉當前檔案,然後在開啟一個新的檔案。參數 file_size 的單位是MB(是1,000,000位元組,而不是1,048,576位元組)。-d
Time of Update: 2013-12-24
vsftpd是一款在Linux發行版中最受推崇的FTP伺服器程式。特點是小巧輕快,安全易用。就是配置有點麻煩,vsftpd.conf檔案配置比較簡單,我們可以設定下:VSFTPD的設定選項VSFTPD的設定檔/etc/vsftpd/vsftpd.conf是個文字檔。以“#”字元開始的行是注釋行。每個選項設定為一行,格式為“option=value”,注意“=”號兩邊不能留空白符。除了這個主設定檔外,還可以給特定使用者設定個人
Time of Update: 2013-11-16
經常使用:%s/oldstring/newstring/g 及 :%s/oldstring/newstring/gc將vim中的oldstring替換為newstring。今天在標註樣本時,搜尋了一下vim更多的替換操作,整理如下:1、:%s/oldstring/newstring/ 替換所有行中首次出現的oldstring /gc是選擇是否替換2、:%s/oldstring/newstring/g 替換所有行中所有的oldstring
Time of Update: 2013-11-16
筆者用的Linuxf發行版本為Centos6.4,以下方法理論上講對於Fedora, Red Hat均有效:搭建好NFS服務後,如果用以下的命令進行掛載: # mount -t nfs .:/home/liangwode/test /mnt 出現如下錯誤提示:mount.nfs: access denied by server while mounting
Time of Update: 2013-11-16
基礎:e filenameOpen filename for edition:wSave file:qExit Vim:q!Quit without saving:xWrite file (if changes has been made) and exit:sav filenameSaves file as filename.Repeats the last change made in normal mode5.Repeats 5 times the last
Time of Update: 2013-11-16
但對於初學者而言,Vim卻是一個異常生澀的工具,原因在於它有多種使用環境,而且鍵盤操作複雜難記,但是一旦你掌握了Vim的基本使用方法後,你會立刻喜歡上它,你的工作效率會得到極大的改善。 當你啟動Vim後,預設會進入普通模式,這時你可以通過鍵盤移動游標,進行複製粘貼等基本操作,此時鍵盤配置如下: k
Time of Update: 2013-11-16
How to create a PPPoE Server on Ubuntu?March 30, 2011 coder_commenter Leave a comment Go to commentsFor one reason or another, I needed to setup a PPPoE Server on my Ubuntu machine. Unfortunately almost all the guides found were talking about
Time of Update: 2013-11-16
在網上找了很多資料,結果都是如果在Ubuntu下編譯Cocos2d-x內建的那幾個例子。剛開始對makefile不熟悉,結果弄了好久才弄好,在這裡記錄一下,順便也給那些有需要的人做一個參考,不要走太多的彎路。
Time of Update: 2013-11-16
作業系統:Ubuntu 12.04 32 bit在telnet中使用回顯功能,首先需要啟動echo服務。1、apt-get install xinetd之後,需要配置在xinetd中,啟動echo服務2、vi /etc/xinetd.d/echo,把disable欄位的值從yes改成no接著,啟動xinetd服務3、sudo /etc/init.d/xinetd start即可4、本機測試telnet 127.0.0.1 echo 或 telnet 127.0.0.1
Time of Update: 2013-11-16
一、首先,看一下最簡單的C檔案//hello.c檔案#include void main(){ printf("hello world\n");} 為hello.c編寫makefile檔案,這裡用gcc編譯$vi makefilehello:hello.cgcc -o hello