centos6 revive-adserver

前端之家收集整理的这篇文章主要介绍了centos6 revive-adserver前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Revive Adserver是一个自由开源的广告管理系统,能使出版商,广告平台和广告商在网页、应用、视频上投放并管理广告的系统。

Revive Adserver以前叫做OpenX Source,遵循GNU通用公共授权协议。它集广告管理、网站定位地理定位和一个用于数据收集的跟踪系统于一体。能使网站站长管理内部的、付费的以及第三方来源的广告


实验环境

centos6.9_x64


实验软件

latest.rpm

revive-adserver-4.1.1.zip


软件安装

rpm -ivh latest.rpm

sed -i's/^mirrorlist=https/mirrorlist=http/'/etc/yum.repos.d/epel.repo

sed -i 's/^mirrorlist=https/mirrorlist=http/' /etc/yum.repos.d/webtatic.repo


yum install -y httpd* MysqL MysqL-devel MysqL-server gcc gcc-c++ lrzsz lsof wget

yum install -y PHP56w PHP56w-bcmath PHP56w-cli PHP56w-common PHP56w-devel PHP56w-fpm PHP56w-gd PHP56w-imap PHP56w-ldap PHP56w-mbstring PHP56w-mcrypt PHP56w-MysqL PHP56w-odbc PHP56w-pdo PHP56w-pear PHP56w-pecl-igbinary PHP56w-xml PHP56w-xmlrpc PHP56w-opcache PHP56w-intl PHP56w-pecl-memcache


PHP -version

PHP 5.6.32 (cli) (built: Oct 29 2017 19:00:01)

Copyright (c) 1997-2016 The PHP Group

Zend Engine v2.6.0,Copyright (c) 1998-2016 Zend Technologies

with Zend OPcache v7.0.6-dev,Copyright (c) 1999-2016,by Zend Technologies centos6默认PHP版本5.3 开源广告系统需要PHP5.6 必须升级


service MysqLd start

service httpd start

chkconfig --level 35 httpd on

chkconfig --level 35 MysqLd on


sed -i 's/#ServerName www.example.com:80/ServerName *:80/g' /etc/httpd/conf/httpd.conf

vim /etc/httpd/conf/httpd.conf

AddType application/x-tar .tgz 找到

AddType application/x-httpd-PHP .PHP 改为


netstat -tuplna | grep 80

tcp 0 0 :::80 :::* LISTEN 2187/httpd

udp 0 0 fe80::20c:29ff:fe23:fac9:123 :::* 1424/ntpd


netstat -tuplna | grep 3306

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2115/MysqLd



ps -aux | grep httpd

Warning: bad Syntax,perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ

root 2187 0.0 0.9 272492 9528 ? Ss 11:08 0:00 /usr/sbin/httpd

apache 2189 0.0 0.5 272492 5468 ? S 11:08 0:00 /usr/sbin/httpd

apache 2190 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2191 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2192 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2193 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2194 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2195 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

apache 2196 0.0 0.5 272492 5452 ? S 11:08 0:00 /usr/sbin/httpd

root 2221 0.0 0.0 103268 876 pts/0 S+ 11:21 0:00 grep httpd


ps -ef | grep MysqLd

root 2013 1 0 11:05 pts/0 00:00:00 /bin/sh /usr/bin/MysqLd_safe --datadir=/var/lib/MysqL --socket=/var/lib/MysqL/MysqL.sock --pid-file=/var/run/MysqLd/MysqLd.pid --basedir=/usr --user=MysqL

MysqL 2115 2013 0 11:05 pts/0 00:00:00 /usr/libexec/MysqLd --basedir=/usr --datadir=/var/lib/MysqL --user=MysqL --log-error=/var/log/MysqLd.log --pid-file=/var/run/MysqLd/MysqLd.pid --socket=/var/lib/MysqL/MysqL.sock

root 2223 1743 0 11:21 pts/0 00:00:00 grep MysqLd


touch /var/www/html/test.PHP

echo "<?PHP PHPinfo(); ?>" > /var/www/html/test.PHP

more /var/www/html/test.PHP

<?PHP PHPinfo(); ?>


MysqLadmin -uroot password 数据库密码

MysqL -uroot -p数据库密码

MysqL> CREATE DATABASE revivedb;

MysqL> CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY '123456'; 测试环境密码简单

MysqL> GRANT ALL PRIVILEGES ON revivedb.* TO 'reviveuser'@'localhost';

MysqL> FLUSH PRIVILEGES;


MysqL -ureviveuser -p123456

Welcome to the MysqL monitor. Commands end with ; or \g.

Your MysqL connection id is 5

Server version: 5.1.73 Source distribution

Copyright (c) 2000,2013,Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MysqL>



MysqL> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| revivedb |

| test |

+--------------------+

3 rows in set (0.00 sec)


http://10.240.240.127/test.php





unzip revive-adserver-4.1.1.zip

mv revive-adserver-4.1.1 /var/www/html/ads

chown -R apache:apache /var/www/html/ads/


http://10.240.240.127/ads/www/admin/install.php?action=welcome

原文链接:https://www.f2er.com/centos/374890.html

猜你在找的CentOS相关文章