Linux Program
vhost : web.myftp.com storage.myftp.com ......
not vhost : storage.myftp.com
eg : top
eg : htop
eg : yes >/dev/null
eg : cat /etc/passwd
eg : get abc.txt
the ftp command groups :
all
dirs
login
read
write
differences between SFTP&FTPS?
FTPS : FTP over SSL
SFTP : SSH + FTP
eg : /etc/passwd | cut -d" ;" -f1. 3
/bin/sh : share
/bin/false : share
some sotfwares :
FileZilla
LibreOffice Impress
gedit
OU : organizational Unit
apt-cache search proftpd : looking fot package with ftp
find . -type d -name DIRECTORY_NAME -print
DNS match a FQDN and an IP
FQDN : Fully Qulified Domain Name
eg : www.google.com.
eg : myhost.example.com.
eg : computer_name + domain_name + root(.)
root domain :
.
.fr
.net
.org
.ca
ICANN : manage all domains and it't himself subdivide for the world(eg AFNIC for France)
what's goinf on when I'm typing www.baidu.com
cat /etc/resolv.conf
ask you a cache server DNS, first : .fr then google.fr then www.google.fr
recursive request : until it finds the address
iterative request :
bind9
djbdns
monolithic : just one big program
project :
DNS part
apt-get install bind9
cd /etc/bind/
mkdir zones
vi named.conf
cd zones/
vi utopia.net
copy paste from lab page 46
hostname ldap
named- (tab tab)
172.16.247.144
vi named.conf.local :
zone "utopia.net"
type master;
file "/etc/bind/zones/utopia.net";
};
vi zones/utopia.net
/etc/init.d/bind9 restart
vi /etc/network/interfaces :
allow-hotplug eth0
iface eth0 inet static
address 172.16.227.50
netmask 255.255.255.0
gateway 172.16.227.2
( iface eth1 inet static
address 192.168.56.102
network 255.255.255.0
gateway 192.168.56.2 )
/etc/init.d/networking restart
ifup eth0
apt-get update && apt-get install dhcp3-server -y
cd /etc/dhcp
cp dhcp.conf dhcp.conf.old
echo "" > dhcp.conf
vi dhcp.conf
vi /etc/network/interfaces
iface eth0 inet
address 192.168.1.10
network 255.255.255.0
gateway 192.168.1.2
cd
vi /etc/bind/zones/utopia.net
vi /etc/dhcp/dhcp.conf
Linux Program的更多相关文章
- 【linux草鞋应用编程系列】_2_ 环境变量和进程控制
一. 环境变量 应用程序在执行的时候,可能需要获取系统的环境变量,从而执行一些相应的操作. 在linux中有两种方法获取环境变量,分述如下. 1.通过main函数的参数获取环境变量 ...
- Redis进阶实践之八Lua的Cjson在Linux下安装、使用和用C#调用Lua脚本
一.引言 学习Redis也有一段时间了,感触还是颇多的,但是自己很清楚,路还很长,还要继续.上一篇文章简要的介绍了如何在Linux环境下安装Lua,并介绍了在Linux环境下如何编写L ...
- 发福利了!!超过100本的linux免费书籍
New Books Kindle Fire App Development Essentials iPhone iOS 6 Development Essentials CentOS 6 Essent ...
- Linux 驱动开发
linux驱动开发总结(一) 基础性总结 1, linux驱动一般分为3大类: * 字符设备 * 块设备 * 网络设备 2, 开发环境构建: * 交叉工具链构建 * NFS和tftp服务器安装 3, ...
- (49)LINUX应用编程和网络编程之四 Linux进程全解
补充: 1. C程序的执行过程: C编译器调用链接器,链接器设置可执行程序文件的启动起始地址(启动例程),启动例程获得内核传递来的 命令行参数和环境变量值,为调用main函数做准备.[实际上该启动例 ...
- Linux 电子数据取证入门
目录 Linux Basic Analysis 一.常见的Linux 发行版 二.Linux 系统的典型目录结构(Dir Structure) 三.Linux 系统重要文件夹与文件的内容 四.Linu ...
- 工作于内存和文件之间的页缓存, Page Cache, the Affair Between Memory and Files
原文作者:Gustavo Duarte 原文地址:http://duartes.org/gustavo/blog/post/what-your-computer-does-while-you-wait ...
- Page Cache, the Affair Between Memory and Files
Previously we looked at how the kernel manages virtual memory for a user process, but files and I/O ...
- 一个很逗的东西——Jd
这个嘛是本人专门为了NOI上面对拍程序写的对拍程序,已经经历了NOI2015的考验:更重要的是——纯Pascal的哦(HansBug:其实是我不会写.sh脚本TT,谁叫用惯了windows的我只会写b ...
随机推荐
- hibernate的离线关联(多级)查询
如果实体对象中没有关联对象的情况使用DetachedCriteria进行查询是一件很简单的事情. 假设要通过stuName查询一个学生Student记录,可以如下: Java代码 DetachedCr ...
- Android控件之CheckBox(复选框控件)
一.有两种状态: 选中状态(true).未选中状态(false) 二.属性 android:id = "@+id/checkbox" android:layout_width=&q ...
- C语言下动态库相互调用
前段时间需要完成多个模块业务,而这些模块的接口都是一样的,于是为了方便管理就把每个模块都根据接口封装成了SO库,这里就留下SO库调用样例 SO库源文件代码: //TestSo.c #include & ...
- MyBatis学习笔记(二) 关联关系
首先给大家推荐几个网页: http://blog.csdn.net/isea533/article/category/2092001 没事看看 - MyBatis工具:www.mybatis.tk h ...
- map each 工具函数
工具函数 即全局性的函数作用主要是提供比如字符串,数组,对象等方面的遍历 字符串工具 $.trim(str) 去除字符串两边的空格 遍历机制 map函数(function (obj,index){ ...
- js获取时间格式化
http://www.cnblogs.com/zhangpengshou/archive/2012/07/19/2599053.html
- C语言编译器 cc 编译原理
生成一个可执行的文件通常需要经过以下几个步骤: 预处理你的源代码,去掉注释,以及其他技巧性的工作就像在 C 中展开宏. 检查代码的语法看你是否遵守了这个语言的规则.如果没有,编译器会给出 警告. 把源 ...
- JSP HTML error code
<html> <head> <title>Setting HTTP Status Code</title> </head> <body ...
- ios CoreBluetooth 警告 is being dealloc'ed while pending connection
ios CoreBluetooth 警告 is being dealloc'ed while pending connection CoreBluetooth[WARNING] <CBPerip ...
- ActiveX控件(ATL篇)
目录 第1章 VC++6.0创建 2 1.1 目标 2 1.2 创建项目 2 1.3 增加COM类 4 1.4 属性 7 1.5 事件 8 1.6 实现连接点 ...