新聞中心
Revive Adserver是一個自由開源的基于LAMP的廣告管理系統(tǒng),能使出版商,廣告平臺和廣告商在網(wǎng)頁、應(yīng)用、視頻上投放并管理廣告的系統(tǒng)。Revive Adserver可以將廣告本地化,這樣就避免了廣告被屏蔽,下面為大家分享一下Linux下安裝Revive Adserver具體步驟。

創(chuàng)新互聯(lián)公司2013年開創(chuàng)至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目網(wǎng)站制作、網(wǎng)站建設(shè)網(wǎng)站策劃,項目實(shí)施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元安州做網(wǎng)站,已為上家服務(wù),為安州各地企業(yè)和個人服務(wù),聯(lián)系電話:18982081108
@revive-adserver
1. 安裝LAMP
首先,Revive Adserver需要完整的LAMP環(huán)境才能運(yùn)行,所以我們先安裝LAMP。LAMP是Apache網(wǎng)頁服務(wù)器,MySQL/MariaDB數(shù)據(jù)庫和PHP模塊的集合。要使Revive正常運(yùn)行,需要安裝PHP的眾多模塊,如apc, zlib, xml, pcre, mysql和mbstring。我們可以用下列命令進(jìn)行LAMP的配置:
# 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. 啟動Apache Web和MariaDB服務(wù)
可以用下列命令啟動剛剛安裝好的Apache Web服務(wù)和MariaDB數(shù)據(jù)庫服務(wù)。
# systemctl start httpd mariadb
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'
3. 配置MariaDB
當(dāng)我們第一次啟動MariaDB時,MariaDB是沒有分配密碼的,所以要先設(shè)置一個root密碼。之后再創(chuàng)建一個新的數(shù)據(jù)庫用來儲存Revive Adserver的數(shù)據(jù)。
使用以下命令配置MariaDB并設(shè)置其root密碼:
# mysql_secure_installation
這時會要我們輸入root密碼,但我們之前什么密碼都沒設(shè)置,所以按回車下一步。之后,要求設(shè)置root密碼,這時我們輸入Y,然后輸入自己想要的密碼。回車?yán)^續(xù)下一步。
…
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
… Success!
…
installation should now be secure.
Thanks for using MariaDB!
在CentOS 7 上安裝廣告服務(wù)器 Revive Adserver在CentOS 7 上安裝廣告服務(wù)器 Revive Adserver
4. 創(chuàng)建新的數(shù)據(jù)庫
為MariaDB的root用戶設(shè)置了密碼之后,就可以創(chuàng)建用來儲存Revive Adserver應(yīng)用數(shù)據(jù)的數(shù)據(jù)庫。首先通過以下命令登錄MariaDB控制臺:
# mysql -u root -p
這時要求輸入root用戶的密碼,我們只要輸入上一步設(shè)置好的密碼。然后進(jìn)入MariaDB控制臺創(chuàng)建新的數(shù)據(jù)庫,數(shù)據(jù)庫用戶及其密碼,并且授予其創(chuàng)建、刪除、編輯和存儲表與數(shù)據(jù)的全部權(quán)限。
> CREATE DATABASE revivedb;
> CREATE USER 'reviveuser'@'localhost' IDENTIFIED BY 'Pa$$worD123';
> GRANT ALL PRIVILEGES ON revivedb.* TO 'reviveuser'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;
在CentOS 7 上安裝廣告服務(wù)器 Revive Adserver在CentOS 7 上安裝廣告服務(wù)器 Revive Adserver
5. 下載Revive Adserver
接下來下載Revive Adserver的最新版本Revive Adserver.3.2.2(寫本文時)??梢允褂脀get命令從Revive Adserverde 官方網(wǎng)站下載壓縮包,網(wǎng)址是:http://www.revive-adserver.com/download/ 。命令如下:
# cd /tmp/
# wget http://download.revive-adserver.com/revive-adserver-3.2.2.zip
--2015-11-09 17:03:48-- http://download.revive-adserver.com/revive-adserver-3.2.2.zip
Resolving download.revive-adserver.com (download.revive-adserver.com)... 54.230.119.219, 54.239.132.177, 54.230.116.214, ...
Connecting to download.revive-adserver.com (download.revive-adserver.com)|54.230.119.219|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11663620 (11M) [application/zip]
Saving to: 'revive-adserver-3.2.2.zip'
revive-adserver-3.2 100%[=====================>] 11.12M 1.80MB/s in 13s
2015-11-09 17:04:02 (906 KB/s) - 'revive-adserver-3.2.2.zip' saved [11663620/11663620]
解壓到臨時目錄下:
# unzip revive-adserver-3.2.2.zip
把解壓后的整個文件夾移動到Apache Web服務(wù)器的默認(rèn)根目錄/var/www/html/下:
# mv revive-adserver-3.2.2 /var/www/html/reviveads
6. 配置Apache Web服務(wù)
我們直接在/etc/httpd/conf.d/ 目錄下創(chuàng)建reviveads.conf :
# vi /etc/httpd/conf.d/reviveads.conf
在這個文件中添加下列幾行文本:
ServerAdmin info@reviveads.linoxide.com DocumentRoot /var/www/html/reviveads/ ServerName reviveads.linoxide.com ServerAlias www.reviveads.linoxide.com
Options FollowSymLinks AllowOverride All ErrorLog /var/
log/httpd/reviveads.linoxide.com-error_log CustomLog /var/
log/httpd/reviveads.linoxide.com-access_log common
保存并退出,重啟Apache Web服務(wù):
# systemctl restart httpd
7. 修復(fù)權(quán)限和所有權(quán)
在我們修改安裝路徑下文件的權(quán)限和所有權(quán)。把安裝目錄的所有權(quán)改成Apache進(jìn)程所有,以便Apache Web服務(wù)有文件和目錄的編輯、創(chuàng)建和刪除的完全權(quán)限。
# chown apache: -R /var/www/html/reviveads
8. 設(shè)置防火墻
現(xiàn)在要配置防火墻,打開80端口使Apache Web服務(wù)運(yùn)行的Revive Adserver能夠被網(wǎng)絡(luò)上的其他機(jī)器所訪問。
# firewall-cmd --permanent --add-service=http
success
# firewall-cmd --reload
success
9. 網(wǎng)站的安裝
在瀏覽器輸入http://ip-address/ 或者 http://domain.com 。這里我們要訪問 http://reviveads.linoxide.com/ 打開后可以看到Revive Adserver的歡迎頁面,上面還有作為它發(fā)行許可證的GNU通用公共許可證V2。點(diǎn)擊 I agree 繼續(xù)下一步安裝。 在下一頁中,我們要輸入數(shù)據(jù)庫信息以便把Revive Adserver和MariaDB數(shù)據(jù)庫服務(wù)連接起來。要輸入之前設(shè)置的數(shù)據(jù)庫名稱,用戶名以及密碼。在本教程中,我們分別輸入數(shù)據(jù)庫名稱為revivedb,用戶名為reviveuser,密碼為Pa$$worD123,并且令主機(jī)名為localhost,點(diǎn)擊continue繼續(xù)。 輸入要填的信息,如:管理員用戶名,密碼和郵箱。可以以這些信息登錄Adserver的控制界面。然后跳到最后一頁,可以看到Revive Adserver已經(jīng)安裝成功了,接著轉(zhuǎn)到Adverstiser頁面,添加新的廣告管理。在控制界面添加新用戶到adserver,為廣告庫戶添加標(biāo)題、網(wǎng)頁、視頻等類型廣告。
分享標(biāo)題:Linux下安裝ReviveAdserver具體步驟
URL標(biāo)題:http://m.5511xx.com/article/dhpgghd.html


咨詢
建站咨詢
