OS/CentOS72017. 6. 22. 17:50

CentOS 7 에서 로케일 변경하는 방법입니다.


현재 사용가능한 한글관련 로케일


# localectl list-locales | grep -i ko

ko_KR

ko_KR.euckr

ko_KR.utf8

kok_IN

kok_IN.utf8

korean

korean.euc

ru_RU.koi8r

ru_UA.koi8u

tg_TJ.koi8t

uk_UA.koi8u

utf8 로 변경


 # localectl set-locale LANG=ko_KR.utf8

수동으로 변경시는 /etc/locale.conf 파일을 만들어 아래 내용 추가


LANG=ko_KR.utf8

서버 부팅 후 로케일 설정 확인


# locale

LANG=ko_KR.utf8

LC_CTYPE="ko_KR.utf8"

LC_NUMERIC="ko_KR.utf8"

LC_TIME="ko_KR.utf8"

LC_COLLATE="ko_KR.utf8"

LC_MONETARY="ko_KR.utf8"

LC_MESSAGES="ko_KR.utf8"

LC_PAPER="ko_KR.utf8"

LC_NAME="ko_KR.utf8"

LC_ADDRESS="ko_KR.utf8"

LC_TELEPHONE="ko_KR.utf8"

LC_MEASUREMENT="ko_KR.utf8"

LC_IDENTIFICATION="ko_KR.utf8"

LC_ALL= 


# cat /etc/locale.conf

LANG=ko_KR.utf8

'OS > CentOS7' 카테고리의 다른 글

centos7 + apache +tomcat 연동  (0) 2019.01.10
CentOS7 + Mysql  (0) 2017.06.23
CentOS7 Vnc 설정관련  (0) 2017.06.22
Posted by idwook
Java2017. 6. 20. 09:44

//임시로 Window에서 사용


public void setUserDir(){

String dir = System.getProperty("user.dir");

if(dir.indexOf("System32")>0){

File file = new File(System.getProperty("sun.java.command"));

dir = file.getParent();

System.setProperty("user.dir",dir);

}


}

'Java' 카테고리의 다른 글

Java Text to Image Converter Util  (0) 2018.03.07
Thread Waiting 기능  (0) 2016.07.01
Posted by idwook
OS/OpenWRT2017. 3. 15. 14:00
#!/bin/sh /etc/rc.common
# "new(er)" style init script
# Look at /lib/functions/service.sh on a running system for explanations of what other SERVICE_
# options you can use, and when you might want them.

START=80
APP=mrelay
SERVICE_WRITE_PID=1
SERVICE_DAEMONIZE=1

start() {
        service_start /usr/bin/$APP
}

stop() {
        service_stop /usr/bin/$APP
}
#!/bin/sh /etc/rc.common
###########################################
# NOTE - this is an old style init script #
###########################################

START=80
APP=mrelay
PID_FILE=/var/run/$APP.pid

start() {
        start-stop-daemon -S -x $APP -p $PID_FILE -m -b
}

stop() {
        start-stop-daemon -K -n $APP -p $PID_FILE -s TERM
        rm -rf $PID_FILE
}

패키지 추가

https://wiki.openwrt.org/doc/devel/packages

'OS > OpenWRT' 카테고리의 다른 글

Busybox TFTP 사용법  (0) 2017.03.03
Openwrt_build 방법  (0) 2017.02.14
Posted by idwook