'OS'에 해당되는 글 28건

  1. 2019.04.24 Win10 God Mode
  2. 2019.01.10 centos7 + apache +tomcat 연동
  3. 2017.06.23 CentOS7 + Mysql
  4. 2017.06.22 CentOS7 Vnc 설정관련
  5. 2017.06.22 CentOS7 Locale설정
  6. 2017.03.15 shell 추가
  7. 2017.03.03 Busybox TFTP 사용법
  8. 2017.03.03 우분투 TFTP 설치
  9. 2017.02.14 Openwrt_build 방법
  10. 2015.12.07 chmod 8진수
OS/Window2019. 4. 24. 09:14

God Mode.{ED7BA470-8E54-465E-825C-99712043E01C} 폴더 바탕화면 생성 

LOW=低  작게
HiGH=高  크게
Non=無し 음소거

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

Window8 안전모드 부팅 설정  (0) 2015.10.28
Posted by idwook
OS/CentOS72019. 1. 10. 18:40

모듈 다운로드

curl -O http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz

 

[root@nhisct src]# tar -xvf tomcat-connectors-1.2.42-src.tar.gz

[root@nhisct src]# cd tomcat-connectors-1.2.42-src/

[root@nhisct tomcat-connectors-1.2.42-src]# cd native/

[root@nhisct native]# ls

BUILDING.txt  README.txt  aclocal.m4  buildconf.sh  configure.ac  netscape

Makefile.am   STATUS.txt  apache-1.3  common        docs          scripts

Makefile.in   TODO.txt    apache-2.0  configure     iis

[root@nhisct native]#

[root@nhisct native]# ./buildconf.sh

buildconf: checking installation...

buildconf: autoconf not found.

           You need autoconf version 2.59 or newer installed

           to build mod_jk from SVN.

[root@nhisct native]# ./configure --with-apxs=/usr/bin/apxs

/usr/bin/apxs 없는경우 ( /usr/sbin/apxs 이거나 httpd-devel 설치 안된경우일수 있음)

httpd

httpd-tools

httpd-devel

[root@nhisct native]# make

[root@nhisct native]# make install

[root@nhisct native]# cd /etc/httpd/conf.modules.d/

[root@nhisct conf.modules.d]# vi 00-jk.conf

LoadModule jk_module modules/mod_jk.so

[root@nhisct httpd]# cd /etc/httpd/conf.d/

[root@nhisct conf.d]# vi httpd-jk.conf

<IfModule jk_module>

    # We need a workers file exactly once

    # and in the global server

    JkWorkersFile conf.d/workers.properties

    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

    # Our JK error log

    # You can (and should) use rotatelogs here

    JkLogFile logs/mod_jk.log

    # Our JK log level (trace,debug,info,warn,error)

    JkLogLevel info

    # Our JK shared memory file

    JkShmFile logs/mod_jk.shm

    # If you want to put all mounts into an external file

    # that gets reloaded automatically after changes

    # (with a default latency of 1 minute),

    # you can define the name of the file here.

    JkMountFile conf.d/uriworkermap.properties

</IfModule>

[root@nhisct conf.d]# vi workers.properties

worker.list=tomcat1,tomcat2

worker.tomcat1.port=8080

worker.tomcat1.host=localhost

worker.tomcat1.type=ajp13

#worker.tomcat1.lbfactor=1

#worker.tomcat2.port=8081

#worker.tomcat2.host=localhost

#worker.tomcat3.type=ajp13

#workes.tomcat3.lbfactor=1

[root@nhisct conf.d]# vi uriworkermap.properties

/*=tomcat1

#/*.jsp=tomcat2

#/*.png=tomcat3

#/*.css=tomcat4



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

CentOS7 + Mysql  (0) 2017.06.23
CentOS7 Vnc 설정관련  (0) 2017.06.22
CentOS7 Locale설정  (0) 2017.06.22
Posted by idwook
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
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
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
OS/Linux2015. 12. 7. 12:58

0 : ---

1 : --x

2 : -w-

3 : -wx

4 : r--

5 : r-x

6 : rw-

7 : rwx

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

우분투 TFTP 설치  (0) 2017.03.03
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