新聞中心
在我們這套無人值守安裝系統(tǒng)的服務(wù)中,光盤鏡像是通過FTP協(xié)議傳輸?shù)?,因此勢必要用到vsftpd服務(wù)程序。當(dāng)然,也可以使用httpd服務(wù)程序來提供Web網(wǎng)站訪問的方式,只要能確保將光盤鏡像順利傳輸給客戶端主機即可。如果打算使用Web網(wǎng)站服務(wù)來提供光盤鏡像,一定記得將上面配置文件中的光盤鏡像獲取網(wǎng)址和Kickstart應(yīng)答文件獲取網(wǎng)址修改一下。

專注于為中小企業(yè)提供網(wǎng)站設(shè)計、成都網(wǎng)站設(shè)計服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)紅安免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上千家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。
[root@linuxprobe ~]# yum install vsftpd
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-9.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
vsftpd x86_64 3.0.2-9.el7 rhel 166 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 166 k
Installed size: 343 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : vsftpd-3.0.2-9.el7.x86_64 1/1
Verifying : vsftpd-3.0.2-9.el7.x86_64 1/1
Installed:
vsftpd.x86_64 0:3.0.2-9.el7
Complete!劉遄老師再啰嗦一句,在配置文件修改正確之后,一定將相應(yīng)的服務(wù)程序添加到開機啟動項中,這樣無論是在生產(chǎn)環(huán)境中還是在紅帽認證考試中,都可以在設(shè)備重啟之后依然能提供相應(yīng)的服務(wù)。希望各位讀者一定養(yǎng)成這個好習(xí)慣。
[root@linuxprobe ~]# systemctl restart vsftpd
[root@linuxprobe ~]# systemctl enable vsftpd
ln -s '/usr/lib/systemd/system/vsftpd.service' '/etc/systemd/system/multi-user.target.wants/vsftpd.service'在確認系統(tǒng)光盤鏡像已經(jīng)正常掛載到/media/cdrom目錄后,把目錄中的光盤鏡像文件全部復(fù)制到vsftpd服務(wù)程序的工作目錄中。
[root@linuxprobe ~]# cp -r /media/cdrom/* /var/ftp這個過程大約需要3~5分鐘。在此期間,我們也別閑著,在firewalld防火墻管理工具中寫入使FTP協(xié)議永久生效的允許策略,然后在SELinux中放行FTP傳輸:
[root@linuxprobe ~]# firewall-cmd --permanent --add-service=ftp
success
[root@linuxprobe ~]# firewall-cmd --reload
success
[root@linuxprobe ~]# setsebool -P ftpd_connect_all_unreserved=on 當(dāng)前題目:創(chuàng)新互聯(lián)linux教程:19.2.4配置VSFtpd服務(wù)程序
地址分享:http://m.fisionsoft.com.cn/article/cocigsd.html


咨詢
建站咨詢
