'분류 전체보기'에 해당되는 글 61건

  1. 2017.06.23 CentOS7 + Mysql
  2. 2017.06.22 CentOS7 Vnc 설정관련
  3. 2017.06.22 CentOS7 Locale설정
  4. 2017.06.20 System.getProperty("user.dir") 무조건 C:\WINDOWS\System32 인경우
  5. 2017.03.15 shell 추가
  6. 2017.03.03 Busybox TFTP 사용법
  7. 2017.03.03 우분투 TFTP 설치
  8. 2017.03.01 C언어 소켓통신
  9. 2017.02.14 Openwrt_build 방법
  10. 2016.12.16 WindowBuilder
OS/CentOS72017. 6. 23. 10:10
# yum -y install mysql-community-server
# systemctl start mysqld
# systemctl enable mysqld
# mysql
mysql>quit


# vi /etc/my.cnf
[client]
default-character-set = utf8
[mysql]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
character-set-server=utf8
collation-server=utf8_general_ci
init_connect=SET collation_connection = utf8_general_ci
init_connect=SET NAMES utf8
character-set-client-handshake = FALSE
skip-character-set-client-handshake
[mysqldump]
default-character-set=utf8


root 설정 및 보안설정

# /usr/bin/mysql_secure_installation


포트 허용

# firewall-cmd --permanent --zone=public --add-port=3306/tcp
# firewall-cmd --reload

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

centos7 + apache +tomcat 연동  (0) 2019.01.10
CentOS7 Vnc 설정관련  (0) 2017.06.22
CentOS7 Locale설정  (0) 2017.06.22
Posted by idwook
OS/CentOS72017. 6. 22. 17:53



cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service


vnc 작동에 문제가 있는경우

/tmp/.X11-unix/X?   관련 데이터를 삭제후 재시작 으로 해결되는경우 있음

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

centos7 + apache +tomcat 연동  (0) 2019.01.10
CentOS7 + Mysql  (0) 2017.06.23
CentOS7 Locale설정  (0) 2017.06.22
Posted by idwook
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
OS/OpenWRT2017. 3. 3. 16:37
TFTP 사용법
Usage: tftp [OPTION]... HOST [PORT]
Transfer a file from/to tftp server
Options:
        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file
        -b SIZE Transfer blocks of SIZE octets
PUT : #  tftp -l {local file name} -p {server ip}
ex) tftp -l test.txt -p 192.168.1.10
GET : #  tftp -r {remote fiel name} -g {server ip} 
ex tftp -r text.txt -g 192.168.1.10

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

shell 추가  (0) 2017.03.15
Openwrt_build 방법  (0) 2017.02.14
Posted by idwook
OS/Linux2017. 3. 3. 13:28


sudo aptitude install tftpd-hpa 
mkdir /tftpboot

 
설정파일 수정

sudo vi /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

 
설정 내용 적용

sudo service tftpd-hpa restart

 
테스트는 아래와 같이 하면 됩니다. 

tftp 192.168.0.2
tftp> get test_file

 

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

chmod 8진수  (0) 2015.12.07
cat 출력시 시간표현 변환  (0) 2015.12.01
MTU 설정으로 인터넷 속도 향상  (0) 2015.08.05
Qmailtoaster 설치 centos6.5  (0) 2015.07.28
Centos 언어 설정  (0) 2014.11.27
Posted by idwook
C언어2017. 3. 1. 01:23

https://www.joinc.co.kr/w/Site/Network_Programing/Documents/Sockettimeout

http://sunyzero.tistory.com/198

Posted by idwook
OS/OpenWRT2017. 2. 14. 11:01

OS : Ubuntu_16.04.01_desktop_amd64

※ (주의사항) 사용자 권한으로 실행하세요

※ OS별 필수 패키지 목록 주소   https://wiki.openwrt.org/doc/howto/buildroot.exigence


1.필수 패키지 설치
~$ sudo update
~$ sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev unzip mercurial libssl-dev    

※ make 시 패키지 설치가 안된부분이 있으면 상황에 맞추어 추가 설치 해야 make 할수 있습니다.

  

2.Openwrt 빌드 패키지 다운로드 

※  git주소  https://git.openwrt.org/ 
~$ cd /home/user/work   
※root의 폴더에 다운받으면 openwrt 실행에 제약이 있습니다.   
   
~$ sudo git clone https://github.com/openwrt/openwrt.git   
or 버전별 다운로드  
 git clone http://git.openwrt.org/15.05/openwrt.git  
 git clone https://git.openwrt.org/15.05/openwrt.git  
 git clone git://git.openwrt.org/15.05/openwrt.git

3.패키지 인스톨   
 ※ 인스톨 방법 주소  https://wiki.openwrt.org/doc/howto/buildroot.exigence
    
 ~$ cd /home/user/work/openwrt_15.05/   
 ~$ ./scripts/feeds update -a   
 ~$ ./scripts/feeds install -a   
    
 ~$ make menuconfig    
 ~$ make defconfig   
 ~$ make prereq   
 ~$ make V=s j=2   ※ V=s(로그확인용) , j=2(자신의 CPU코어 개수)

 

4. 완료

 ~$ cd /home/user/work/openwrt15.05/bin/ar71xx/*.bin  생성됩니다.


 ※ ar71xx폴더 대신 자신이 make menuconfig에서 선택한 보드에 따라 달라집니다.


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

shell 추가  (0) 2017.03.15
Busybox TFTP 사용법  (0) 2017.03.03
Posted by idwook
Java/Swing2016. 12. 16. 10:46

http://download.eclipse.org/windowbuilder/WB/integration/4.5/

'Java > Swing' 카테고리의 다른 글

JFrame 기본  (0) 2014.12.08
JTextField 를 상속받은 IPTextField Component 구현  (0) 2014.12.03
Posted by idwook