小乔 发表于 2012-1-30 09:16:32

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 该贴已经同步到 小乔的微博

mylove201188 发表于 2012-1-30 09:20:47

{:6_267:}

zhanyuesheng 发表于 2012-1-30 09:22:07

该灌灌灌灌灌灌

snow 发表于 2012-1-30 09:24:36

lqk 发表于 2012-1-30 09:36:10

{:6_267:}

杜小菜 发表于 2012-1-30 09:47:33

顶哈子

xiaohun90 发表于 2012-1-30 10:12:16

{:6_267:}

qiuwenhuifx 发表于 2012-1-30 10:36:12

{:6_267:}

pants 发表于 2012-1-30 10:54:10

{:6_263:}

zhuzhen6126 发表于 2012-1-30 11:11:00

{:6_267:}{:6_267:}

boheql330 发表于 2012-1-30 11:19:08

看看

helloli 发表于 2012-1-30 11:22:27

{:6_267:}{:6_267:}{:6_267:}{:6_267:}{:6_267:}

hgch2007 发表于 2012-1-30 11:33:31

{:6_263:}

ydydq 发表于 2012-1-30 15:22:07

{:6_267:}{:6_267:}

ahuai12 发表于 2012-1-30 16:30:19

顶一个貌似不错
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: liunx常见问题汇集(整理word文档)