VSCode 한글 인코딩 깨짐 현상
Test Environment
- Test OS : Windows 10
- Test SW : Visual Studio Code
VSCode 사용시 한글 깨짐 현상 해결 방안
에러
- 설정 위치 :
file > Preferences > Settings > Text Editor > File
해당 값 체크 Auto Guess Encoding
- VSCode 재기동
적용 후 모습
Test Environment
에러
적용 후 모습
product name : airpods pro
test product name : galaxy-note10+
에어팟 프로가 나오자 마자 구입 했지만 이상하게 이용하다 보면 음량이 최저로 변경대는 현상이 발생해서 테스트 하다 적용된 방법을 알려드립니다.
미디어 음량 동기화 설정이 되어야 다른 블루투스 같이 미디어 볼륨으로 조절이 가능
설정 부분 확인시 에어팟이 연결된 상태에서 확인
Test Environment
JBoss 설치시 위와 같은 버전 에러 발생시 현재 서버의 설정된 JDK 버전과 JBoss 에서 지원하는 버전이 맞지 않아 발생하는 현상.
지원이 가능한 Java 버전을 설치 후 진행
JBoss EAP 7.x에 대한 supported 지원은 아래의 링크를 확인
관련 링크 : https://access.redhat.com/articles/2026253#[2]
The number following `Unsupported major.minor version` indicates the Java version which was used to compile the class. See [The ClassFile Structure](https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.1), which describes the class file format of the Java Virtual Machine.
Major Version | Class File Format |
---|---|
Java SE 13 | 57 (0x39 hex) |
Java SE 12 | 56 (0x38 hex) |
Java SE 11 | 55 (0x37 hex) |
Java SE 10 | 54 (0x36 hex) |
Java SE 9 | 53 (0x35 hex) |
Java SE 8 | 52 (0x34 hex) |
Java SE 7 | 51 (0x33 hex) |
Test Environment
windows에서 CMD로 명령어를 수행하다 보면 Liunx에서 사용하던 명령어때문에 항상 헷갈려하는 명령어가
바로 dir = ls 명령어이다.
바로 이부분때문에 찾아본 명령어가 바로 doskey 명령어로 alias처럼 쓰는 방법에 대해 정리 하였다.
우선 사용할 명령어 정의
alias.cmd
@echo off
:: commands
doskey alias = doskey $*
doskey cat = type $*
doskey clear = cls
doskey grep = find $*
doskey history = doskey /history
doskey man = help $*
::
doskey kill = taskkill /PID $*
doskey ls = dir $*
doskey ll = dir $*
::
doskey cp = copy $*
doskey cpr = xcopy $*
doskey mv = move $*
doskey rm = del $*
doskey rmr = deltree $*
::
doskey ps = tasklist $*
doskey pwd = cd
::
doskey sudo = runas /user:administrator $*
레지스트에 등록하기
regedit
경로 : 컴퓨터\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
이름 : Autorun
데이터 : E:\software\google\2_Shellscript\alias.cmd
적용 화면
#n일 이상 된 xml 파일 찾기
find . -type f -name "*.xml" -mtime -7 -print
find /app/logs/web/httpd -name "*.log" | sort
#7일 초과한 파일 삭제하기
find /log/server1 -name "*.log" -mtime +7 -delete
find /log/server1 -name "*.log" -mtime +7 -exec rm {} \;
#30일 이상 된 로그 파일만 삭제
find /log/server1 -type f -name "*.log" -ctime +30 -exec rm -rf {} \;
find . -size +3000000k -exec ls -lh {} \+
ls --time-style="+%Y-%m-%d %H:%M:%S" -altr | grep ^- | more
netstat -nap | grep 80 | grep ESTABLISHED | wc -l
netstat -nap | grep 8080 | grep ESTABLISHED | wc -l
netstat -anp|grep {port_number}
netstat -anp|grep {port_number} | sort -nk 7
netstat -anp|grep {port_number} | sort -nk 7 | wc -l
ps -ef|grep {process_ID}
TOTAL=`free | grep ^Mem | awk '{print $2}'`
USED1=`free | grep ^Mem | awk '{print $3}'`
USED2=`free | grep ^-/+ | awk '{print $3}'`
NOMINAL=$((100*USED1/TOTAL))
ACTUAL=$((100*USED2/TOTAL))
echo NOMINAL=${NOMINAL}% ACTUAL=${ACTUAL}%
#RedHat
TOTAL=`free | grep ^Mem | awk '{print $2}'`
USED1=`free | grep ^Mem | awk '{print $3}'`
USED2=`free | grep ^Mem | awk '{print $5}'`
NOMINAL=$((100*USED1/TOTAL))
ACTUAL=$((100*USED2/TOTAL))
echo NOMINAL=${NOMINAL}% ACTUAL=${ACTUAL}%
awk '/^Mem/ {printf("%u%%", 100*$3/$2);}' <(free -m)
awk '/^Mem/ {printf("%u%%", 100*$5/$1);}' <(free -m)
Test Environment
Site Link :
http://tomcat.apache.org/
tomcat 설치전에 원하는 자바 버전을 windows 환경변수에 설정.
Test Environment
Apply the following command to the httpd.conf file.
LoadModule ibm_ssl_module modules/mod_ibm_ssl.so
Listen 443
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot /app/EAR/SSL
SSLEnable
SSLProtocolDisable SSLv2
SSLProtocolDisable SSLv3
SSLCipherSpec ALL NONE
SSLCipherSpec ALL +TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 +TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
SSLCipherSpec ALL +TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 +TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
SSLCipherSpec ALL +TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA +TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA +TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
SSLCipherSpec ALL +TLS_RSA_WITH_AES_256_CBC_SHA +TLS_RSA_WITH_AES_128_CBC_SHA
</VirtualHost>
KeyFile /SW/web/HTTPServer/key/key.kdb
SSLDisable
Confirm application with the command below.
-t -D DUMP_SSL_CONFIG: show parsed SSL vhost configurations
-t -D DUMP_SSL_CIPHERS: show all known SSL ciphers
To determine which SSL ciphers are enabled on your server, you can set LogLevel debug in your httpd.conf
Test Environment
tip You can set it up on the web server of the Apache class.
Forward to the virtual host that is error-handling for non-domain specified.
The point is not to give a serverName value to a dummy virtual host.
Listen 80
Listen 4958
NameVirtualHost *:80
NameVirtualHost *:4958
<VirtualHost *:80>
DocumentRoot /app/was/htdocs
ErrorDocument 403 "해당 방식은 접근이 허용되지 않은 방식입니다."
ErrorDocument 404 "해당 방식은 접근이 허용되지 않은 방식입니다."
ErrorDocument 500 "해당 방식은 접근이 허용되지 않은 방식입니다."
</VirtualHost>
<VirtualHost *:4958>
DocumentRoot /app/was/htdocs
ErrorDocument 403 "해당 방식은 접근이 허용되지 않은 방식입니다."
ErrorDocument 404 "해당 방식은 접근이 허용되지 않은 방식입니다."
ErrorDocument 500 "해당 방식은 접근이 허용되지 않은 방식입니다."
</VirtualHost>
ProxyRequests Off
<VirtualHost *:80>
ServerName test.apache.com
ProxyPass / http://172.31.98.155/ Keepalive=on
ProxyPassReverse / http://172.31.98.155/
ProxyPreserveHost On
#LogLevel debug
ErrorLog /app/was/HTTPServer/logs/test_proxy_error.log
CustomLog /app/was/HTTPServer/logs/test_proxy_access.log combined
</VirtualHost>
<VirtualHost *:4958>
ServerName test.httpserver.com
ProxyPass / http://172.31.98.209/ Keepalive=on
ProxyPassReverse / http://172.31.98.209/
ProxyPreserveHost On
#LogLevel debug
ErrorLog /app/was/HTTPServer/logs/http_proxy_error.log
CustomLog /app/was/HTTPServer/logs/http_proxy_access.log combined
</VirtualHost>