일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 빅데이터
- 파이썬
- yum
- Chrome
- JSON
- RHEL
- Elk
- K8S
- Audit Log
- Python
- 크롬
- C
- rsyslog
- syslog
- audit
- bash
- 서울시민카드
- GPU
- Shell
- centos 7.5
- 디렉토리
- Linux
- CentOS
- docker
- PostgreSQL
- zabbix
- GNOME
- Elasticsearch
- log
- Kubernetes
- Today
- Total
목록업무 (169)
Sysops Notepad
# yum install libjpeg-turbo-utils # jpegtran -copy none -optimize crop.jpg image.jpg
Centos or redhat에서 yum을 통해 많은 패키지를 설치하다가 가장 문제가 되는 의존성(dependency)을 하는 명령어 입니다. # yum deplist
보통 습관처럼 서버 들어가서 export TMOUT=0 을 치고 작업을 시작하지만 그러면 양심에 찔리니까 미사용할때는 터미널을 종료하는 습관을 만듭시다 ㅎㅎ echo "TMOUT=300 readonly TMOUT export TMOUT" >> /root/.bashrc
Centos에서 자주 사용하는 사용자 추가 / 삭제 / 변경 방법입니다. 간단하고 자구 사용하는 명령어인데 가끔 생각이 안나곤 하죠 ㅎㅎ 1. 홈디렉토리는 /home/test , 로그인은 사용하지 않고, test 라는 계정을 생성 # useradd -d /home/test -s /sbin/nologin -r gateway-worker-app 2. 홈디렉토리는 남기고 test 계정삭제 # userdel -test 3. 홈디렉토리를 포함해서 test 계정을 삭제 # userdel -r test 4. test 사용자의 홈디렉토리 변경 # usermod -d /tmp test 5. 계정 추가 / 삭제 / 수정 여부 확인 # cat /etc/passwd | grep test
2021년 3월 기준 검색어 점유율 상위 11위로 빠르게 성장중인 Go 언어 설치 하는 방법입니다. 저는 Centos 7.6 버전에서 설치하여 진행했습니다. # wget https://dl.google.com/go/go1.14.15.linux-amd64.tar.gz # tar -C /home/ -xzf go1.14.15.linux-amd64.tar.gz # vi /root/.bash_profile export GOBIN=/home/go/bin export GOROOT=/home/go export PATH=$PATH:/home/go/bin # go version go version go1.14.15 linux/amd64
# yum install -y epel-release # yum repolist # yum install nginx # systemctl enable nginx # systemctl status nginx # systemctl start nginx # yum install certbot python2-certbot-nginx # certbot --nginx # vim /etc/nginx/nginx.conf location / { proxy_pass "http://127.0.0.1:8081"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forw..
# hostnamectl set-hostname nexus # yum update -y # yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel # java -version # cd /opt # wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz # tar -xvzf latest-unix.tar.gz # mv nexus-3.20.1-01 nexus # mv sonatype-work nexusdata # useradd --system --no-create-home nexus # chown -R nexus:nexus /opt/nexuschown -R nexus:nexus /opt/nexusdata ..
보통은 cp 혹은 rsync를 통해 많이 사용하지만 아래 방법으로도 파일 복사가 가능합니다. (cd 원본경로; tar cvf - .) | (cd 대상경로; tar xfvp -)
전체 서비스 목록 # systemctl list-unit-files disabled 서비스 목록 # systemctl list-unit-files | grep disabled active 서비스 목록 # systemctl list-units --state active failed 서비스 목록 # systemctl list-units --state failed
1. python에 접속하여 pycurl 을 import 하여 에러메시지 확인 # python3 >>> import pycurl Traceback (most recent call last): File "", line 1, in ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other) 2. 위 에러 발생시 제거 후 재설치 해준다. # pip3 uninstall pycurl # export PYCURL_SSL_LIBRARY=nss # pip3 install --compile --install-option="--with-nss" --no-cache-dir pycurl..