1. 각 프로세스들의 swap 사용량 확인 root@freecatz-web:~# find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \; 2. 각 프로세스들을 swap 사용량 순서대로 정렬하여 출력 root@freecatz-web:~# find /proc -maxdepth 2 -..
OS : Debian 10 64Bit MySQL : 8.0.23 Community Server 64Bit mysql 서버의 데이터가 커지면서 새로운 디스크를 추가 하여 /opt/home/ 에 마운트를 하였고, mysql 의 데이터 디렉토리를 이동 시키기로 하였다. root@freecatz-pe-kr:/# service mysql stop root@freecatz-pe-kr:/# cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf.ori root@freecatz-pe-kr:/# vi /etc/mysql/mysql.conf.d/mysqld.cnf #datadir=/var/lib/mysql datadir=/opt/home/mysql..
freecatz@FREECATZ-PE-KR:~$ sudo su - [sudo] freecatz의 암호: freecatz은(는) sudoers 설정 파일에 없습니다. 이 시도를 보고합니다. freecatz@FREECATZ-PE-KR:~$ su - 암호: root@FREECATZ-PE-KR:~# vi /etc/sudoers * 가급적 vovisudo 명령을 이용하여 /etc/sudoers 를 편집 하는 것이 매우 안전 하다고 한다. 문법이 틀리거나 잘못 되는 경우 sudo 를 사용 할 수 없는 경우가 발생 한다고 한다. # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content i..
회사에서 사용하고 있는 KT 의 클라우드 가상 서버에 TMOUT 값이 300초로 설정 되어 있어 중간에 ssh 연결이 끊겨 불편 하다. mfds@MFDS:~$ echo $TMOUT 300 mfds@MFDS:~$ 그래서 변경을 시도 해 보았으나... mfds@MFDS:~$ export TMOUT=0 -bash: TMOUT: readonly variable TMOUT 변수 값을 readonly 로 설정해 두어서 변경 할 수가 없었다. 링크를 보면 여러가지 방법으로 TMOUT 값을 설정 할 수 있으나, 본인의 경우는 관리자 권한을 가지고 있기 때문에 가장 쉬운 방법으로 TMOUT 값을 변경 할 것이다. 우선 관리자 권한을 획득 한다. mfds@MFDS:~$ su - Password: 적당한 텍스트 에디터로 /..
참고 : http://bahndal.egloos.com 1. 패키지 설치 root@FREECATZ-PE-KR:~# apt-cache search smartmontools smart-notifier - graphical hard disk health status notifier smartmontools - S.M.A.R.T를 사용하는 저장장치를 위한 관리/감시 도구 root@FREECATZ-PE-KR:~# apt-get install smartmontools 2. 디스크 정보 조회 root@FREECATZ-PE-KR:~# smartctl -i /dev/sda smartctl 6.6 2016-05-31 r4324 [x86_64-linux-5.3.0-28-generic] (local build) Copyrig..
root@FREECATZ-PE-KR:~# vi /etc/samba/smb.conf [global] max protocol = SMB3 min protocol = SMB2_10 client max protocol = SMB3 client min protocol = SMB2_10 * samba 옵션에 대한 상세한 값은 링크 를 참고 한다. root@FREECATZ-PE-KR:~# /etc/init.d/samba status [ ok ] nmbd is running. [ ok ] smbd is running. root@FREECATZ-PE-KR:~# /etc/init.d/samba restart [ ok ] Stopping Samba daemons: nmbd smbd. [ ok ] Starting Samba ..
참고 : https://wiki.debianusers.or.kr/index.php?title=Update-rc.d /etc/init.d/ 아래 작성되는 스크립트는 리눅스 부팅시 서비스가 자동으로 시작 되도록 하기 위해 작성하는 스크립트. root@freecatz-web:~# cd /etc/init.d/ root@freecatz-web:~# vi testService ### BEGIN INIT INFO # Provides: # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fs $remote_fs # Default-Start: 3 4 5 # Default-Stop: 0 1 6 # Short-Description:..
일반 사용자 권한으로 spring 프로젝트를 구동 시켰는데, /tmp 에 권한이 없어 실행을 하지 못했다. root@freecatz-pe-kr:~# chmod 0777 /tmp 관리자 권한으로 위와 같이 해주면 해결 된다. 다른 방법으로는 freecatz@freecatz-pe-kr:~$ java -server -Dserver.port=8889 -Djava.io.tmpdir=/home/freecatz/tmp -jar freecatz.pe.kr-SNAPSHOT.jar 위와 같은 방법으로도 가능 하다. 패키지 관리자를 이용하여 mysql 설치 도중에도 /tmp 에 권한이 없어 진행 하지 못하는 경우도 /tmp 의 퍼미션을 조정 하여, 설치를 진행 했다. 요즘 이러한 문제를 자주 접하게 되는데, 리눅스에 손 놓..
- Total
- Today
- Yesterday
- gpkiapi
- Security
- devtools
- Spring
- samba
- springboot
- 엘리스센터
- TIP
- Android
- Fun
- 맛집
- MySQL
- dart
- JavaScript
- devel
- ssh
- Mobile
- development
- food
- SSL
- web
- kotlin
- Java
- Flutter
- Compile
- Review
- HTTP
- Linux
- place
- json parse
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |