Quick implementation of Linux-based Intranet

Source: Internet
Author: User
Tags web database
Quickly implement Linux-based Intranet-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Typical intranets that can be implemented
  
Www Service (apache)
  
In the full installation of the redhat system, you have installed apache, the http server that is currently most frequently used on the internet. You only need to use setup to select this service or directly run httpd. Its Installation root directory is in the/home/httpd/directory. You only need to use a browser to access your web server by IP address to see the apache instructions. If you want to release the home page, you only need to put them under/home/httpd/Html/, or put httpd. modify the root directory of the file in conf to your directory in windows. This allows you to enjoy the efficiency of Linux and the convenience of windows page creation tools. Note that the file names in linux are case sensitive, so it is best to Use lowercase letters for all file names on the page. In windows, the page file is generally. htm suffix, whereas the default linux Browser netscap or lyxn explains the page file. html suffix, you only need to in/etc/mime. add the following line to types: text/html htm. You can also modify the following configuration file according to the annotations:
  
/Etc/httpd/conf/httpd. conf
/Etc/httpd/conf/Access. conf
/Etc/httpd/conf/srm. conf to build a more powerful and flexible web Server
  
FTP service
  
In the full installation of the redhat system, you have installed the wu-ftp-2.4.2 server that is currently popular with the internet. Its Anonymous Access Directory is in the active/home/ftpd/directory. If you log on with a normal account on the ftp client, you will directly go to the main directory of the account. Its configuration files mainly include:
  
/Ect/ftpaccess.
  
Dns Service (bind-8.1.2)
  
The dns function is to map a name to a specific ip address. Currently, the popular Domain Name Server bind on the internet, whose execution process is named, has the following configuration files:
  
/Ect/named. conf
/Etc/resolv. conf
/Var/named. ca
/Var/named. local
/Var/named. hosts (self-built)
/Var/named. rev
  
Note that the user-created file must comply with the named configuration file format (from the existing file cp). Note that the configuration file format of bind 4 is completely different from that of bind 8 p.
  
Dhcp Service (dhcpd)
  
Dhcp is used to dynamically allocate ip addresses. Its Execution Process is dhcpd, and its configuration files include:
  
/Etc/dhcpd. conf/etc/dhcpd. leases (empty file)
/Etc/dhcpd. leases ~ (Empty folder) Note that a default route is added before dhcpd is started:
  
/Sbin/route add-host login detail 255 dev eth0 (described in/usr/doc/dhcp-2.0.bb1pl/) detailed format can be obtained using main dhcpd.
  
Ras Service (ppp)
  
I feel that configuring ppp is the most complex task in linux. The method described in ppp server installation method is very effective. Its main configuration files include:
/Etc/mgetty + sendfax/mgetty. config
/Etc/mgetty + sendfax/loging. config
/Etc/inittab
/Etc/ppp/options
/Etc/ppp/ppplogin
/Etc/ppp/options. ttys2
/Etc/ppp/pap-secrets
/Etc/hosts
  
Note: The Gateway using the win95 Dial-Up adapter is the ip address of the dial-up server, the dns is the ip address of the Intranet dns server, and the remote auto-configuration ip address is set. A newbie can not start the service first.
  
Network neighbors (smbd nmbd)
  
Microsoft's network neighbor is a local direct and simple resource sharing method, but it uses the netbeui protocol. The linux system mainly uses TCP/IP protocol clusters. The samba provided by the linux system can conveniently implement the functions of network neighbors, let your win95 users see your servers and resources from the neighborhood. The main configuration files are:
  
/Etc/smb. conf
/Etc/smbusers
Proxy service and firewall (routed lpmasquerdde ipfwadm)
There are also routed commands in windows nt, but dedicated proxy software is required to implement shared ip addresses, such as proxy server, wingate, and winproxy. In this regard, linux uses the core support ipmasquerad function, with routet and ipfwadm, which can be easily implemented, and does not need to specify a proxy server when using a browser, at the same time, ipfwadm is used to determine the rules for receiving and sending data packets, and a firewall facility based on packet filtering can be provided. Its main configuration commands include:
  
/Sbin/ipfwadm-f-p deny
/Sbin/ipfwadm-f-a m-s 192.168.0.0/16-d 0.0.0.0/0
/Sbin/route add-net 192.168.0.0 netmask 255.255.255.0 gw 130.0.40.1
  
SQL database system (postgresql)
  
SQL databases play an important role in the current intranet environment, but the commercialization of SQL databases running on the windows nt platform is expensive. the SQL databases integrated in linux mainly include postgre and sqlmysql, both of which implement the sql92 standard and provide odbc drivers on the windows client, which is an ideal backend database system. Postgresql is one of the Free SQL database systems widely used, and is the prototype of some commercial SQL databases. Although it may not be as powerful as some commercial SQL statements, it is more than enough as an intranet web database system to process Chinese characters. It also provides convenient interfaces for compiling cgi programs. To access postgresql, run the following command: psql database name. Note that the default Administrator Account S is disabled after installation. You must grant the logon permission. To allow web customers to access the database, they must authorize the nobody user.
  
General cgi packing box (PHP)
  
Microsoft's ASP technology, as a module of iis, can simplify the compilation of cgi programs, improve the efficiency of web servers, and provide flexible database connection methods. Apache in linux also has the corresponding php module, and redhat5.1 is a little troublesome and requires compiling the php source program. Since linux contains the most widely used cgi programming language perl 5, you can easily and efficiently design your cgi program.
  
2. Features of linux
  
The above section describes how to use the software included in linux to establish the basic intrenet framework with windows nt server 4. In fact, the linux system also contains the following things that are particularly useful for building an internet environment:
  
Disk quota (quota)
  
The quota mechanism can be used to control the amount of resources owned by users and prevent unauthorized uploads. It is a required function in a multi-user environment. Windows nt 5.0 will provide the disk quota function in the unix environment. The method for starting the disk quota in redhat is very simple. You only need to use the corresponding options in linuxconf. Note that you need to create two empty files, quota. user and quota. group, at the root of the file system that implements the quota, and you should immediately start the service after installing the system.
  
Mail Service (sendmail imapd)
  
Sendmail in linux is the main smtp software in the internet email system, and imapd is a pop3 mail server, which allows you to use netscape or ie to send and receive emails easily. Note that you must go to/etc/sendmail. add an internal domain to cw, and then add/etc/sendmail. change item f in cf to fw/etc/sendmail. cw. remote Logon (telnet) only provides telnet client programs in the win95 environment to access unix hosts. You can also use it to operate and control your servers. At the same time, it can also provide users with a unix system environment and rich application software.
  
3. Precautions for using linux
  
The preceding section briefly introduces how to use linux to build an intranet. to make good use of the software integrated with linux, you need to have a deeper understanding of the functions provided by its services and use the online help. Don't forget to look for more detailed help and examples in/usr/doc, especially in many classic articles under/usr/doc/howto, such as dos-to-linux-howto, net-3-howto, security-howto.
Related Article

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.