如何在centos7中安装广告服务器revive Adserver

如题所述

Revive Adserver是一个自由开源的广告管理系统,能使出版商,广告平台和广告商在网页、应用、视频上投放并管理广告的系统。Revive Adserver以前叫做OpenX Source,遵循GNU通用公共授权协议。它集广告管理、网站定位、地理定位和一个用于数据收集的跟踪系统于一体。能使网站站长管理内部的、付费的以及第三方来源的广告,如谷歌的AdSense。本教程中我们演示centos7中利用httpd安装并运行revive adserver.
1.revive adserver本身就是一个php站点,所以我们首先安装httpd和mariadb.LAMP是Apache网页服务器,MySQL/MariaDB数据库和PHP模块的集合。要使Revive正常运行,需要安装PHP的众多模块,如apc, zlib, xml, pcre, mysql和mbstring
yum install httpd mariadb php php-gd php-mysql php-curl php-mbstring php-xml php-apc zlibc zlib1g zlib1g-dev libpcre3 libpcre3-dev zip

2.mariadb安装好后默认是没有密码的,需要手动设置
# mysql_secure_installation
这时会要我们输入root密码,但我们之前什么密码都没设置,所以按回车下一步。之后,要求设置root密码,这时我们输入Y,然后输入自己想要的密码。回车继续下一步.
3.让apache和mariadb自启动
#systemctl enable httpd.service
#systemctl enable mariadb.service
#systemctl start httpd.service
#systemctl start mariadb.service
4.为广告服务器的安装新建数据库
>create database revivedb;
>create user ‘reviveuser’@’localhost’ identified by ‘password’;
>grant all privileges on revivedb.* to ‘reviveuser’@’localhost’;
>flush privileges;
>exit;
5.接下来下载revive adserver包
#wget http://download.revive-adserver.com/revive-adserver-3.2.2.zip
#unzip revive-adserver-3.2.2.zip
#mv revive-adserver-3.2.2 /home/wwwroot/reviveads
6.接下来配置httpd服务
(1)修改DocumentRoot值为/home/wwwroot
(2)在conf.d目录中新建revive.conf文件内容为:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/wwwroot/reviveads
ServerName reviveads.com
ServerAlias www.reviveads.com
<Directory /home/wwwroot/reviveads>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
7.重启httpd后用域名打开站点,
(1)现在可以安装广告服务了.

(2)填写数据库信息
(3)填写站点信息 输入要填的信息,如:管理员用户名,密码和邮箱。可以以这些信息登录Adserver的控制界面。然后跳到最后一页,可以看到Revive Adserver已经安装成功了。
8.接着,转到Adverstiser页面,添加新的广告管理。在控制界面添加新用户到adserver,为广告库户添加标题,网页,视频 广告。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-04-18
Revive Adserver是一个自由开源的广告管理系统,能使出版商,广告平台和广告商在网页、应用、视频上投放并管理广告的系统。Revive Adserver以前叫做OpenX Source,遵循GNU通用公共授权协议。它集广告管理、网站定位、地理定位和一个用于数据收集的跟踪系统于一体。能使网站站长管理内部的、付费的以及第三方来源的广告,如谷歌的AdSense。本教程中我们演示centos7中利用httpd安装并运行revive adserver.

1.revive adserver本身就是一个php站点,所以我们首先安装httpd和mariadb.LAMP是Apache网页服务器,MySQL/MariaDB数据库和PHP模块的集合。要使Revive正常运行,需要安装PHP的众多模块,如apc, zlib, xml, pcre, mysql和mbstring

yum install httpd mariadb php php-gd php-mysql php-curl php-mbstring php-xml php-apc zlibc zlib1g zlib1g-dev libpcre3 libpcre3-dev zip

2.mariadb安装好后默认是没有密码的,需要手动设置

# mysql_secure_installation

这时会要我们输入root密码,但我们之前什么密码都没设置,所以按回车下一步。之后,要求设置root密码,这时我们输入Y,然后输入自己想要的密码。回车继续下一步.

3.让apache和mariadb自启动

#systemctl enable httpd.service

#systemctl enable mariadb.service

#systemctl start httpd.service

#systemctl start mariadb.service

4.为广告服务器的安装新建数据库

>create database revivedb;

>create user ‘reviveuser’@’localhost’ identified by ‘password’;

>grant all privileges on revivedb.* to ‘reviveuser’@’localhost’;

>flush privileges;

>exit;

5.接下来下载revive adserver包

#wget http://download.revive-adserver.com/revive-adserver-3.2.2.zip

#unzip revive-adserver-3.2.2.zip

#mv revive-adserver-3.2.2 /home/wwwroot/reviveads

6.接下来配置httpd服务

(1)修改DocumentRoot值为/home/wwwroot

(2)在conf.d目录中新建revive.conf文件内容为:

<VirtualHost *:80>

ServerAdmin [email protected]

DocumentRoot /home/wwwroot/reviveads

ServerName reviveads.com

ServerAlias www.reviveads.com

<Directory /home/wwwroot/reviveads>

Options FollowSymLinks

AllowOverride All

Require all granted

</Directory>

</VirtualHost>

7.重启httpd后用域名打开站点,

(1)现在可以安装广告服务了.

(2)填写数据库信息

(3)填写站点信息 输入要填的信息,如:管理员用户名,密码和邮箱。可以以这些信息登录Adserver的控制界面。然后跳到最后一页,可以看到Revive Adserver已经安装成功了。
相似回答