mattermost
https://mattermost.com/ 슬랙 대안 메신저
Installation
MySQL
- MySQL Server 설치
# sudo apt install mysql-server
- MySQL 보안 설정
# sudo mysql_secure_installation
- MySQL 접속
# sudo mysql
- MatterMost User 생성
mysql> create user 'mmuser'@'%' identified by '*********';
- MatterMost database 생성
mysql> create database mattermost;
- MatterMost user의 database 권한 설정
mysql> grant all privileges on mattermost.* to 'mmuser'@'%';
- MySQL 접속 종료
mysql> exit
MatterMost
- File Download
https://docs.mattermost.com/install/installing-ubuntu-2004-LTS.html?src=dl#installing-mattermost-server https://mattermost.com/deploy/
# wget https://releases.mattermost.com/6.5.0/mattermost-6.5.0-linux-amd64.tar.gz
- 압축 해제 및 디렉토리 설정
# sudo tar -xvzf mattermost*.gz # sudo mv mattermost /opt # sudo mkdir /opt/mattermost/data # sudo useradd --sytem --user-group mattermost # sudo chown -R mattermost:mattermost /opt/mattermost # sudo chmod -R g+w /opt/mattermost
- Config 설정
/opt/mattermost/config/config.json "SqlSettings" : { "DriverName": "mysql", "DataSource": "mmuser:Theta5912!@tcp(localhost:3306)/mattermost?charset=utf8mb4,utf8\u0026readTimeout=30x\u0026writeTimeout=30s",
- 설정 테스트
cd /opt/mattermost sudo -u mattermost ./bin/mattermost >> "Server is listening on [::]:8065", "address":"[::]:8065"
- 서비스 설정
# sudo touch /lib/systemd/system/mattermost.service
- 서비스 등록 및 테스트