Linux Reference Note 4

Source: Internet
Author: User

First, build lamp platform 1. What is a lamp website: a language that is composed of one and more Web pages: PHP, Python, Perl, Java,. Net ... Database: Oracle, MySQL, SQL Server ... Web server: Apache, Nginx, IIS ... Operating system: Linux, Windows, Unix ... linux+apache+mysql+php (web site Build gold combination) Windows+iis+sql Server+.net2. Turn off firewall and selinux off firewall [[email protected] ~]# Systemctl Disable FIREWALLD--now close selinux[[email protected] ~]# vim/etc/sysconfig/selinux ... 7 selinux=disabled//Make sure it is disabled ... Ii. Web and Database configuration 1.Apache Introduction Web server, default listener TCP 80 Port package Name: HTTPD Master Profile:/etc/httpd/conf/httpd.conf default page storage location:/var/www/ HTML2. Important parameters in Master Profile # vim/etc/httpd/conf/httpd.conf ... Listen 80//Port number ... Users Apache//Run User "group Apache//Run ... #ServerName www.example.com:80//DNS name registered on this website ... 119 DocumentRoot "/var/www/html"//Web Deployment root directory ... 164 DirectoryIndex index.html//default home name ... 3. Virtual host on a Web server can implement multiple Web services, to provide users with a number of different Web sites based on the domain name of the virtual host: users access to different domain names, can get different sites, but different domain names point to the same server ip4./etc/ Hosts file early implementation DNS domain name resolution feature file eg:[[email protected] html]# ping tts8.tedu.cn[[email protected] html]# Ping Ne.tedu.cn[[email pRotected] html]# vim/etc/hosts add a row below 127.0.0.1 tts8.tedu.cn ne.tedu.cn

Linux Reference Note 4

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.