Linux下常用网络文件
1). /etc/sysconfig/network
主要用于设置主机名称(Host Name)以及能否启动Network。变动此文件后需重启Linux才能生效。
2). /etc/sysconfig/network-scrips/ifcfg-eth0
设置网卡参数,如GATEWAY,TYPE,DEVICE,NETMASK,IPADDR,USERCTL等...
3). /etc/resolv.conf
如果要设置DNS功能进行主机名称和IP的对应。那么resolv.conf就是设计DNS IP(名称解析服务器)的文件了。这个非常重要。
4). /etc/hosts
这个文件记录了IP对应的计算机名称或别名。
5). /etc/services
这个文件记录了架构在TCP/TP上的所有协议,如HTTP、HTTPS、FTP、SSH、TELENT等服务定义的端口,如果你想改变这些服务的端口就直接改这里吧!记得保存啊。
6). /etc/protocols
这个文件用于定义IP数据包协议的相关数据,如ICMP、TCP、UDP等方面的数据包协议的定义。
相关文档:
/*
* linux/fs/inode.c
*
* (C) 1991 Linus Torvalds
*/
#include <string.h>
#include <sys/stat.h> // 文件状态头文件
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <asm/system.h>
......
/*
* ioctl.c 文件实现了输入/输出控制系统调用ioctl(),该函数
* 主要是调用函数tty_ioctl()对终端的IO进行控制
*/
/*
* linux/fs/ioctl.c
*
* (C) 1991 Linus Torvalds
*/
#include <string.h>
#include <errno.h>
#include <s ......
Linux文件查找命令find,xargs详述
一、find 命令格式
1、find命令的一般形式为;
find pathname -options [-print -exec -ok ...]
2、find命令的参数;
pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。
-print: find命令将匹配的文件输出到标准输出。
-exec: find命令对 ......
V] 零起点学习Linux系列培训视频 -1 (寒冰作品)
http://www.boobooke.com/v/bbk1301
[V] 零起点学习Linux系列培训视频 -2 (寒冰作品)
http://www.boobooke.com/v/bbk1304
[V] 零起点学习Linux系列培训视频 -3 (寒冰作品)
http://www.boobooke.com/v/bbk1305
[V] 零起点学习Linux系列培训视频 -4 (寒冰作品)
......
在vm下安装unbuntu linux server 9.04
安装完成 查看IP地址 ifconfig
安装telnet sudo apt-get install xinetd telnetd
因为不需要太多人TELNET 暂时不做修改配置文件。
安装FTP sudo apt-get install vsftpd
同样不需要配置 使用默认的ftp:ftp用户访问
mysql
sudo apt-get install mysql-server
apac ......