If the following error occurs when you start Postgresql, /var/log/messages May 24 10:25:10 your_server_name postmaster[76948]: 2021-05-24 10:25:10.895 JST [76948] FATAL: data directory "/data" has group or world access May 24 10:25:10 your_server_name postmaster[76948]: 2021-05-24 10:25:10.895 JST [76948] DETAIL: Permissions should be u=rwx (0700). Change a permission of the directory # sudo chm..
'root' 유저 소유권인 파일 검색 후 user: www, group: www 로 일괄 변경 sudo find ${PATH} -user root | sudo xargs -i chown www:www "{}" 'www' 유저 소유권이 아닌 파일 검색 후 user: www, group: www 로 일괄 변경 -not 옵션 사용sudo find ${PATH} -not -user www | sudo xargs -i chown www:www "{}"
암호화 (Encryption) $ sudo openssl aes-256-cbc -salt -in password.txt -out password.security enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: 복호화 (Decryption) $ sudo openssl aes-256-cbc -d -in password.security -out password.txt enter aes-256-cbc decryption password: 참고: http://blog.naver.com/PostView.nhn?blogId=sory1008&logNo=220779712692&categoryNo=0&paren..
https://www.nginx.com/resources/wiki/start/topics/tutorials/commandline/ Show signals $ nginx -s signal Start Have to get a root permission $ sudo nginx Reload $ sudo nginx -s reload Stop $ sudo nginx -s stop Test the configurations $ sudo nginx -t
개요 Server에서 Server 로 데이터를 옮길 경우 매우 귀찮고 힘들다. 로컬이나 게이트웨이 서버에 내렸다가 올리는 그런 귀찮은 방법들.. Python 의 SimpleHTTPServer 를 이용하면 매우 쉽게 옮길 수 있다. 방법 서버 IP 를 확인한다. $ ifconfig 아래와 같은 명령으로 웹서버를 띄운다. $ python -m SimpleHTTPServer 8000 브라우저에서 잘 보여지는지 확인해 본다. http://:8000 파일을 받을 서버에서 wget 을 이용하여 다운로드 한다. $ wget http://:8000/files/test.log
total - free - buffers - cached
Swap 메모리 초기화 스왑 모드를 껐다(OFF)가 다시 켜면(ON) 된다.$ swapoff -a && swapon -a # root 계정이 아닐 경우$ sudo swapoff -a && sudo swapon -a * 기존 swap을 많이 사용중이었다면 위 명령어를 실행 후 다소 시간이 소요된다.* swapoff 를 하면 swap 에 있던 것을 physical memory 에 옮겨지기 때문에 physical memory 사용량이 좀 더 증가할 수 있다.
- Total
- Today
- Yesterday
- DevOps
- 쓰레드덤프
- 엔서블
- Shell Script
- rsync
- Docker
- rundeck
- JVM
- Jenkins
- 젠킨스
- 플레이북
- groovy
- Playbook
- Config History
- openssl
- PostgreSQL
- nginx
- URL Encoding
- Nexus
- Linux
- 엔시블
- iTerm2
- 데브옵스
- ssl
- Thread Dump
- vagrant
- 파이프라인
- Password manager
- Ansible
- 리눅스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |