上一篇写的是如何安装debian9系统服务器,但是刚安装完毕的服务器是没有接口IP地址信息的,所以还需要对系统配置eth0接口IP地址。
The previous article dealt with how to install the Debian9 system server, but the server that had just been installed did not have an interface IP address information, so there was also a need to configure the eth0 interface IP address for the system.
新安装的debian9是没有ifconfig,命令的,因此你可以使用cat /etc/network/interface进行查看你的网卡配置。
The newly installed Debian9 is without ifconfig, so you can use cat/etc/network/interface to view your network card configuration.
很明显没有eth0接口信息,因此,我们使用nano /etc/network/interfaces手工配置一下。
There is obviously no Eth0 interface, so we customize it manually using nano/etc/network/interfaces.
使用Ctrl+o进行保存配置文件,使用Ctrl+x进行退出。然后cp?/etc/default/grub ?/etc/default/grub.bak ? ,
Save configuration file using Ctrl+o, exit using Ctrl+x. Then cp?/etc/default/ grub?/ etc/ default/ grub.bak?,
因为需要修改grub系统配置文件,所以我们不妨先备份再做修改。然后输入nano?/etc/default/grub进行编辑。
Because the grub configuration file needs to be modified, we might want to back up and make the changes. Then enter Nano?/etc/default/grub for editing.
然后保存退出编辑。输入grub-mkconfig -o /boot/grub/grub.cfg重新生成GRUB引导配置文件。等待修改完成,输入reboot系统重启。
Then saves the exit editor. Enter the grub-mkconfig-o/boot/grub/grub.cfg to regenerate the GRUB-guided profile file. Pending completion of the changes, enter the reboot system to restart.
重启完毕之后,虽然你可以联网,但是无法访问网站下载安装软件包。因为你还没有配置服务器的DNS。编辑nnao /etc/resolv.conf,输入nameserver 8.8.8.8保存配置即可。
After restarting, you can network, but you cannot access the site to download and install the software package. You do not have DNS to configure the server. Edit nanao/etc/resolv.conf, enter nameserver 3.8.8.8 save configurations.
然后就可以安装软件包了。因为系统默认CD/DVD为软件安装源,真正想要安装软件需要配置apt安装源文件。下一篇里将会教大家如何配置apt安装源。
Then you can install the package. really wants to install the software because the system defaults that the CD/DVD is the installation source. The next entry will teach you how to configure the installation source.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论