Apache and · Linux QQ installation tutorial (link detailed version)

========= Linux QQ installation tutorial Redhat / Centos / Fedora =========

Required dependencies:

gtk2.0Linux QQ Download: https://qd.myapp.com/myapp/qqteam/linuxQQ/linuxqq_2.0.0-b1-1024_x86_64.rpm

Linux automatic installation script: http://sqimg.qq.com/mqq_img/linuxQQ/linuxqq_2.0.0-b1-1024_x86_64.sh

The demo presentations using Centos

Since the LINUX QQ depends on Gtk2.0 so you first need to install the yum repository gtk2.0

yum update

yum install gtk2.x86_64

Download linux QQ rpm installation package: Wget  https://qd.myapp.com/myapp/qqteam/linuxQQ/linuxqq_2.0.0-b1-1024_x86_64.rp

Rpm installation package using the command rpm -ivh linuxqq_2.0.0-b1-1024_x86_64.rpm

When the progress bar is displayed after the completion of the installation is complete

Start the test is successful

========= Centos the Apache installation and configuration =========

1, pre-installation of Apache work (preparation)

  1. Check whether the network is normal

  1. Close Linux firewall generation systems using more than 7 7 Generation systemctl instructions to turn off the system using the service command Close

7 generation systems above instructions
systemctl STOP firewalld # turn off the firewall
systemctl disable firewalld # turn off the firewall boot from Kai
7 on behalf of the following systems
Service iptables STOP # turn off the firewall

   2. Turn off the linux kernel security

0 setenforce # temporary closure selinux

This, pre-work completed

2, with yum Apache Software Package Manager to install

yum install httpd * installation is complete!

Apache After installation is complete, the default will have two files in the following locations

/etc/httpd/conf/httpd.conf # master configuration file 

/ Var / www / html / # Default Web Site directory

View profile

ServerRoot "/ etc / httpd" # declare storage directory profile

Listen 80 # bind listening port by default are 80 ports

Timeout 60 # Set Client access timeout time is 120 seconds

User apache

User and Group Group apache # running Apache child process

ServerAdmin root @ localhost # set the administrator e-mail address

DocumentRoot "/ var / www / html" # home directory site

Here to set up a website directory

<Directory "/ var / www / html"> # container began to identify sites

When Options Indexes FollowSymLinks # Home can not find the file (such as index.html), the default directory presented to

AllowOverride None # here there are two options values ​​none and all set whether to allow the use of Apache htaccess file control

Require all granted #granted identity to run all access

</ Directory> # Site container end

Start Apache Software

7 version of the boot

systemctl start httpd.service

6 version of the boot

service httpd start

View Apache work

systemctl status httpd

Check the access occurs test page is the successful launch, enter the site's home directory

cd / var / www / html /

check the file

New index file touch index.html

Edit and save the index file vim index.html

Refresh the page to display the content just edited

1. To achieve WEB server set up.

#yum install httpd -y

# vim /etc/httpd/conf/httpd.conf

ServerRoot "/ etc / httpd" // set up the Apache root directory / etc / httpd

120 timeout // set timeout client access time is 120 seconds

80 the Listen // set httpd listening on port 80

Root @ localhost ServerAdmin // Set the Administrator E-mail address [email protected]

172.16.102.61:80 ServerName // set the hostname of the Web server and the listening port

DocumentRoot "/ var / www / html" // page document setting home directory is / var / www / html

Index.html DirectoryIndex // set the home page file as index.html

AddDefaultCharset UTF-8 default encoding // server set is UTF-8

# Echo "Welcome to my website"> /var/www/html/index.html

Check the local IP #ifconfig

# Service httpd restart testing. In the browser address bar enter " HTTP: // ip ", you can visit the home page.

2, the virtual directory

#mkdir -p /localhost/zjxy

# echo " Hello,World " > /localhost/zjxy/index.html

# vim /etc/httpd/conf/httpd.conf

Alias / zjxy "/ localhost / zjxy" // add at the end of file

# setenforce 0

# Service httpd restart testing. In the browser address bar enter " HTTP: // ip / zjxy "

 

Published 172 original articles · won praise 442 · views 110 000 +

Guess you like

Origin blog.csdn.net/weixin_44015669/article/details/104101958