1. Network unblocked
A. Setting the network to bridging mode in a virtual machine
B. Install the disc
C Set up a firewall
2.ftp
Be aware that the firewall is set up first
First, install the VSFTPD in the server and start it
[Email protected] ~]# cd/mnt
[[email protected] mnt]# mkdir OK
[Email protected] mnt]# Mount/dev/cdrom./ok
[[Email protected] mnt]# CD OK
[[email protected] ok]# ls
[Email protected] ok]# CD server/
[[email protected] server]# ls vs*
vsftpd-2.0.5-16.el5.i386.rpm
[Email protected] server]# RPM-IVH vsftpd-2.0.5-16.el5.i386.rpm
[[Email protected] server]# service VSFTPD start
Second: Create a new download in var/ftp/, 1.txt and this permission
Three: Create a new upload in var/ftp/, set folder permissions
Four: Then configure the FTP configuration file, say where # is removed (in the ETC folder)
Restarting the FTP server
[Email protected] download]# service vsftpd restart
3.web80 and 8080 ports
(1) Configuring the Software Installation source
Applications, Add/remove software edit->repositories Add name,description Casual. Location:file:///mnt/ok/server
Open applications, Add/remove software again, select Servers on the left, tick web Server on the right to click Apply.
(2) Start the Web service
In Terminal input: Service httpd start
(3) Setting up a firewall
System->administration->security level and Firewall, open the Security Levels Settings window.
On the Firewall Options tab, select "Enabled" in the "Firewall" tab, "WWW (HTTP)" In the "Trusted Services" list box,
On the SELinux tab, select Disabled at the SELinux settings, and click OK.
(4) Add 8080 port again
Access Http://IP in Windows, see the noindex.html of the page in/var/www/error in Linux
Place your home page in/var/www/html, name it index.html, Access Http://IP again in Windows, you can see your home page, if not, you need to modify the file permissions.
Open httpd.conf in/etc/httpd/conf View 306 rows, define the path to the default Web site ... On line 134, there is a listening port listen 80, add a row below listen 8080
Add the following text at the end of the document
<virtualhost ip:80>
documentroot/var/www/html/
</VirtualHost>
<virtualhost ip:8080>
Documentroot/home
</VirtualHost>
Restart HTTPD Services Service httpd restart
Place a webpage under/home index.html
Configure the firewall to allow 8080 ports to view the http://IP,http://IP:8080 in the browser separately
Linux FTP and WWW servers are built on virtual machines