1) 重啟後生效 開啟: chkconfig iptables on 關閉: chkconfig iptables off 2) 即時生效,重啟後失效 開啟: service iptables start 關閉: service iptables stop 需要說明的是對於Linux下的其它服務都可以用以上命令執行開啟和關閉操作。 在開啟了防火牆時,做如下設定,開啟相關連接埠, 修改/etc/sysconfig/iptables 檔案,添加以下內容: -A
在Openwrt編譯工具鏈和SDK之後可能報錯如下: zchx@zchx-System-Product-Name:~$ mips-openwrt-linux-g++ mips-openwrt-linux-uclibc-g++.bin: environment variable "STAGING_DIR" not defined 其解決方案很簡單,就是編譯的時候也選擇上編譯SDk,在編譯好了的SDK中,包含了工具鏈。這裡的工具鏈就不會報錯了。Good
A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. It simply
在kernel編譯中,我們得到了bzImage和vmlinux兩個kernel Image檔案。在O'Reilly的《BuildingEmbeded Linux System》一書中,對這兩個的區別說得很含糊。只是說bzImage是壓縮的kenelImage,vmlinux是未壓縮的kernelImage。但是vmlinux經過壓縮可作為vmlinuz。在案頭linux的/boot目錄下面我只看到了vmlinuz,沒有看到bzImage或者zImage。需要理清一下他們之間的關係。“vm”代表“
LINUX下禁止ping命令的使用以root進入Linux系統,然後編輯檔案icmp_echo_ignore_allvi /proc/sys/net/ipv4/icmp_echo_ignore_all將其值改為1後為禁止PING將其值改為0後為解除禁止PING直接修改會提示錯誤:WARNING: The file has been changed since reading it!!!Do you really want to write to it