일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- docker
- 빅데이터
- bash
- Kubernetes
- Shell
- C
- 디렉토리
- Chrome
- PostgreSQL
- log
- audit
- 서울시민카드
- Audit Log
- RHEL
- JSON
- Elasticsearch
- yum
- zabbix
- K8S
- rsyslog
- centos 7.5
- 파이썬
- Python
- GNOME
- syslog
- 크롬
- Linux
- GPU
- CentOS
- Elk
- Today
- Total
목록전체 글 (181)
Sysops Notepad
빅데이터 분석등을 위하여 가짜 데이터 or 랜덤 데이터의 수요가 많이 지고 있는데 딱 좋은 사이트를 찾았습니다!https://mockaroo.com/위 사이트에서 원하는 필드명 , 타입 , 블랭크 퍼센트등을 정의하여 excel , csv , json , sql , xml 등 원하는 형태의 파일을 저장하시면 됩니다~
Centos or Redhat 에서 특정 패키지만 제외하고 업데이트 하기 # Yum update --exclude=패키지명
가끔 리눅스에서 패키지를 잘 못 설치해서 설치된 패키지를 삭제해야될 경우가 있는데요아래와 같이 하면 해결됩니다. 1. 원하는 패키지만 삭제하기# yum remove package_name 2. dependencies가 있는 전체 패키지 삭제하기# yum install yum-plugin-remove-with-leaves# yum remove package_name --remove-leaves 끝 !
작업환경 Centos 7.5 REST API 서버 구축하기https://junebuug.github.io/django-rest-framework01/https://junebuug.github.io/django-rest-framework02/ python & Django 참고 자료https://tutorial.djangogirls.org/ko/django_start_project/https://docs.djangoproject.com/en/1.11/ref/models/fields/#field-typeshttps://docs.djangoproject.com/ko/2.0/intro/tutorial01/http://www.django-rest-framework.org/tutorial/3-class-based-v..
1. python 3.x 설치yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum install -y python36u python36u-libs python36u-devel python36u-pip python3.6 -V 2. python 3.x virtualenv 설정 python3.6 -m venv venv . venv/bin/activate pip install [package_name]
처음 postgresql 구성간 아래와 같은 에러 메세지가 나올 경우....psycopg2.OperationalError: FATAL: Ident authentication failed for user "test".... psql: FATAL: Peer authentication failed for user "test" [root] # vi /var/lib/pgsql/10/data/pg_hba.conf 위 경로 들어가 상황에 맞게 METHOD 부분의 ident를 MD5 or trust로 변경해 준다. # IPv4 local connections:host all all 127.0.0.1/32 md5 [root] # systemctl restart postgresql-10 접속 성공~
1. 레포 추가rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm 2. 설치yum install -y postgresql10-server postgresql10 3. DB 초기화/usr/pgsql-10/bin/postgresql-10-setup initdb Initializing database ... OK 4. systemctl start postgresql-10 5. systemctl enable postgresql-10 6. su - postgres 7. psql 8. DB 생성 및 계정 생성postgres=# CREATE DATABASE mydb; CREATE DATABASE postgre..
Audit 접속 실패 이력 확인 aureport -l --failed Audit 접속 성공 이력 확인 aureport --au -i --success
linux(Centos 7) 기준 docker proxy 설정하기 1. vi /etc/sysconfig/docker http_proxy=http://yourproxy.com https_proxy=http://yourproxy.com HTTP_PROXY=http://yourproxy.com HTTPS_PROXY=http://yourproxy.com 2. systemctl daemon-reload 3. systemctl restart docker
로그가 엄청나가 많이 쌓인다구요 ? 걱정 마세요 우리에겐 logrotate가 있으니까요! logrotate란 messages 나 wtmp등 system log 뿐만 아니라 각종 오픈소스들 log , user log까지도 모두 관리가 됩니다! 저는 아래 예제를 참고해서 logrotate를 통해서 log들을 압축을 해보세요! -------------------------------------------------------------------------------------* 테스트 환경 : centos 7.5 1. yum install logrotate - 보통 기본 설치되어 있습니다! 2. vi /etc/logrotate.conf # see "man logrotate" for details # rota..