Linuxはメモ4を参考にします


 、  LAMP  
1.    LAMP
  :           
       :
    PHP、Python、perl、Java、.net ...
   :
    Oracle、MySQL、Sql Server ...
Web   :
    Apache、Nginx、IIS ...
    :
    Linux、Windows、Unix ...

Linux+Apache+MySQL+PHP(Web        )
Windows+IIS+Sql Server+.net
2.      Selinux
     
[root@svr7 ~]# systemctl disable firewalld --now
  Selinux
[root@ntd1711 ~]# vim /etc/sysconfig/selinux 
...
  7 SELINUX=disabled    //   disabled
...

 、Web      
1.Apache  
Web   ,    TCP 80  
    :httpd
     :/etc/httpd/conf/httpd.conf
        :/var/www/html
2.           
# vim /etc/httpd/conf/httpd.conf
... 
 42 Listen 80       //     
...
 66 User apache     //    
 67 Group apache    //   
...
 95 #ServerName www.example.com:80  //      DNS   
...
119 DocumentRoot "/var/www/html"    //        
...                       
164     DirectoryIndex index.html   //       
...
3.    
   Web          Web  ,          Web  
        :
         ,         ,                 IP
4./etc/hosts  
    dns         
eg:
[root@ntd1711 html]# ping tts8.tedu.cn
[root@ntd1711 html]# ping ne.tedu.cn
[root@ntd1711 html]# vim /etc/hosts
       
127.0.0.1   tts8.tedu.cn    ne.tedu.cn