linux 開機運行程序和網卡靜態地址設置

開機運行程序

vi /etc//rc.local

在文件末尾添加自己的應用程序

還可開機掛載在磁盤

&後臺執行

mount /dev/mmcblk0p1 /mnt/sd
 testapp &

 exit 0

/******************************************************************/

網卡靜態地址設置

vi /etc/network/interfaces

 添加如下設置

 

auto enx0023545cae96
iface enx0023545cae96 inet static
        address 2.0.0.23
        netmask 255.255.255.0
        gateway 2.0.0.1
auto eth0
iface eth0 inet static
        address 2.0.0.90
        netmask 255.255.255.0
        gateway 2.0.0.1

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章