일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- yum
- centos 7.5
- Shell
- GNOME
- 빅데이터
- Elk
- RHEL
- audit
- Audit Log
- 파이썬
- K8S
- C
- CentOS
- Python
- Chrome
- zabbix
- Elasticsearch
- rsyslog
- 크롬
- GPU
- 서울시민카드
- Linux
- 디렉토리
- bash
- log
- Kubernetes
- JSON
- PostgreSQL
- syslog
- Today
- Total
목록전체 글 (181)
Sysops Notepad
/var/log/messages 에 아래와 같이 로그를 남길때 apache core 덤프를 남겨 분석을 하시면 됩니다. [notice] child pid 14444 exit signal Segmentation fault (11) # vi httpd.conf CoreDumpDirectory /tmp # 추가 # apache restart 만약 core 덤프 안 생기면 #ulimit -c unlimited 입력 # gdb /usr/bin/httpd /tmp/core
저는 Centos 7.6 환경에서 wget 빌드 진행했습니다. # wget http://ftp.gnu.org/gnu/wget/wget-1.16.1.tar.gz # tar -xvzf wget-1.16.1.tar.gz # cd wget-1.16.1 # export PKG_CONFIG_PATH=/usr/local/openssl/1.0.2/lib/pkgconfig/ # ./configure --with-ssl=openssl --prefix=/home/wget --with-libssl-prefix=/usr/local/openssl_package/1.0.2/lib # make
바꾸기로 이동 (CTRL + H) "검색 모드"를 "일반 표현식"으로 설정 or 정규표현식 "찾을 내용"필드에 "$"를 입력하십시오. "바꾸기"에서 줄 오른쪽에 원하는 텍스트를 입력하십시오. "모두 바꾸기"를 클릭하십시오
저는 Centos 7.6 에서 설치 진행했습니다. # vi /etc/yum.repos.d/wandisco-git.repo [wandisco-git] name=Wandisco GIT Repository baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco # rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco # yum install git
# 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..