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

时间: 2024-10-10 00:31:29

Linux Program的相关文章

Banking Rounding for Decimal rounding off on Linux

Hi All, After I investigated ccr below, I found an rounding issue. The issue is that we can get different result between Linux and Windows platform when we do the decimal rounding with string format or print function. Please refer to the screenshots

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

补充: 1.  C程序的执行过程: C编译器调用链接器,链接器设置可执行程序文件的启动起始地址(启动例程),启动例程获得内核传递来的 命令行参数和环境变量值,为调用main函数做准备.[实际上该启动例程常用汇编语言编写],如果将启动例程换做C语言就是:exit(main(argc,argv)); main(int argc,char *argv[],char *engv[]);argv为指向参数的各个指针所构成的数组. 2.exit做一些清理处理(标准IO库的清理关闭操作为所有打开的流调用fcl

理解环境变量

1.什么是环境变量? 由于linux是一个多用户的操作系统,所以每个用户都有自己的专用的运行环境.而这个环境有一组变量所定义,这组变量就是环境变量.用户可以对自己环境变量进行修改以达到环境的要求. 环境变量是和Shell紧密相关的,它是通过Shell命令来设置的. 环境变量又可以被所有当前用户所运行的程序所使用.对于bash来说,可以通过变量名来访问相应的环境变量.(shell) 2.linux中常见的环境变量 PATH:指定命令的搜索路径 [[email protected] /]$ echo

Android实现网络多线程断点续传下载

本示例介绍在Android平台下通过HTTP协议实现断点续传下载. 我们编写的是Andorid的HTTP协议多线程断点下载应用程序.直接使用单线程下载HTTP文件对我们来说是一件非常简单的事.那么,多线程断点需要什么功能? 1.多线程下载, 2.支持断点. 使用多线程的好处:使用多线程下载会提升文件下载的速度.那么多线程下载文件的过程是: (1)首先获得下载文件的长度,然后设置本地文件的长度. HttpURLConnection.getContentLength();//获取下载文件的长度 Ra

84.ubuntu14.04安装opencv-2.4.9

1 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/linux/program/opencv/opencv-2.4.9/install ../ /home/linux/program/opencv/opencv-2.4.9/install ../ 这是一个文件夹路径,install后面有一个空格

The Applications of RT-Thread RTOS

The Applications of RT-Thread RTOS Introduction The user application is the application layer of RT-Thread RTOS. The developer can develop his/her application out of RT-Thread RTOS firmware environment. There are two mode for RT-Thread Applications,

Gawk program on linux

refers to <Linux Command Line and Shell Scripting Bible> date:Sep 18 2016 Gawk is to run scripts,So called program.It is programming-like environment. first example: $0 represents the entire line of the text. Each data field is determined in a text

Linux 编译时出现类似error: stray &#39;\357&#39; in program的解决方法

原因: 在程序中打入了全角字符 具体分析产生原因: 在编程中,由于打字的快速,按下ctrl键后紧接着按下了space键,由于按下两个键的间隙比较短,导致系统误检测到ctrl + space信号,将输入法从半角切换到全角. 解决方法: 只需将定位的错误行号对应的代码删掉重新输入即可. Linux 编译时出现类似error: stray '\357' in program的解决方法

linux shell program summary

from:Sep 23 2016 mathematical operation: floating number,bc calculator: we can also use bc in shell scripts: if - then - else number comparison: n1 -eq n2 n1 -ge n2 n1 -gt n2 n1 -le n2 n1 -lt n2 n1 -ne n2 if - then - elif, notice that the second elif