'OS/CentOS7'에 해당되는 글 4건

  1. 2019.01.10 centos7 + apache +tomcat 연동
  2. 2017.06.23 CentOS7 + Mysql
  3. 2017.06.22 CentOS7 Vnc 설정관련
  4. 2017.06.22 CentOS7 Locale설정
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