????·?????????????????????豸???????????г??????罻??????????????????????????????????????????????????????????豸????Ч????????????????????????????????????????·???????????ò?????????????????????????????????λ??????????е????????????????????·??????????·?????м????????Щ·????????????????????????????·?????????????????????????????????????????????Linux??????TFTP????????apache????????????滮??????????·?????????????????????????????????Linux??????????RedHat??Debian????????????а檔????????????????????????????y?????????????????????????????

???????Debian??????TFTP??apache??????

?????????TFTP??????????

????1??TFTP????????????

??????Debian?п???????????????????????????tftpd-hpa????????????“???????”??????????e??????????????и????????????????????????????????????apt-get install tftpd-hpa?????а???????????£?

root@AkBirdofpreyWorkStation:~# apt-get install tftpd-hpa

?????????????????????????????????????????????????′???/srv/tftp????

????2??TFTP????????????????????

???????????TFTP??????????????????TFTP?????????????鼰???????????????/etc/default/tftpd-hpa????????????????£?

    # /etc/default/tftpd-hpa
    TFTP_USERNAME="tftp"
    TFTP_DIRECTORY="/srv/tftp"
    TFTP_ADDRESS="0.0.0.0:69"
    TFTP_OPTIONS="-secure"

???????????????????????????????

    # /etc/default/tftpd-hpa
    TFTP_USERNAME="tftp"
    TFTP_DIRECTORY="/srv/tftp"
    TFTP_ADDRESS="0.0.0.0:69"
    TFTP_OPTIONS="-l -c -secure"

??????????TFTP_OPTIONS????м?????-l -c???????????????????·????????????????????????????????????TFTP??????????

???????????????????TFTP?????????????????????飬?????????£?

root@AkBirdofpreyWorkStation:/etc/default# chown tftp:tftp /srv/tftp

????????/srv/tftp??????????????tftp??????????????????????У?????????з????TFTP????????????/srv/tftp?????????root?????????????????????????????·????????????????????????????????transfer time out????

????????????/etc/init.d/tftpd-hpa restart????TFTP????TFTP???????????????????????????????£?

    root@AkBirdofpreyWorkStation:/etc/default# /etc/init.d/tftpd-hpa restart
    [ ok ] Restarting HPA's tftpd: in.tftpd.

??????????apache????????????????

????1??apache??????????????????

??????????????TFTP???????????????????????????ν???????????н?????а??????

????2??apache????????????????

??????????????????????RedHat????????Linux?汾?????Debian/Linux??????apache???????????????RedHat????????Linux?汾apache??????????????????Debian/Linux????apache???????????????б?????????httpd.conf????У????????????????????????????????·?????????漰???????????????????????apache???????????????????????????????????????????????á?

????Debian/Linux????apache???????????????????/etc/apache2?У????vi /etc/apache2/apache2.conf???????е??????????????????????????????????????????? /etc/apache2/sites-enabled/000-default?????????????apache????????????????????а???????????????????????????????????????????????

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www
    <Directory />
    Options FollowSymLinks Indexes
    AllowOverride None
    </Directory>
    <Directory /var/www/>
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow??deny
    allow from all
    </Directory>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow??deny
    Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug?? info?? notice?? warn?? error?? crit??
    # alert?? emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>