리눅스는 이전에 명령들을 기억합니다.
shell > history
를 치면 이전에 입력했던 명령어들이 나타납니다.
실행했던 명령어 리스트중 어떤 명령어를 실행시키고 싶으면 다음과 같이 합니다.
shell > !번호
를 입력하면 그 번호의 명령어를 실행합니다.
전체보기
- history 명령 재 실행 2016.09.06
- STS로 프로젝트 생성 후, resources 폴더에 새로운 폴더를 생성할 때, 패키지로 보이는 문제 해결 방법 2016.08.24
- SSL 웹서버 시작시 암호 입력 안하기 2016.08.01
- getClient IP 2016.07.28
- 강동/송파 ~ 인천공항 버스 6300번 2016.07.15
- 리눅스 파티션을 윈도우에서 불러오기 2016.07.11
- [Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: 2016.07.11
- -bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음 2016.07.05
history 명령 재 실행
STS로 프로젝트 생성 후, resources 폴더에 새로운 폴더를 생성할 때, 패키지로 보이는 문제 해결 방법
이클립스에서 STS를 설치하고, Spring 프로젝트를 생성하고나서
src/main/resources 폴더에 새로운 폴더를 추가하면, 당연히 폴더 아이콘으로 보여야하는데, 패키지로 보이는
경우가 있습니다.
아니! 나는 폴더를 생성했는데, 시방 무슨 패키지가 생성되었어?!?! 라고 생각하시면서, 내가 잘못했나?
다시 해볼까? 하시면서 몇번을 만들어도 똑같을 겁니다.
사실 이건 정상적인 상황으로 실제 프로젝트에는 문제가 없지만, 좀 찜찜하고 눈에 거슬리기도 합니다.
이럴때는 다음과 같이 설정하시면 됩니다.
1. 프로젝트 우클릭 -> Properties
2. Java Build Path -> Source 선택
3. 하단에 있는 /src/main/resources의 Excluded를 선택하고 Edit
4. Exclusion patterns의 Add를 선택하고 ** 를 입력
5. Finish
그럼 다음과 같이 폴더 형식으로 보입니다.
해결 완료!
'프로그래밍 > JAVA' 카테고리의 다른 글
| An error occured while filtering resources (0) | 2016.12.19 |
|---|---|
| Springframework에서 MySQL 커네션을 잃어버리는 문제 해결 (0) | 2016.12.15 |
| getClient IP (0) | 2016.07.28 |
| Implementing HTTP byte-range requests in Spring MVC 파일 이어받기 서버측 구현 (0) | 2015.10.15 |
| [jstl]숫자뒤에 .0 붙이기 int to double (0) | 2015.09.30 |
SSL 웹서버 시작시 암호 입력 안하기
SSL인증서를 적용한 이후 웹서버 시작시에 암호를 묻는 경우가 있다.
아래처럼 진행해서 nokey 처리를 하면 된다.
# openssl rsa -in 기존KEY -out 생성KEY
물론 기존 key 파일은 백업을 먼저 해두자.
'서버 등 운영체제(OS) > Linux' 카테고리의 다른 글
| [Ubuntu] socat 을 사용한 포트 포워딩 Port forwarding (0) | 2017.11.27 |
|---|---|
| history 명령 재 실행 (0) | 2016.09.06 |
| [Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: (0) | 2016.07.11 |
| -bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음 (0) | 2016.07.05 |
| CentOS 7 로케일 변경 (0) | 2016.06.28 |
getClient IP
public static String getClientIpAddr(HttpServletRequest request) {
String ip = request.getHeader("X-Forwarded-For");
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("WL-Proxy-Client-IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("HTTP_CLIENT_IP");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getHeader("HTTP_X_FORWARDED_FOR");
}
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
ip = request.getRemoteAddr();
}
return ip;
}
'프로그래밍 > JAVA' 카테고리의 다른 글
| Springframework에서 MySQL 커네션을 잃어버리는 문제 해결 (0) | 2016.12.15 |
|---|---|
| STS로 프로젝트 생성 후, resources 폴더에 새로운 폴더를 생성할 때, 패키지로 보이는 문제 해결 방법 (0) | 2016.08.24 |
| Implementing HTTP byte-range requests in Spring MVC 파일 이어받기 서버측 구현 (0) | 2015.10.15 |
| [jstl]숫자뒤에 .0 붙이기 int to double (0) | 2015.09.30 |
| [jstl] 숫자 천단위마다 콤마 찍어 구분 (0) | 2015.09.30 |
강동/송파 ~ 인천공항 버스 6300번
이번에 친구랑 일본을 가게되서 포스팅..
다음에 갈일 또 있을때 참고하기 위해서~
URL : http://www.seoulbus.co.kr/index/airportbus_01_1.php?val=10
2016.07.15 기준
'자유' 카테고리의 다른 글
| ERROR: Error starting "XAMPP" stack: cannot calculate MAC address: (0) | 2019.05.30 |
|---|---|
| Nox 녹스 리니지2 레볼루션 녹스 데스크탑 실행 (0) | 2016.12.19 |
| Websocket (0) | 2016.05.22 |
| [크롬/Chrome] local file 문서 간 데이터 교환 오류 문제 - (SecurityError: Blocked a frame with origin) (0) | 2016.04.19 |
| 프렌즈팝 불태우는 중 없애기 (2) | 2015.09.23 |
리눅스 파티션을 윈도우에서 불러오기
'프로그램 및 소스' 카테고리의 다른 글
| 디자이너가 추천하는 무료 폰트 8개.jpg (0) | 2020.02.11 |
|---|---|
| Putty SSH Ctrl+S Lock (0) | 2017.02.02 |
| 각 은행별 영문명, 영문주소, SWIFT (B.I.C) 코드 (0) | 2016.06.23 |
| Adobe 프로그램 재설치시 경로문제 (0) | 2015.07.14 |
| Eclipse Remote System Explorer Content Assist (0) | 2015.06.16 |
[Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available:
The link above provides detailed explanation with screenshots. It also has some other simple methods that could be tried before doing this manually. Since it is not accessible from some regions let me describe the method that worked for me.
- Go to the OpenPGP Public Key Server. There you can enter your key into the
Search Stringfield, leaving everything else as is, then click "Search!".
When searching for a key, always prepend0xto it! This means that, for example, you have to search for0x6AF0E1940624A220instead of6AF0E1940624A220. - Click on the link provided in the
pubsection. This should take you to page containing the key. The page's heading should be similar toPublic Key Server -- Get "0x6AF0E1940624A220" - Copy everything from underneath the title (starting from
-----BEGIN PGP PUBLIC KEY BLOCK-----) and save it in a file (e.g.key1). -
Once you have the file, run the following command
sudo apt-key add key1
You will get an "OK" response.
And you are done. Repeat the procedure of other keys that might be missing.
에러메시지에 보면 마지막 PUBLIC KEY 하고 뒤에 키값이 나온다....
OpenPGP Public Key Server 링크 클릭 후 그 키 값 앞에 0x 를 붙여서 검색..
그리고 나온 링크를 클릭하면 key 값이 나오는데 그걸 복사해서 저장한다.
그리고 sudo apt-key add 키파일명 을 해주고 apt-get update 를 다시 실행.
'서버 등 운영체제(OS) > Linux' 카테고리의 다른 글
| history 명령 재 실행 (0) | 2016.09.06 |
|---|---|
| SSL 웹서버 시작시 암호 입력 안하기 (0) | 2016.08.01 |
| -bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음 (0) | 2016.07.05 |
| CentOS 7 로케일 변경 (0) | 2016.06.28 |
| CentOS7 MRTG Install (0) | 2016.06.27 |
-bash: ./test.sh: /bin/bash^M: bad interpreter: 그런 파일이나 디렉토리가 없음
vim 에서
vim에서는 dos mode의 화일을 읽어도 화면에 ^M을 표시하지 않습니다.
대신 밑에 [dos] 라고 나타납니다.
다음과 같이 해서 unix mode로.. 즉 ^M을 빼는것입니다.
:set fileformat=unix
반대로 unix mode에서 dos mode로 바꾸고 싶다면
:set fileformat=dos
'서버 등 운영체제(OS) > Linux' 카테고리의 다른 글
| SSL 웹서버 시작시 암호 입력 안하기 (0) | 2016.08.01 |
|---|---|
| [Ubuntu] W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: (0) | 2016.07.11 |
| CentOS 7 로케일 변경 (0) | 2016.06.28 |
| CentOS7 MRTG Install (0) | 2016.06.27 |
| Short Tip: Get UUID of Hard Disks [Update] (0) | 2016.06.24 |

ext2explore-2.2.71.zip