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 ...
随机推荐
- 高质量JavaScript代码书写基本要点
翻译-高质量JavaScript代码书写基本要点 by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/ ...
- ListView 搭配SimpleAdapter
这是SimplerAdapter的构造函数 public SimpleAdapter(Context context, List<? extends Map<String, ?>&g ...
- phalcon:model 事件与事件管理器
事件与事件管理器(Events and Events Manager)¶ Models allow you to implement events that will be thrown when p ...
- Windows菜单
目录 第1章 Windows菜单 1 1.1 窗口菜单和弹出菜单 1 1.2 使用SetMenu 2 1.3 使用TrackPopupMenu 4 第1章 Windows菜单 ...
- iOS高性能图片架构与设计
版权声明:本文由柯灵杰原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/157 来源:腾云阁 https://www.qclo ...
- eclipse 新建 maven 项目 添加 spring hibernate 的配置文件 详情
主要配置文件 pom.xml 项目的maven 配置文件 管理项目所需 jar 依赖支持 web.xml 项目的总 配置文件 :添加 spring和hibernate 支持 applicationC ...
- linux笔记:linux帮助命令,man,help,whatis,apropos
命令名称:man功能:获得帮助信息命令所在路径:/usr/bin/man用法:man 命令或配置文件其他:会调用less来查看该命令或配置文件的帮助信息. 命令名称:whatis功能:获得命令的简短介 ...
- 鼠标经过容器放大--css3
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- 关于byte[]字节传输的大端和小端小议
当前的存储器,多以byte为访问的最小单元,当一个逻辑上的地址必须分割为物理上的若干单元时就存在了先放谁后放谁的问题,于是端(endian)的问题应运而生了,对于不同的存储方法,就有大端(big-en ...
- iOS 10 消息推送(UserNotifications)秘籍总结(二)
背景 上一篇博客iOS 10 消息推送(UserNotifications)秘籍总结(一)发布后被 简书编辑推荐至首页,这着实让我受宠若惊啊.可是好事不长,后面发生了让我伤心欲绝的事,我的女朋友不要我 ...