1. 程式人生 > >Centos7單機安裝Tableau2018

Centos7單機安裝Tableau2018

先將伺服器防火牆80級8850埠開啟

臨時關閉SELinux/防火牆

setenforce 0

iptables -F

重點 重點 不能用root使用者安裝 不能用root使用者安裝 第一步先建立一個安裝使用者

登入root使用者新增組

#新增組

groupadd tableau

#新增安裝使用者

useradd admin -g tableau

#設定使用者密碼並激活

passwd admin

 

新增普通使用者具有sudo許可權

修改 /etc/sudoers 需要使用 visudo 指令

visudo

新增程式碼

a鍵可以進入編輯模式,移動游標至文末加入以下程式碼

admin ALL=(ALL) ALL

 

然後ESC退出編輯模式

輸入 :wq 儲存並退出

 

切換安裝使用者admin

su admin

cd /home/admin

 

有外網可以用wget命令下載以下任意一個軟體安裝包

2018.2.0

wget https://downloads.tableau.com/tssoftware/tableau-server-2018-2-0.x86_64.rpm

2018.2.2

wget https://downloads.tableau-china.com/esdalt/2018.2.2/tableau-server-2018-2-2.x86_64.rpm

2018.3.0

wget https://downloads.tableau-china.com/esdalt/2018.3.0/tableau-server-2018-3-0.x86_64.rpm

注意:如果提示找不到wget命令,可以使用下面的命令安裝wget

sudo yum -y install wget

安裝後重新用wget下載

 

無外網情況下,將下載好的安裝包用FTP工具上傳至客戶機 /home/admin/下然後開始安裝

 

安裝包及依賴

sudo yum -y install tableau-server-2018-2-0.x86_64.rpm

 

切換TSM目錄啟動TSM

cd /opt/tableau/tableau_server/packages/scripts.xxxxxxxxx

sudo ./initialize-tsm --accepteula

 

執行環境變數

source /etc/profile.d/tableau_server.sh

 

到這一步開始有兩種繼續安裝的方式

一、WEB UI

在瀏覽器訪問https://ip:8850按照提示繼續安裝,安裝至最後一步可能會出現要求建立Server賬戶管理員需要在本地進行

 

登陸介面使用安裝使用者admin及密碼來登陸

 

最後一步回到命令介面

登陸到TSM伺服器

tsm login -u tsmuser

建立Server賬戶管理員和密碼

tabcmd initialuser --server "localhost:80" --username "admin" --password "admin"

 

 

 

二、繼續試用命令介面安裝

登陸到TSM伺服器

tsm login -u tsmuser

 

啟用許可證

tsm licenses activate -k <KEY>

啟用試用期

tsm licenses activate -t

 

建立註冊檔案

sudo vi registration_file.json

編輯模板

{

"zip" : "10000",

"country" : "China",

"city" : "beijing",

"last_name" : "tsmuser",

"industry" : "Software",

"eula" : "yes",

"title" : "Software Applications Engineer",

"phone" : "13344445555",

"company" : "Example",

"state" : "NH",

"department" : "Engineering",

"first_name" : "lee",

"email" : "[email protected]"

}

 

更改註冊檔案歸屬

sudo chown tableau:admin registration_file.json

 

註冊

tsm register --template > ~/registration_file.json

 

配置本地防火牆

tsm topology list-ports

sudo systemctl start firewalld

sudo firewall-cmd --get-default-zone

sudo firewall-cmd --set-default-zone=public

sudo firewall-cmd --permanent --add-port=80/tcp

sudo firewall-cmd --permanent --add-port=8850/tcp

sudo firewall-cmd --reload

sudo firewall-cmd --list-all

 

建立註冊檔案

vi file.json

建立身份驗證檔案示例:

{ "configEntities":{ "identityStore": { "_type": "identityStoreType", "type": "local" } } }

tsm settings import -f ~/file.json

tsm pending-changes apply

tsm initialize --start-server --request-timeout 1800

tabcmd initialuser --server "localhost:80" --username "admin" --password "admin"

 

 

 

解除安裝及移除

解除安裝保留配置

https://onlinehelp.tableau.com/current/server-linux/zh-cn/uninstall_server.htm

完全移除

https://onlinehelp.tableau.com/current/server-linux/zh-cn/remove_tableau.htm

停用key後執行下列指令碼

sudo /opt/tableau/tableau_server/packages/scripts.<version>/tableau-server-obliterate -y -y -y -l

 

 

注意:安裝完成後還需要繼續將驅動安裝

安裝postgreSQL驅動(linux版本必須安裝)

su admin

wget https://downloads.tableau.com/drivers/linux/yum/tableau-driver/tableau-postgresql-odbc-9.5.3-1.x86_64.rpm

 

sudo yum install tableau-postgresql-odbc-9.5.3-1.x86_64.rpm

 

安裝其他驅動