일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- CentOS
- yum
- bash
- 서울시민카드
- Python
- 디렉토리
- audit
- Chrome
- zabbix
- Elasticsearch
- rsyslog
- Audit Log
- 빅데이터
- Kubernetes
- 크롬
- syslog
- Linux
- log
- PostgreSQL
- K8S
- C
- RHEL
- Elk
- JSON
- GPU
- 파이썬
- docker
- centos 7.5
- GNOME
- Shell
- Today
- Total
목록업무 (169)
Sysops Notepad
설치 환경 : - Centos 7 - Centos 8 # yum groupinstall 'development tools' -y # yum install wget openssl-devel bzip2-devel libffi-devel xz-devel -y # wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz # tar xvf Python-3.9.6.tgz # cd Python-3.9.6 && ./configure --enable-optimizations # make altinstall # alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.9 1 # alternatives..
설치환경 : - Centos 7 - Centos 8 * python 3 이 설치되어있어야 합니다. python 3 설치 방법 : https://sysops.tistory.com/192 1. 설치방법 # pip3 install streamlit # firewall-cmd --permanent --add-port 8501/tcp # firewall-cmd --reload # tmux new -s StreamlitSession # streamlit run main.py 2. http://server_ipaddress:8501 접속
설치환경 : - Centos 6 - Centos 7 - Centos 8 설치방법 [root@sysops]# vi /etc/yum.repos.d/mongodb-org-4.4.repo name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc [root@sysops]# yum install -y mongodb-org [root@sysops]# systemctl start mongod.service [root@sysops]# systemctl en..
설치 환경 - CentOS 8 - CentOS 7 - CentOS 6 1. SELinux 설정 확인 [root@sysops]# sestatus [root@sysops]# sestatus | grep 'SELinux status\|Current mode' SELinux status: enabled Current mode: enforcing 2. 일시적으로 비활성화시키기 [root@sysops]# setenforce 0 [root@sysops]# sestatus | grep 'SELinux status\|Current mode' SELinux status: enabled Current mode: permissive 3. 영구적으로 비활성화시키기 [root@sysops]# vim /etc/selinux/con..
설치환경 : - Centos 7 설치방법 [root@sysops]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm [root@sysops]# yum install -y postgresql13-server [root@sysops]# /usr/pgsql-13/bin/postgresql-13-setup initdb [root@sysops]# systemctl enable postgresql-13 사용방법 [root@sysops]# sudo -iu postgres psql # CREATE DATABASE test; # \c test # CREATE T..
[root@sysops]# hostname sysops1 [root@sysops]# hostnamectl set-hostname sysops2 [root@sysops]# hostname sysops2
iostat명령어는 CPU 사용률과 디스크 장치 및 파티션에 대한 IO 통계 정보를 출력합니다. [root@s~]# iostat Linux 3.10.0-1160.11.1.el7.x86_64 11/09/2021 _x86_64_ (6 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 8.24 1.20 19.63 0.02 0.00 70.91 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 7.58 127.67 134.32 2374313503 2497805296 sdb 3.10 10.98 193.42 204229564 3596904712 iotop명령어는 모든 프로세스의 IO 통계를 출력합니다. [root@ ~]# io..
ifconfig 는 리눅스에서 네트워크 인터페이스 관련 정보를 조회 및 수정 할 수 있는 명령어입니다 최근에는 ip 명령어를 많이 사용합니다. eth0: flags=4163 mtu 1500 inet xxx.xxx.xxx.xxx netmask 255.255.255.128 broadcast xxx.xxx.xxx.xxx inet6 fe80::bacb:29ff:febd:1851 prefixlen 64 scopeid 0x20 ether b8:cb:29:bd:18:51 txqueuelen 1000 (Ethernet) RX packets 9545586 bytes 9971510902 (9.2 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1365721 bytes ..
nginx -> djang 로 통신시 아래 에러가 발생하고 끊어진다. "upstream prematurely closed connection while reading response header from upstream" nginx의 proxy timeout 값을 늘려줬다 proxy_read_timeout 300; proxy_connect_timeout 300; proxy_send_timeout 300;
#!/bin/bash file=./file if [ -e "$file" ]; then echo "File exists" else echo "File does not exist" fi #!/bin/bash file=./file if [ ! -e "$file" ]; then echo "File does not exist" else echo "File exists" fi -b filename - Block special file -c filename - Special character file -d directoryname - Check for directory Existence -e filename - Check for file existence, regardless of type (node, directo..