debian8 安装后的设置

去掉默认的源从DVD安装
nano /etc/apt/sources.list
注释掉 #deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official i386 DVD Binary-1 20160123-18:03]/ jessie contrib main

apt-get install -y vim
apt-get install ibus ibus-sunpinyin -y
设置input method 中选ibus,语言哪里添加sunpinyin,添加成功后,可以用鼠标或者快捷键切换。

关闭apache2服务
/etc/init.d/apache2 stop

切换到字符界面
systemctl set-default multi-user.target
切换到图形界面
systemctl set-default graphical.target

开机启动服务
systemctl enable apache2.service

停止开机启动服务
systemctl disable apache2.service

查询服务状态
systemctl status apache2.service

列出所有已经加载的units的状态
systemctl -a

直接查看某项服务的配置文件,以sshd.serice为例
systemctl cat sshd.service

选择默认的文本编辑器(debian默认的文本编辑器是nano)
update-alternatives --config editor

配置网卡和DNS
/etc/network/interfaces
iface eth0 inet static   #static表示使用固定ip,dhcp表述使用动态ip
address 192.168.21.166   #设置ip地址
netmask 255.255.255.0  #设置子网掩码
gateway 192.168.21.2    #设置网关

/etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8

重启网卡
service networking restart



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值