原创 sudo: unable to resolve host 主機名

直接從/etc/hosts 設定, 讓dev(hostname) 可以解回127.0.0.1 的IP 。 將文件中第一句話 127.0.0.1 localhost 修改爲: 127.0.0.1 localhost 主機名 然後

原创 防火牆查看、關閉與開啓命令

1、關閉ubuntu的防火牆 ufw disable 2、卸載了iptables apt-get remove iptables 3、關閉ubuntu中的防火牆的其餘命令 iptables -P INPUT ACCEPT

原创 linux之sed命令詳解

調用sed命令有兩種形式: **sed [options] ‘command’ file(s) sed [options] -f scriptfile file(s)** a\ 在當前行後面加入一行文本。 b lab

原创 linux下進程資源的限制——struct rlimit詳解

一、Resouce limit 在Linux系統中,Resouce limit指在一個進程的執行過程中,它所能得到的資源的限制,比如進程的core file的最大值,虛擬內存的最大值等。 soft limit 和 hard li

原创 linux值wget命令詳解

命令格式: wget [參數列表] [目標軟件、網頁的網址] -V,–version 顯示軟件版本號然後退出; -h,–help顯示軟件幫助信息; -e,–execute=COMMAND 執行一個 “.wgetrc”命令 -o,

原创 vs:嚴重性代碼說明項目文件行錯誤LNK1168無法打開testes.exe進行寫入

在VS中debug代碼遇到下列問題: 嚴重性代碼說明項目文件行錯誤LNK1168無法打開testes.exe進行寫入 解決辦法: 在之前的debug之後,這個進程並沒有完全被終止,再次debug時就與之前的進程衝突。可

原创 shell練習題之for循環——讀取/var目錄

寫一個腳本 1.切換工作目錄至/var 2.依次向/var目錄中的每個文件或子目錄問好,形如: (提示:for FILE in /var/*;或for FILE in ls /var;

原创 linux之exec命令詳解

1、介紹shell script:   有兩種方法執行shell scripts。   一種是新產生一個shell,然後執行相應的shell scripts;新產生一個shell然後再執行scripts的方法是在scripts

原创 (Win32): 已加載“C:\Windows\System32\ntdll.dll”。無法查找或打開 PDB 文件。

(Win32): 已加載“C:\Windows\System32\ntdll.dll”。無法查找或打開 PDB 文件。 解決辦法: 點擊啓用源服務支持: 點擊Microsoft服務符號器: 點贊 8

原创 /etc/passwd文件詳解

/etc/passwd文件詳解 打開/etc/passwd文件內容: root@liqian-Aspire-E1-471G:/home/testbash# cat /etc/passwd root:x:0:0:root:/roo

原创 linux之wc命令

用法:wc [選項]… [文件]…  或:wc [選項]… –files0-from=F Print newline, word, and byte counts for each FILE, and a total line

原创 ubuntu下,iptables:unrecognized service

在ubuntu中不存在 /etc/init.d/iptales文件,所以無法使用service等命令來啓動iptables,需要用modprobe命令。 sudo modprobe ip_tables 點贊 1

原创 ip能ping開但是不能遠程登陸

剛剛安裝ftp時玩將防火牆開啓了。然後退出ssh再登陸時就登陸不上去了。出現: ip能ping開但是不能遠程登陸; telnet ip 也不通。 以爲使系統問題,但是想想剛剛的操作還是防火牆。 解決方法: 在網頁上登陸系統中

原创 linux之tail命令

tail命令 用法:tail [選項]… [文件]… Print the last 10 lines of each FILE to standard output. With more than one FILE, prec

原创 嚴重性代碼說明項目文件行錯誤C4996'strcpy'

嚴重性代碼說明項目文件 行錯誤 C4996 ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disa