liunx常见问题汇集(整理word文档)
一、Ubuntu系统密码破解1、在grub选项菜单按E进入编辑模式2、编辑kernel 那行最后(按空格)加上rw init=/bin/bash3、按B重启
4、进入后执行下列命令
# passwdroot (设置root的密码)
# 输入新的密码
# 再次输入密码# init 6(重启)
二、Ubuntu 服务器安装启动SSH Server
#sudo apt-get install openssh-server(安装ssh服务)
#sudo passwd root (设置root密码两次)
#userdel -f abc (删除abc用户 两次)
#sudo /etc/init.d/ssh start(启动SSH-Server)
三、UbuntuIP、DNS配置
1、sudovi/etc/network/interfaces
单网卡设置多IP方法
auto eth0
iface eth0 inet static
address 192.168.10.5 (IP地址)
network 192.168.10.0
netmask 255.255.255.0(掩码地址)
broadcast 192.168.10.255
gateway 192.168.10.1(网关地址)
auto eth0:1
iface eth0:1 inet static
address 192.168.10.6 (IP地址)
netmask 255.255.255.0(掩码地址)
双网卡设置内网、外网IP方法
# The primary network interface
auto eth0 (外网)iface eth0 inet staticaddress 183.60.146.22
netmask 255.255.255.0network 183.60.146.0broadcast 183.60.146.255gateway 183.60.146.1nameserver 202.96.128.86
#the second eth1auto eth1(内网) iface eth1 inet staticaddress 192.168.10.18netmask 255.255.255.0network 192.168.10.0broadcast 192.168.10.255
2、配置DNS
sudo vi /etc/resolv.conf nameserver 202.96.128.86 nameserver 202.96.134.133
3、#/etc/init.d/networking restart(重启网卡)
sudo apt-get installlinux-server
如果不全面可以用下面的命令
sudo apt-get install linux-headers-server linux-image-server linux-server
top(查看内存)
lshw -short
**** Hidden Message *****
http://bbs.hh010.com/xwb/images/bgimg/icon_logo.png 该贴已经同步到 小乔的微博 {:6_267:} 该灌灌灌灌灌灌 {:6_267:} 顶哈子 {:6_267:} {:6_267:} {:6_263:} {:6_267:}{:6_267:} 看看 {:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:} {:6_263:} {:6_267:}{:6_267:} 顶一个貌似不错