知识大全 VIRTUAL

Posted

篇首语:如果梦想有捷径的话,那么这条路的名字一定叫坚持。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 VIRTUAL相关的知识,希望对你有一定的参考价值。

vsftpd-1.1.3配制实例之四:VIRTUAL  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  This example shows how you might set up virtual hosts Virtual hosting is  where different clients access your machine on different IP addresses (virtual  IPs) and get redirected to different ftp sites   For example if your machine responds to o IPs and   you could have the o different IPs represent o totally different FTP sites   For this example we are going to build on the INTERNET_SITE example   Step ) Set up a virtual IP address   ifconfig eth : up  (the standard IP address is )  (note this isn t quite plete the route for local connects hasn t been  added but it will do for now)  Step ) Create a user / location for the new virtual site   useradd d /var/ftp_site ftp_site   chown root root /var/ftp_site   chmod a+rx /var/ftp_site   umask   mkdir /var/ftp_site /pub  echo test > /var/ftp_site /pub/content  Step ) Modify the existing site to respond to the primary IP   Edit /etc/xinetd d/vsftpd and add the config line:  bind =   Step ) Create the new site responding on the virtual IP   cp /etc/xinetd d/vsftpd /etc/xinetd d/vsftpd   Edit vsftpd and change   The bind line to refer to the IP address    Add the line  server_args = /etc/nf  This launches this FTP site with a different vsftpd configuration file   cp /etc/nf /etc/nf  Add o lines:  ftp_username=ftp_site   ftpd_banner=This is the alternative FTP site   Step ) Restart xinetd and test!  /etc/rc d/init d/xinetd restart  [chris@localhost vsftpd]$ ftp   Connected to ( )    ready dude (vsFTPd : beat me break me)  Name ( :chris): [chris@localhost vsftpd]$  [chris@localhost vsftpd]$ ftp   Connected to ( )    ready dude (vsFTPd : beat me break me)  Name ( :chris):   This FTP server is anonymous only   Login failed   ftp> quit   Goodbye   [chris@localhost vsftpd]$ ftp   Connected to ( )    This is the alternative FTP site   Name ( :chris):   This FTP server is anonymous only   Login failed   ftp> cha138/Article/program/Oracle/201311/18549

相关参考

知识大全 ORACLE Virtual Private Database 全新体验

ORACLEVirtualPrivateDatabase全新体验  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起

知识大全 sealed、new、virtual、abstract 和 override

   一sealed 密封类不能被继承密封方法可以重写基类中的方法但本身不能在任何子类中进行重写     &n

知识大全 privte的析构函数和构造函数

  C++中是不允许virtual构造函数的如果在构造函数前加virtual  以vc为例编译器报错为inlineistheonlylegalstorageclassforconstructors