Install Web services and analytics services

Source: Internet
Author: User

Installing Web services and Awstats analysis systems under Linux


Essential Tools


1:Linux system

2:Web and awststs rpm package http://www.apache.org/http://www.awstats.org/

3: The brain


Steps


First, you need to mount the disc to the specified directory, easy to find

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9B/51/wKioL1lhpMzSQn9jAABHwP9xkSI354.png "title=" 1.PNG "Style=" float:left; "alt=" Wkiol1lhpmzsqn9jaabhwp9xksi354.png "/>







Modify the IP address, because I am local operation is not easy to network, the company will change the other

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9B/50/wKiom1lhpM3QiP-cAAAfMMPiGQY355.png "style=" float : Left; "title=" 2.PNG "alt=" Wkiom1lhpm3qip-caaafmmpigqy355.png "/>






Restart the network card to apply the IP address

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9B/51/wKioL1lhpdzzwh7FAAA_L8Ccyes674.png "title=" 3.PNG "alt=" Wkiol1lhpdzzwh7faaa_l8ccyes674.png "/>


Uninstall locally installed via RPM force unload, unzip httpd to specified place via tar


650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9B/51/wKiom1lhpgeAUkc7AAAV57x5TMQ685.png "title=" 4.PNG "alt=" Wkiom1lhpgeaukc7aaav57x5tmq685.png "/>


./configure for installation,


--prefix=PREFIX (安装的目录)

--enable-module=so //打开 so 模块,so 模块是用来提 dso 支持的 apache 核心模块

--enable-rewrite=shared//Support URL rewriting

--enable-charset-lite  enable character Set conversion

--enable-cgi start CGI


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9B/51/wKiom1lhqTyST_KtAAAYtoiIzLc526.png "title=" 5.PNG "alt=" Wkiom1lhqtyst_ktaaaytoiizlc526.png "/>


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9B/51/wKioL1lhqPySFGEXAABVpnGF8Cg053.png "title=" 6.PNG "alt=" Wkiol1lhqpysfgexaabvpngf8cg053.png "/>


Make&&make Install compilation

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9B/51/wKioL1lhqU_AwWnJAAASUz9gPyg022.png "title=" 7.PNG "alt=" Wkiol1lhqu_awwnjaaasuz9gpyg022.png "/>

Create soft links for easy startup

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9B/51/wKioL1lhqWWxNGUNAAAUjuWr_Ag844.png "title=" 8.PNG "alt=" Wkiol1lhqwwxngunaaaujuwr_ag844.png "/>

Add As System service

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9B/51/wKiom1lhqZPBjo4bAAATUBNFNPw619.png "title=" 9.PNG "alt=" Wkiom1lhqzpbjo4baaatubnfnpw619.png "/>



Modify the httpd configuration file

/var/local/httpd/conf/httpd.conf


650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/9B/51/wKiom1lhqbjidqHHAAB6AzRZ5zo747.png-wh_500x0-wm_ 3-wmp_4-s_424893374.png "title=" 10.PNG "alt=" Wkiom1lhqbjidqhhaab6azrz5zo747.png-wh_50 "/>



Turn off the firewall and start the Web service

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9B/51/wKioL1lhqnDRCBIVAAA_kZjex7M148.png "title=" 11. PNG "alt=" Wkiol1lhqndrcbivaaa_kzjex7m148.png "/>


Configure Awstats Analysis System for analysis and management


Unzip the Awstats package and move it to the same directory as the Web

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9B/51/wKioL1lhqq3iPKSDAAAQGw0WGkI358.png "title=" 12. PNG "alt=" Wkiol1lhqq3ipksdaaaqgw0wgki358.png "/>


Give it permission to update

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9B/51/wKioL1lhq12TmOBMAAANYjCoVkE164.png "title=" 13. PNG "alt=" Wkiol1lhq12tmobmaaanyjcovke164.png "/>


To configure, first enter the Web service's main configuration file

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9B/51/wKiom1lhq3-ip10EAABW4CbtjE4829.png "title=" 14. PNG "alt=" Wkiom1lhq3-ip10eaabw4cbtje4829.png "/>


Some of these direct returns are allowed by default

Enter the " Domain name " to be analyzed

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9B/51/wKiom1lhq7mxsUncAABJAvlLsmo807.png "title=" 15. PNG "alt=" Wkiom1lhq7mxsuncaabjavllsmo807.png "/>


Write the access log address of its Web service here, and then save the exit

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9B/51/wKioL1lhrBHgB58oAAB93tGsEWs925.png "title=" 16. PNG "alt=" Wkiol1lhrbhgb58oaab93tgsews925.png "/>


/etc/awstats/awstats. www.jianyu.com.conf (for awstats configuration file)

mkdir/var/lib/awstats Just manually create

Finally grant permission to execute

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9B/51/wKiom1lhrF6y4URcAAAsLnO9xcw328.png "title=" 17. PNG "alt=" Wkiom1lhrf6y4urcaaaslno9xcw328.png "/>




                                                                                                                              2017.7.9

                                                                                                                                  12.12

Jianyu

This article is from the "Jianyu" blog, make sure to keep this source http://jianyu97.blog.51cto.com/12222102/1945632

Install Web services and analytics services

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.