Linux Program
浏览数:13 /
时间:2015年06月20日
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。