Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >System Management


    

Blue Forest http://www.lslnet.com at 3:18 p.m. on August 18, 2006


Directory RHCE Note 16

Chapter V, Section 2 [size=18] Web Server and Virtual Server (x) x [/size] mainly rely on the Linux Web Server which is to be achieved. Apache is one of the world's most widely used, most reliable Web Server. Linux version are carrying the issue when we have issued the latest edition of the x-shaped. Some examples will be a follow-up to explain how the distribution of x servers.
1, we should have been very familiar with how to install the software, do not talk about it.
2, #service httpd current status check whether it has been in operation webservice
3, #service httpd start launching webservice
4, # input http://127.0.0.1 column addresses in the browser should be able to
See Page 64A of the test, see if the test page using the order to switch off the firewall : iptables-F
5, x server configuration #
Steps : 1, the installation is completed, /etc/rc.d/init.d/httpd start to shut down the firewall, browser start page will see the acquiescence, editor /var/www/html/index.html reactivate httpd service so that effect.
2, the realization of a personal web page users
#vi /etc/httpd/conf/httpd.conf Delete UserDir disable, remove before the # UserDir public_html No. /etc/rc.d/init.d/httpd restart. restart webservice, imported 192.168.0.4/~zhao/ column in the browser address to verify. Objective : To achieve a basic Web Server, and Web-based user name, ip address of the virtual server service

3, based on the virtual server name : vi /etc/hosts, add the following line : 192.168.0.4 www.zhao.com zhao
Vi /etc/httpd/conf/httpd.conf will be the last part read as follows :
"VIrtualHost www.zhao.com>;
ServerAdmin webmaster@zhao.com
DocumentRoot /var/www/zhao
ServerName www.zhao.com
"Directory /var/www/zhao>;
"/Directory>;
"/VirtualHost>;
* Based on the virtual server name for the need for the allocation of dns服务
/etc/rc.d/init.d/network Restart
/etc/rc.d/init.d/httpd Restart
Opened in the browser address input column www.zhao.com
4, based on the virtual server ip address :
Ifconfig eth0:0 192.168.0.5 netmask 255.255.255.0

Vi /etc/httpd/conf/httpd.conf, add the following :
"VirtualHost 192.168.0.5>;
ServerAdmin webmaster@zhao.com
DocumentRoot /var/www/hit
"/VirtualHost>;
/etc/rc.d/init.d/httpd Restart
Opened in the browser address : 192.168.0.5 importation column

[size=18] Sect achieve proxy Proxy Proxy [/size] for most enterprises is essential. Windows software in the world to achieve a proxy server functions, such as : sygate, wingate, isa, etc. In the field of Linux by proxy to achieve this function. Squid Proxy Server software is a powerful one, to cultivate a more concise, very high efficiency. This section of a century a step-by-step examples to explain how the distribution of proxy proxy server.
1, #vi /etc/squid.conf editors proxy configuration file, add the following line :
Http_port 8080 to 8080 as the port agent, the agent acquiescence port is not set up for 3128 :
Cache_men Proxy Server installed 16 MB cache size
Cache_dir ufs /spool/squid 100 16 256 exchange Proxy Server installed space /spool/squid said the location of high-speed cache, 100 representatives of 16 100M,16 said space for a list of 256 delegates 256 2 Contents
Log cache_access_log /var/log/squid/access.log Cache
Cache_log /var/log/squid/cache.log cache log
Cache memory log cache_store_log /var/log/squid/store.log
Acl InternetAllow src 10.10.10.0 creating new access control list
InternetAllow http_access allow the creation of new rules allowing the use of proxy servers InternetAllow list of the mainframe
2, preserved from #wq!
3, z is initialized #squid
4, #service proxy start launching proxy agent services
5, completed proxy installed, it could be used.
Ftp Server IV
Ftp is a common Internet services, which were carrying redhat vsftp is the ftp software, the software is easy-to-use features and excellent safety. Following is a practical example to explain how the whole process vsftp server.
1, the installation CDs into the second vsftp software : CD-ROM, articulated entered /mnt/cdrom/RedHat/RPMS catalog, use rpm -ivh vsftd-1.2.0-4.i386.rpm order :
2, #service vsftpd start service launched
3, common configuration order : cd, get and mget, put, mput
[size=18][ V mail server [/size]
Mail service is a basic service on the Internet, most often connected to the Internet has its own e-mail service for commercial e-mail has become more common, the majority of companies will use electronic mail to communicate with customers and exchanges. Many of the company's internal e-mail server will be in the company to provide e-mail services. In linux/unix platform for the most commonly used e-mail system : handbook. The function of the system is a powerful and stable operation, a wide range of operating in the rest of the world is internet上 the most popular e-mail system. But there is a drawback, which is difficult handbook distribution nurture document very difficult to read. This section of a practical example to the rest of the configuration file revised handbook, we hope to operate in strict accordance with this step to ensure a smooth start-mail :
1, the installation and bind handbook
2, the distribution of DNS service for :
1, #vi /etc/named.conf, add new domain : test.com
Zone "test.com" IN --
Type master;
File "test.com.dns";
Allow-update none;) (
     };
2, touch /var/named/test.com.dns create corresponding domain configuration files :
$TTL 1d tacit Life Cycle
@ IN SOA ns.test.com 1d. Root.test.com. (
No. 1 starting sequence
2d Refresh Rate
1h frequency re-trial
1w time lapse
1h), the shortest TTL
IN NS ns.test.com @ 1d. Address domain name server installed
1d IN MX 10 mail.test.com. Set up mail server addresses
IN A 192.168.0.10 installed at the relationship between domain names and ip addresses
Ns IN A 192.168.0.10
Mail IN A 192.168.0.10
3, preservation withdraw service named restart will be at their dns
4, testing : host-l test.com
3, revised handbook of the configuration file :
1, #vi /etc/mail/ amended as follows : Bank
O DaemonPortOptions=Port=smtp, Addr=127.0.0.1, Name=MTA
The handbook will be changed to the server 127.0.0.1 address 192.168.0.1 and then preserved.
2, #vi /etc/mail/access, add the following line :
Test.com RELAY
192.168.0 RELAY
Executive orders giving effect :
Makemap r hash /etc/mail/access.db "/etc/mail/access
3, # vi /etc/mail/local-host-names added to allow the mainframe relay
Mail.test.com. From preservation
4, restart service handbook : #service handbook restart, now you can receive and send mail, take up the use of the service handbook



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com