ssh 로 접속후 crond 재시작 후 crond 에서 실행하는 스크립트에 변수가 한글이 들어가면 에러가 나는 경우가 발생했다.알고보니, 접속하는 로컬의 locale 설정이 원격지에 ssh 접속 시 적용이 되었고,로컬의 LANG=en_US 환경이 적용된 상태에서 crond가 재시작 되어 crond에서 실행하는 스크립트에 영향을 미친 것이었다. =ㅁㅠ ssh 접속할때 locale(LANG, LC_*) 전달은로컬 /etc/ssh/ssh_config 파일에 SendEnv LANG LC_* 설정이 존재하면 ssh 접속시 locale 설정이 같이 전송되고,원격 /etc/ssh/sshd_config 파일에 AcceptEnv LANG LC_* 설정이 존재하면 ssh 클라이언트에 전송된 locale 설정을 적용하도록 ..
현재 Ansible 컨트럴 서버는 python2는 2.6이상, python3는 3.5 이상이 설치 되어있어야한다.설치 방법은 어러가지가 있으나, pip 로 설치하면 의존성 패키지까지 바로설치 되기 때문에 제일 간편하게 설치할 수 있다. python 설치easy_install pippip install ansible 기본값 설정 파일 /etc/ansible/ansible.cfg 생성기본 설정 파일 : https://raw.githubusercontent.com/ansible/ansible/devel/examples/ansible.cfg설정 디스크립션 : http://docs.ansible.com/ansible/latest/intro_configuration.html inventory 설정 파일 /etc/a..
접근 제어 디렉토리에 .htaccess 파일을 생성 12345678910Order allow,denyAllow from 111.111.111.111Allow from 222.222.222.222 Order allow,denyAllow from allcs 위와 같이 설정하면, 해당 디렉토리 모든 파일 접근은 111.111.111.111, 222.222.222.222 IP에서만 접근 가능하고,service.php 파일에 대해서만 모든 IP에서 접근 가능하게 된다.
- Total
- Today
- Yesterday
- Module
- error
- RESTful
- Ansible
- 번역
- example
- code
- apache
- engineering
- 예제
- client
- configuration
- Python
- Web
- File
- PowerShell
- command
- Linux
- 외부링크
- MariaDB
- 이슈처리
- monitoring
- check
- limits
- Windows
- deview
- mysql
- httpd
- 명령어
- 코드
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |