CentOS 7에 Mattermost 설치

Articles 2020/03/12 11:25 용비
설치 가이드 : https://docs.mattermost.com/install/install-rhel-7.html

다만, 위의 가이드에 오류가 있으므로 다음과 같이 수정해야 한다.

1. PostgreSQL 9.4 설치 후, /var/lib/pgsql/9.4/data/pg_hba.conf 파일 수정
local   all             all                        trust
host   all             all          127.0.0.1/32              trust
2. Mattermost 설정 파일 /opt/mattermost/config/config.json 에서 Database Driver 수정
DriverName : postgres
DataSource : "postgres://mmuser:password@127.0.0.1:5432/mattermost?sslmode=disable&connect_timeout=10"
그리고, Mattermost를 실행하면 정상으로 실행됨.

(Tip) VirtualBox VM에 Mattermost를 설치했을 경우, 로컬 PC에서 VM에 있는 Mattermost를 호출하는 방법
- Condole로 VirutalBox VM에 접속하여 방화벽 오픈
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-port=8065/tcp
firewall-cmd --reload
- VirtualBox에서 포트포워딩 설정하면, 로컬 PC에서 localhost로 mattermost 호출 가능
사용자 삽입 이미지

받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.yongbi.net/rss/response/870

CentOS 7에 XWiki 설치하기

Articles 2020/03/10 17:11 용비
2020년 3월 10일 현재, XWIKI의 최신 버전은 9.4 입니다.
XWIKI installer는 http://download.forge.ow2.org/xwiki 에서 확인할 수 있습니다.

1. OS 업데이트
yum update
2. installer를 다운로드 받을 wget 및 jdk 설치
yum install wget java -y
3. 설치된 jdk 버전 확인
java -version
4. installer 다운로드
wget http://download.forge.ow2.org/xwiki/xwiki-enterprise-installer-generic-9.4-standard.jar
5. XWiki 설치
java -jar xwiki-enterprise-installer-generic-9.4-standard.jar # install location : /usr/local/XWiki Enterprise 9.4
6. XWiki 실행
cd /usr/local/"XWiki Enterprise 9.4"
sh start_xwiki.sh
7. Background 실행
nohup sh start_xwiki.sh &
8. Web 접속
http://{server ip}:8080
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.yongbi.net/rss/response/869

nginx를 CentOS 7에 설치하고 난 후, 한국에서만 접속을 허용하도록 하기 위해서는 다음과 같은 방법으로 할 수 있다.

1. GeoIP 설치
yum install -y geoip #install location : /usr/share/GeoIP/
2. nginx module dynamic 설치
yum install -y nginx-module-geoip #install location : /etc/nginx/modules/
3. nginx 설정 변경
vi /etc/nginx/nginx.conf
#nginx 설정 파일의 맨 위에 다음 2줄 추가
load_module modules/ngx_http_geoip_module.so;
load_module modules/ngx_stream_geoip_module.so;
http {
......
# 아래 설정 추가
# geoip national data file location
geoip_country /usr/share/GeoIP/GeoIP.dat;
# geoip national code mapping, default no, korea yes
map $geoip_country_code $allowed_country {
    default no;
    KR yes;
}
 #log_format에 국가코드 출력
log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    '$status $body_bytes_sent $proxy_host $upstream_addr "$http_referer" '
    '"$http_user_agent" "$http_x_forwarded_for" "$geoip_country_code"';
4. nginx 설정 syntax check
nginx -t
5. nginx 재기동
service nginx restart
service nginx status



받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.yongbi.net/rss/response/868

VirtualBox에 CentOS 7을 Minimal로 설치했을 경우,
curl www.naver.com과 같이 외부 URL을 호출하거나,
yum update를 실행했을 경우 다음과 같은 오류가 발생한다.
Could not resolve host ...
Network 카드 설정이 제대로 되어 있지 않을 때 발생하는 오류이다.
다음 command로 Ethernet 설정을 확인할 수 있다.
[root@localhost user]# ip addr

다음과 같이 설정을 변경할 수 있다.
[root@localhost user]# vi /etc/systemconfig/network-scripts/ifcfg-<ethernet card name>
ONBOOT=yes # 맨 아래 항목 no -> yes로 수정 후 저장
다음 command로 DHCP IP를 재할당받으면 된다.
[root@localhost user]# dhclient

TAG
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.yongbi.net/rss/response/867

마님께서는 매일 아침, 분당 사옥 스포츠센터로 운동을 다니십니다.
출근 도장 찍으신 지 몇 년 된 것 같아요.

이야기를 들어보니, 대부분 최신 아이돌이 추는 춤을 배우는 것 같습니다.

그런데 오늘은 좀 색다르게...
새롭게 비온데 춤을 시작했다고 매우 좋아하네요.
심지어 제 앞에서 새로 배운 춤을 보여 준다며 온 몸을 흔드십니다.

뭔가 이상하잖아요?
비온데 춤이 도대체 뭘까요?

그래서 제가 째려보며 물었습니다.

"비온데?"

아니, 춤 얘기하며 몸을 흔들면서 갑자기 날씨 얘기하니 제가 이상하게 생각하는 게 당연하잖아요?
그런데 마님. 저를 외계인 취급하십니다.

"먼 소리야? 비욘세 몰라, 비욘세? 엄청 유명한데?"

어.. 그래... 마님. 나도 알어. 비욘세. 얼굴은 모르지만.
그런데 당신 분명히 '비온데'라고 했다니까.

나이가 들어서 제가 잘못 알아들은 걸까요?
설마, 어째 귀가 잘 안들린다 싶더니...
내일은 마님께 귀지를 좀 파달라고 해야겠습니다...ㅠㅠ
그럼요. 당연히 귀지 때문일꺼에요.
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.yongbi.net/rss/response/866