- 6
- 0
- 约2.04万字
- 约 20页
- 2018-07-10 发布于湖北
- 举报
+-------------------------------------------------------------------------------------------------------------------++ 【Debian 6 (squeeze) 64位 】+-------------------------------------------------------------------------------------------------------------------++ 关机命令Sh utdown -h now+ CPU信息cat /proc/cpuinfo+ 重启命令hutdown -r now+ 网卡信息dmesg | grep -i eth+ 注销命令logout+ 内存信息cat /proc/meminfo+ 查看网络状态ifconfig eth0 | dhclient eth0+ 硬盘信息df -TH | fdisk -l+ 查看所有服务service --status-all + CPU和内存top | free -m+ 网卡流量信息nload eth0+ 文本编辑器Nano | vim+ 切换root帐户su root+ 系统内核uname -a+ chmodchown -R www:www /homechmod +x *.shchmod +w /home/dir+-------------------------------------------------------------------------------------------------------------------++ 【配置软件源】+ Download: /.help/debian.html /help/debian.html+ cd /etc/apt/+ mv sources.list sources.list.bak+ wget -O sources.list HYPERLINK /.help/sources.list.squeeze /.help/sources.list.squeeze+ # apt-get update # apt-get upgrade+-------------------------------------------------------------------------------------------------------------------++ 为网卡配置静态IP地址+ 编辑文档 # nano /etc/network/interfaces+-------------------------------------------------------------------------------------------------------------------+# The primary networkinterfaceauto eth0iface eth0 inet static address 0 netmask network broadcast 55 gateway # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 0 # 保存退出CTRL+O - Enter - CTRL+X# 重启网上# /etc/init.d/networking restarthdparm -t /dev/sda # 测试硬盘读取速度mount [选项] [类型] 设备文件名 挂载点目录mount -t ext4 /dev/sdb /datamount /dev/sdb /datamkfs -t ext4 /dev/sdb /# 格式化 Linux网络命令及配置文件本章在读者掌握了网络基本知识的基础上对linux常用网络命令及主要配置文件做了详细的介绍。9.1 linux常用网络命令本节将着重介绍linux下的常用网络命令。如网卡设置命令ifconfig、netconfig。连接监听命令netstat。文件下载命令wget。设置某个服务在特定运行级别运行的命令chkconfig、ntsysv。域名解析命令nslookup、host、dig。9.1【命令功能】添加、修改、显示临时性ip地址信息。通过ifconfig命令添加或修改ip地址。只是临时有效。当重启net
原创力文档

文档评论(0)