Debian 7 Wheezyを実行すると、私のシステムは比較的速く起動しましたが、Debian 8 JessieにアップグレードしたSysVinit
後systemd
。
起動速度を遅くするのはネットワークです。ネットワークインターフェイスが起動するまで1分以上待ちます。/etc/network/interfaces
起動プロセスにどのような影響があるのかわからないので、ここに完全な内容があります。
/etc/ネットワーク/インターフェース:
allow-auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 192.168.150.1
netmask 255.255.255.0
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto eth2
iface eth2 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
auto eth0
iface eth0 inet dhcp
post-up brctl addbr br0
post-up brctl addif br0 eth1 eth2
post-up ifconfig br0 192.168.10.1
pre-down ifconfig br0 0.0.0.0
pre-down brctl delif br0 eth1 eth2
pre-down ifconfig br0 down
pre-down brctl delbr br0
仕事を促進する方法についての提案はありますか?
ベストアンサー1
解決策は簡単でした。auto
に変更するだけallow-hotplug
です。
allow-hotplug lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.150.1
netmask 255.255.255.0
allow-hotplug eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
allow-hotplug eth2
iface eth2 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
allow-hotplug eth0
iface eth0 inet dhcp
post-up brctl addbr br0
post-up brctl addif br0 eth1 eth2
post-up ifconfig br0 192.168.10.1
pre-down ifconfig br0 0.0.0.0
pre-down brctl delif br0 eth1 eth2
pre-down ifconfig br0 down
pre-down brctl delbr br0
今システムは非常に迅速に起動します。