en:tvip_tms_install_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:tvip_tms_install_guide [2019/04/12 06:42] – [CentOS users] Egor Danilenko | en:tvip_tms_install_guide [2019/07/08 14:15] (current) – Egor Danilenko | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== TVIP TMS install guide ====== | ====== TVIP TMS install guide ====== | ||
| - | **System requirements**: | + | This is outdated article, you can found actual manual |
| - | + | ||
| - | * 4 Core CPU | + | |
| - | * Minimum 16GB of RAM | + | |
| - | + | ||
| - | **WARNING: | + | |
| - | + | ||
| - | + | ||
| - | ===== Ubuntu users ===== | + | |
| - | + | ||
| - | **Supported version:** 16.04 LTS, 18.04 LTS | + | |
| - | + | ||
| - | <WRAP center round tip 60%> | + | |
| - | We have **quick** way to installation on Ubuntu 16.04 - check instructions | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | First - check your system locale, if your locale is not UTF-8 you might setup correct locale (system locale influence to postgresql cluster). | + | |
| - | < | + | |
| - | locale -a | + | |
| - | </ | + | |
| - | + | ||
| - | if you not seen UTF-8 entries in output, you need setup (change en_US code to your region): | + | |
| - | < | + | |
| - | locale-gen en_US.UTF-8 | + | |
| - | dpkg-reconfigure locales | + | |
| - | </ | + | |
| - | + | ||
| - | Locale change after system reboot: | + | |
| - | < | + | |
| - | reboot | + | |
| - | </ | + | |
| - | + | ||
| - | Add repository to system: | + | |
| - | < | + | |
| - | echo "deb http:// | + | |
| - | wget --quiet -O - http:// | + | |
| - | apt-get update | + | |
| - | </ | + | |
| - | Install dependencies: | + | |
| - | + | ||
| - | * openjdk-java or oracle java (version 11 or above), tvip-tms package has as dependency java10-runtime, | + | |
| - | * postgresql server | + | |
| - | < | + | |
| - | apt-get install postgresql | + | |
| - | </ | + | |
| - | * elasticsearch (version 6.2.3 or above) | + | |
| - | < | + | |
| - | apt-get install elasticsearch | + | |
| - | </ | + | |
| - | + | ||
| - | Install TVIP TMS: | + | |
| - | < | + | |
| - | apt-get install tvip-tms | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | ===== Configure and start ===== | + | |
| - | + | ||
| - | + | ||
| - | * Switch to postgres user | + | |
| - | < | + | |
| - | root@tms:~# su postgres | + | |
| - | </ | + | |
| - | * Create tvip-tms user: | + | |
| - | < | + | |
| - | postgres@tms: | + | |
| - | </ | + | |
| - | * Create database for tvip-tms: | + | |
| - | < | + | |
| - | createdb tvip-tms -O tvip-tms | + | |
| - | </ | + | |
| - | Configure pg_hba.conf: | + | |
| - | + | ||
| - | On ubuntu this configuration located at / | + | |
| - | + | ||
| - | On centos this configuration located at / | + | |
| - | + | ||
| - | + | ||
| - | Set access restriction for local, 127.0.0.1/ | + | |
| - | < | + | |
| - | # " | + | |
| - | local | + | |
| - | # IPv4 local connections: | + | |
| - | host all | + | |
| - | # IPv6 local connections: | + | |
| - | host all | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | This option allow passwordless access to all databases from localhost (not for remote connections). | + | |
| - | + | ||
| - | Restart postgres service | + | |
| - | + | ||
| - | < | + | |
| - | service postgresql restart | + | |
| - | </ | + | |
| - | + | ||
| - | Default database configuration (/ | + | |
| - | + | ||
| - | < | + | |
| - | server.port=80 | + | |
| - | server.tomcat.accesslog.enabled=true | + | |
| - | server.tomcat.accesslog.directory=/ | + | |
| - | spring.datasource.tomcat.max-active=70 | + | |
| - | spring.datasource.tomcat.max-wait=1000 | + | |
| - | spring.datasource.url=jdbc: | + | |
| - | spring.datasource.username=tvip-tms | + | |
| - | spring.datasource.password= | + | |
| - | </ | + | |
| - | + | ||
| - | Enable service: | + | |
| - | < | + | |
| - | # | + | |
| - | systemctl enable tvip-tms | + | |
| - | + | ||
| - | #start service | + | |
| - | service tvip-tms start | + | |
| - | </ | + | |
| - | + | ||
| - | Enable elasticsearch | + | |
| - | < | + | |
| - | # | + | |
| - | systemctl enable elasticsearch | + | |
| - | + | ||
| - | #start service | + | |
| - | service elasticsearch start | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Check installation ===== | + | |
| - | + | ||
| - | Admin panel located at < | + | |
| - | + | ||
| - | Default user admin has password admin | + | |
| - | + | ||
| - | Fresh installation contains examples of channels, accounts, etc... | + | |
| - | + | ||
| - | + | ||
| - | Ubuntu 16.04, CentOS 7: application logs available by: | + | |
| - | < | + | |
| - | journalctl -f -u tvip-tms | + | |
| - | </ | + | |
| - | + | ||
| - | Ubuntu 14.04: application logs available by: | + | |
| - | < | + | |
| - | tail -f / | + | |
| - | </ | + | |
| - | + | ||
| - | On all OS access log available in / | + | |
| - | + | ||
| - | + | ||
| - | ===== Additional configuration ===== | + | |
| - | **VoD meta import** | + | |
| - | For TMDB automated media import you will request API key [[https:// | + | |
| - | + | ||
| - | - Follow to Settings (http:// | + | |
| - | - Create new property: tmdb_api_key, | + | |
| - | + | ||
| - | ====== Migration from TVIP Middleware version 2 ====== | + | |
| - | + | ||
| - | For migration to TMS you need fetch dump tvip-middleware database and restore database on new server ([[en: | + | |
| - | + | ||
| - | Be careful: database from TMS is not compatible with TVIP Middleware 2, but TVIP Middleware 2 database is allow to use with TVIP TMS | + | |
| - | + | ||
| - | ===== How to backup tvip-middleware (not TMS) database ===== | + | |
| - | + | ||
| - | * Get database name at / | + | |
| - | * Switch to postgres user from root user and change current directory to rw allowed path | + | |
| - | < | + | |
| - | root@mw:~# su postgres | + | |
| - | postgres@mw: | + | |
| - | </ | + | |
| - | + | ||
| - | Make dump: | + | |
| - | < | + | |
| - | postgres@mw: | + | |
| - | </ | + | |
| - | + | ||
| - | Transfer generated file to another host ( for backup or migration cases ) | + | |
| - | For secure copy (over ssh) use command: | + | |
| - | < | + | |
| - | postgres@mw: | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | ===== How to restore tvip-middleware database to FRESH TVIP TMS===== | + | |
| - | If you use tvip-middleware previously: | + | |
| - | < | + | |
| - | postgres@tms: | + | |
| - | </ | + | |
| - | + | ||
| - | WARNING: tvip-middleware backup might be restore before FIRST run of tvip-tms | + | |
en/tvip_tms_install_guide.1555051324.txt.gz · Last modified: by Egor Danilenko
