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的更多相关文章

  1. 【linux草鞋应用编程系列】_2_ 环境变量和进程控制

    一. 环境变量     应用程序在执行的时候,可能需要获取系统的环境变量,从而执行一些相应的操作.     在linux中有两种方法获取环境变量,分述如下.   1.通过main函数的参数获取环境变量 ...

  2. Redis进阶实践之八Lua的Cjson在Linux下安装、使用和用C#调用Lua脚本

    一.引言         学习Redis也有一段时间了,感触还是颇多的,但是自己很清楚,路还很长,还要继续.上一篇文章简要的介绍了如何在Linux环境下安装Lua,并介绍了在Linux环境下如何编写L ...

  3. 发福利了!!超过100本的linux免费书籍

    New Books Kindle Fire App Development Essentials iPhone iOS 6 Development Essentials CentOS 6 Essent ...

  4. Linux 驱动开发

    linux驱动开发总结(一) 基础性总结 1, linux驱动一般分为3大类: * 字符设备 * 块设备 * 网络设备 2, 开发环境构建: * 交叉工具链构建 * NFS和tftp服务器安装 3, ...

  5. (49)LINUX应用编程和网络编程之四 Linux进程全解

    补充: 1.  C程序的执行过程: C编译器调用链接器,链接器设置可执行程序文件的启动起始地址(启动例程),启动例程获得内核传递来的 命令行参数和环境变量值,为调用main函数做准备.[实际上该启动例 ...

  6. Linux 电子数据取证入门

    目录 Linux Basic Analysis 一.常见的Linux 发行版 二.Linux 系统的典型目录结构(Dir Structure) 三.Linux 系统重要文件夹与文件的内容 四.Linu ...

  7. 工作于内存和文件之间的页缓存, Page Cache, the Affair Between Memory and Files

    原文作者:Gustavo Duarte 原文地址:http://duartes.org/gustavo/blog/post/what-your-computer-does-while-you-wait ...

  8. 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 ...

  9. 一个很逗的东西——Jd

    这个嘛是本人专门为了NOI上面对拍程序写的对拍程序,已经经历了NOI2015的考验:更重要的是——纯Pascal的哦(HansBug:其实是我不会写.sh脚本TT,谁叫用惯了windows的我只会写b ...

随机推荐

  1. D3.js 饼状图的制作

    1.数据 有如下数据,需要可视化: var dataset = [ 30 , 10 , 43 , 55 , 13 ]; 这样的值是不能直接绘图的.例如绘制饼状图的一个部分,需要知道一段弧的起始角度和终 ...

  2. MyBatis学习笔记(四) 注解

        使用MyBatis注解开发,可以省去类配置文件,简洁方便.但是比较复杂的SQL和动态SQL还是建议书写类配置文件. 注解还是不推荐使用的.只是了解了解!简单的CRUD可以使用注解.简单写写. ...

  3. Jq_文档操作方法、属性操作方法、CSS操作函数

    JQuery文档操作方法 这些方法对于 XML 文档和 HTML 文档均是适用的,除了:html(). 方法                            描述 addClass()      ...

  4. hiho_1138_island_travel

    题目 二维平面上有n个点,每个点的横纵坐标均为非负整数.两个点之间的距离记为 min(abs(x1 - x2), abs(y1 - y2)),求从点1到达点n的最短路径长度. 比较容易想到使用最短路径 ...

  5. python操作mongodb之四cp数据库

    from pymongo import MongoClient #连接数据库 client=MongoClient('192.168.30.252',27017) #获取现有数据库的名称 client ...

  6. commonJS — DOM操作(for DOM)

    for DOM github: https://github.com/laixiangran/commonJS/blob/master/src/forDOM.js 代码 /** * Created b ...

  7. phalcon: tasks MainTask.php命令行工具

    phalcon: tasks MainTask.php命令行工具 tasks MainTask.php 一般用来做计划任务,处理比较复杂的大型的数据.然后其他功能或程序才能更简单的读取这些复杂的数据. ...

  8. 记一次基于Unity的Profiler性能分析

    A. WaitForTargetFPS: Vsync(垂直同步)功能所,即显示当前帧的CPU等待时间    B. Overhead:       Profiler总体时间-所有单项的记录时间总和.用于 ...

  9. 20145218《Java程序设计》第一周学习总结

    20145218 <Java程序设计>第一周学习总结 教材学习内容总结 今天下午看了Java学习的视频,感觉很是新奇,之前觉得Java学起来是艰难枯燥的,但通过第一章的学习觉得如果自己可以 ...

  10. JAVA智能设备基于OpenGL的3D开发技术 之AABB碰撞检测算法论述

    摘要:无论是PC机的3D还是智能设备应用上,碰撞检测始终是程序开发的难点,甚至可以用碰撞检测作为衡量3D引擎是否完善的标准.现有许多3D碰撞检测算法,其中AABB碰撞检测是一种卓有成效而又经典的检测算 ...