Linux雜記
批量自動刪除rpm包:
rpm -qa | grep mysql | while read c; do rpm -e $c --nodeps; done
minimal最小化安裝
eth0默認沒有自啟用
修改配置文件onboot=true
修改靜態地址後發現無法ping外網
需要設置網關route add default gw 192.168.33.1
添加nameservervi /etc/resolv.confnameserver 192.168.33.1
掛載光盤mkdir /mnt/cdrommount -t iso9660 -o ro /dev/cdrom/ /mnt/cdrom
解決克隆後eth0不見的問題
直接修改 /etc/sysconfig/network-script/ifcfg-eth0刪掉UUID HWADDR
配置靜態地址
然後:rm -rf /etc/udev/rules.d/70-persistent-net.rules
或者 vi /etc/udev/rules.d/70-persistent-net.rules 把裏面的eth1該為eth0 ,然後把原來的ech1刪掉
然後 reboot
Linux雜記
相關推薦
Linux - - 雜記
輸入 查看 uname lin onf getconf 查看系統 name con 1、linux怎麽查看系統是32位還是64位 先su -root 方法一:getconf LONG_BIT 方法二:uname -a
Linux雜記
-s eth mnt onf def nodeps class rpm 3.1 批量自動刪除rpm包: rpm -qa | grep mysql | while read c; do rpm -e $c --nodeps; done minimal最小化安裝 eth0
Linux雜記(一)檔案目錄操作命令
Linux核心版本號:主版本號.次版本號.修正號,例如2.6.25指的是主版本號為2,次版本號為6,第25次修正。次版本號為偶數是穩定版,為奇數是測試版。 在Linux中,所有的一切都被叫做檔案,有目錄檔案、普通檔案和裝置檔案。 shell: shell是Linux的
【linux雜記】Ubuntu檢視埠使用情況
轉載地址:Ubuntu檢視埠使用情況,使用netstat命令:檢視已經連線的服務埠(ESTABLISHED)netstat -a檢視所有的服務埠(LISTEN,ESTABLISHED)netstat -ap檢視指定埠,可以結合grep命令:netstat -ap | grep
SpringCloud+Linux雜記
多個 啟動文件 jar *** col hosts info 停止 linu 使用SpringCloud啟動多個服務,避免退出連接時服務停止,使用 nohup java -jar ***.jar >***.txt ***.txt為啟動文件 啟動後報下圖錯誤
雜記整理二:linux與程序安裝
。。 for virtual cse nbsp rep 無法 device ebo ---恢復內容開始---debian下 Mysql手動刪除不幹凈,有殘留,無法更新安裝 先sudo apt-get purge mysql-server-5.5 卸載 再用 rm -rf /
Linux內核知識雜記
用戶空間 printk pps 通過 外圍設備 for 四種 nbsp 互動 1.內核調試手段 1.printk打印內核狀態 2.產生opps時使用GDB查看調用棧 2.內核空間和用戶空間區別,通信方式有哪些? Linux簡化了分段機制,使得虛擬地址與線性地址總
linux-ip命令雜記
linux ip命令 配置網絡 雜記11.3 ip命令 11.3.1 ip 查看ip是由哪個rpm生成的 [root@localhost ~]# rpm -qf `which ip` iproute-2.6.32-32.el6_5.i686 查看iproute生成的文件 [root@localhost ~]#
linux網絡配置雜記
linux 路由 配置 雜記 基礎11.2 11.2.1 ifcfg 查看linux路由條目 [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags M
linux進程管理雜記(2)
linux 進程管理 基礎 雜記命令 vmstat vmstat [root@zz Packages]# vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd
linux常用命令雜記(一)--Lsof
linux 根據 打開文件 cte data 由於 uid 內部 方法 lsof的用法 lsof全名list opened files,也就是列舉系統中已經被打開的文件。linux環境中,任何事物都是文件,設備是文件,目錄是文件,甚至sockets也是文件。所以,用好lso
linux 學習雜記
1.Linux 最大執行緒數 /proc/sys/kernel/pid_max 2. 執行緒棧大小(thread_info)8K。 3. 執行緒處理函式和巨集 3.1 雙向連結串列建立採用巨集定義方式。 LIST_HEAD(list_name), 初始
Linux驅動開發雜記(0x01)
核心使用了大量不同的巨集來標記具有不同作用的函式和資料結構。如巨集__init 、__devinit 等。這些巨集在include/linux/init.h 標頭檔案中定義。編譯器通過這些巨集可以把程式碼優化放到合適的記憶體位置,以減少記憶體佔用和提高核心效率
Linux驅動開發雜記(0x04)
struct pci_device_id { __u32 vendor, device; /* 廠商和裝置ID,Vendor and device ID or PCI_ANY_ID*/ __u32
Linux驅動開發雜記(0x05)
/* * The PCI interface treats multi-function devices as independent * devices. The slot/function a
Linux驅動開發雜記(0x07)
1 申請I/O 端⼝: 在驅動還沒獨佔裝置之前,不應對端⼝進⾏操作。核心提供了⼀個註冊接⼝,以允許驅動宣告其需要的端⼝: /* request_region告訴核心:要使⽤first開始的n個端⼝。引數
Linux驅動開發雜記(0x08) -I/O記憶體
儘管 I/O 埠在x86世界中非常流行,但是用來和裝置通訊的主要機制是通過記憶體對映的暫存器和裝置記憶體,兩者都稱為I/O 記憶體,因為暫存器和記憶體之間的區別對軟體是透明的。 I/O 記憶體僅僅是一個類似於RAM 的區域,處理器通過匯流排訪問該區域,以實現
Linux驅動開發雜記(0x0C)
SetPageReserved() 隨著linux的長時間執行,空閒頁面會越來越少,為了防止linux核心進入請求頁面的僵局中,Linux核心採用頁面回收演算法(PFRA)從使用者程序和核心快取記憶
Linux驅動開發雜記(0x10)
struct uart_driver { struct module *owner; /* 擁有該uart_driver的模組,一般為THIS_MODULE */
linux程序管理雜記(2)
vmstat[[email protected] Packages]# vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff