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