Linux Server Installation

Source: Internet
Author: User
Bind dns Server
1. System-> "Software Package"-> Search and install the corresponding "Software Package" (Upload File & Install package)
2. Choose "hardware"> "network configuration"> "DNS customer"> change "Resolution order" to "DNS, hosts"> Save return
Select "service"-> "BIND 8 DNS server"-> you can see that it consists of "global server options", "existing DNS region", and other parts
BIND can be installed by default as a high-speed cache server (there are root zone, 127.0.0 reverse, localhost forward) --> the installation sequence is bind-9.1.3-4-> bindconf-1.6.1-> caching-nameserver7.2-1
3. Create a master server
Select "bind dns server"-> select "new primary region"-> "region type" and select "Forward" in "existing region ", enter "test.com" in the "Domain Name/network" Domain Name, enter "master.test.com" in the master server, enter "root @ localhost" in the email address, and press "new ".
In "existing region", select "new primary region"> "region type" and select "reverse". In "Domain Name/network", enter "192.168.0 ", enter "master.test.com" as the master server, and enter "root @ localhost" as the email address.> press "new ".
Add a forward address record to the master server-> select "test.com"-> select "A record"-> enter "www" in "name ", enter "192.168.0.100" in the address and press "add ".
You can also add "cname record", "Mail Server MX record", and "Auxiliary Domain Name Server NS record"
After adding all records, return to "bind dns server" and press "application changes" to complete configuration changes.
4. Create a slave server
Select "existing region"> "new sub-region"> select "forward resolution" and enter the domain name "abc.com ", enter the "master server" Address "192.168.0.101"-> press "new" to complete-> press "save" and return "bind dns server"-> press "application change" to configure effective
Use the same steps to set "Reverse Record of slave server"

Postfix email server configuration
1. Install Postfix
On the "Webmin" Page, choose "system"> "Software Package"> "install a new package"> "from Upload File"> "Install ". postfix-1.1.7-2.i386.rpm, imap-2001a-10.i386.rpm
2. Configure the start of the Postfix Server
In "system", select "bootup and shutdown"-> select "Postfix"-> change "start at boot time" to "yes"-> press "save" to return
In "server", select "extended Internet Services"-> "IMAP" and "POP3", respectively ", change "Service enable" to "yes"-> Save and return-> press "applay changes" to make the settings take effect (equivalent to service xinetd restart)
3. register an email server on DNS
(Note: 1. After adding the host name, press "Apply changes" to make the configuration take effect. 2. If a complete host name is written on the server, it must end)
4. Configure Postfix
In "server", select "Postfix configuration"-> select "general options"-> set "What domain to use in outbound" to "use domainname" to use the Domain Name of the current email server the domain name of the email sender; set "What domains to receive mail for" to "whole domain" to indicate that the current mail server receives all emails from the entire domain; Set "network interfaces for processing ing mail" to "all ", all NICs are used to receive emails. Set "hostname of this mail system" to enter "mail.test.com" for the host name of the current mail server "; in "local Internet domain name", enter the domain name "test.com" where the current host is located; retain the default value for other items-> press "Save and apply ".
5. Add a user account to the email server
In "Webmin", "system", "users and groups"-> select "local groups" and press "create a new group"-> enter "mailuser" in "group name" -> select "Create a new user" in "Local User"-> enter "mailuser1" in "username ", enter "/home/mailuser1" in "home directory" and "normal password" in "password ", in "group membership", select "mailuser"-> for "existing group" of "Primary Group" and click "CREATE" to create a user.
5. email alias and virtual domain
Email alias:
In "Webmin", select "Postfix configuration"-> select "mail aliases"-> select "Create a new alias"-> set" alias databases used by the local delivery agent "and" alias databases built by newaliases command "are" hash: /etc/Postfix/aliases "-> select" Create a new alias "-> on the" alias properties edition "Page, enter" mailuser3 "in" alias ..." Enter "mailuser2" in (mailuser3 is a nonexistent account alias to mailuser2 is an existing account, so emails sent to mailuser3 are automatically forwarded to mailuser2)
Virtual domain of the email:
In "Postfix configuration" of "Webmin" "server"> select "virtual domain"> set "Domain Mapping Lookup tables" to "hash: /etc/Postfix/virtual "-> select" Save and apply "-> enter" virtual domains "and select" new mapping "to create a ing-> in" edit a map" set "name" to "@ newtest.com ", "maps ..." For "@ test.com" (ing all emails sent to @ newtest.com to @ test.com) --> save by "Save mapping"

WU-FTPd Server

1. FTP Server Installation
Webmin-> system-> Software Package-> from uploaded file-> install wu-ftpd-2.6.2-5.i386.rpm and anonftp-4.0-9.i386.rpm"

2. WU-FTPd server startup settings
"Webmin"-> "server"-> "extended Internet Services"-> select "FTP"-> modify "service enabled ?" Select "yes"> "save" to save the current settings.> on the "extended Internet Services" page, click "Apply changes" to make the settings take effect.

3. Set anonymous account rules
Webmin-> server-> WU-FTP server-> select Anonymous FTP-> set anonymous FTP root directories to/var/FTP (such as vacant the main directory of the current FTP user, see/etc/passwd) --> press "save" to save the settings. The test is successful on the client.

4. Set the Guest account
Add account ftpuser1:
"Webmin"-> "System"-> "users and groups"-> select "Create a new user"-> set "username" to "ftpuser1 ", "shell" is "/sbin/nologin", "Home Directory" is "/home/ftpuser/user1", and "password" is "normail password ", "Copy files to home directory" is set to "no", indicating that files under the/etc/skel directory are not copied to the user's home directory.-> select "CREATE" to create a user.
Set the Guest account:
Webmin-> server-> WU-FTP server-> select users and classes-> Unix users and UIDs to treat as guests is set to * by default (indicates that all user accounts are of the guest type by default) -> press "save" to return-> the client is successfully tested.

5. set real accounts
Add account ftpuser2:
"Webmin"-> "System"-> "users and groups"-> select "Create a new user"-> set "username" to "ftpuser2 ", "shell" is "/sbin/nologin", "Home Directory" is "/home/ftpuser/user2", and "password" is "normal password ", enter the password-> press "CREATE" to create the user.
Set real account:
"Webmin"-> "server"-> "WU-FTP server"-> select "Users and classes"-> enter the account "ftpuser2" in "UNIX groups and UIDs not to treat as guest ""-> press save to save and return-> the test is successful on the client.

6. Set access control for the wu-ftpd server (probably)
(1) use IP addresses for access control
Edit a file such as/var/FTP/ipdeny in the directory that may be logged on. The content is "sorry, your IP address is blocked"
In Webmin-> servers-> WU-FTP server-> select limits and access control-> In Deny Access From, add deny FROM address as 192.168.0.2 ", "error message file" is "/var/FTP/ipdeny"-> press "save" and save-> the test is completed on the client.
(2) Use class for access control
Edit a file such as/var/FTP/toovel in the directory that may be logged on. The content is "sorry, too login users now. Please try again later ."
"Webmin"-> "servers"-> "WU-FTP server"-> "Users and classes" defines the class name "unknownuser", "user types" is "anonymous ", "matching address" is "! 192.168.0.0/24 "-> press" save "and save-> in" limits and access control ", set" apply to Class "in" concurrent user limits ", and select" Save to class ". unknownuser ", "Maximum users" is "15", "At times" is "any time ", "error message file" is "/var/FTP/toovel"-> press "save" and save the result.-> the client passes the test
You can also set "Limit type" in "file and data transfer limits" to "files per session", "maximum" to "5", and "apply to Class" to "unknownuser"

Apache server configuration
1. Install and start Apache
Webmin-> system-> Software Package-> from uploaded file-> select install to install apache-1.3.20-16.i386.rpm"
Start: Select "System"-> "bootup and shutdown"-> select "httpd"-> "start at boot time ?" Change to "yes"-> and press "save" to save (select "Start selected" to start the service)

2. Apache configuration interface
"Webmin"-> "servers"-> "Apache webserver" can be viewed in three parts: "global configuration", "virtual servers", and "Create a new virtual server"

3. Create a domain name-based VM in Apache
"Webmin"-> "servers"-> "Apache webserver"-> "Create a new virtual server"-> set "Address" to "192.168.0.100 ", "document root" is "/home/ftpuser/user1 ", "server name" is "ftpuser1.test.com"-> select "CREATE" to complete creation-> on the "Apache webserver" Page, press "Apply changes" to make the modified configuration take effect-> test access on the client pass (domain name must be completed in advance)

4. Create a virtual host based on IP address in Apache
Bind multiple IP addresses:
"Webmin"-> "hardware"-> "network configuration"-> "network interfaces"-> select "Add a new interfaces"-> enter "name" for "interfaces active now ""is" eth0: 0 "," IP address "is" 192.168.0.101 "-> Press" create "to complete the creation
"Webmin"-> "servers"-> "Apache webserver"-> "Create a new virtual server"-> set the IP address "Address" to "192.168.0.101 ", "document root" is "/home/ftpuser/user2 ", "server name" is "ftpuser2.test.com"-> select "CREATE" to complete creation-> on the "Apache webserver" Page, press "Apply changes" to make the modified configuration take effect-> test access on the client pass (domain name in advance)

5. access restrictions in Apache
User name/password-Based Access Control:
Select "ftpuser1.test.com"-> of "virtual server" and set "type" to "directory" in "create per-directory, files or location options ", "path" is "/home/ftpuser/user1 ", press "CREATE" to complete the creation.> select the Created directory/home/ftpuser/user1.> select "Access Control".> set "authentication realm name" to "ftpuser1.test.com", "authentication type" is "Basic", "restrict access by login" is "all valid users ", in "text file authentication", "user text file" is "/etc/httpd/CONF/accesscontrolfile"-> press "save"-> go to the "Access Control" page again and set" edit users "adds the user" httpuser1 "-> press" Apply changes "to make the settings take effect-> access through the client passes the test

Access Control Based on Client Host IP Address
Same as above, select "ftpuser2.test.com"-> Set directory "/home/ftpuser/user2"-> select "Access Control" for "directory/home/ftpuser/user2"-> select" the "Access checking order" of resist access is "allow then deny"-> Add "action" "allow" "All requests" and "deny" "request from IP" "192.168.0.2" -> client access verification passed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.