iptables ? 리눅스의 iptables 는 특정 IP에 대한 OS의 액션을 정의해 놓는 것으로 커널단계의 프로그램이다.iptables 명령어 자체는 유저레벨 명령어지만, 동작은 커널단계에서 동작하며 패킷 필터링 역할을 한다.( 참고 : http://www.iptables.org/projects/iptables/index.html ) 일반적으로 패킷은 Header 와 Data 로 나뉘는데, iptables 는 이 패킷의 Header 부분의 IP 를 미리 검사하여 필터링 한다. Dependencies iptables 는 리눅스 2.4.x 이후 커널의 ip_tables packet filter 를 기반으로 한다. Main 기능 - packet filter 의 규칙 나열 - packet filter Add..
특정 유저에 ROOT 명령어 권한을 부여하고 싶을때가 있다. 1. sudoers 파일 권한 변경 [root@mil1 ~]# chmod u+w /etc/sudoers 2. visudo 로 파일 수정 [root@mil1 ~]# visudo .......root ALL=(ALL) ALL[Username] ALL=(ALL) ALL 굵게 표시된 라인을 추가한다. (Username 에 해당 계정명을 넣는다.) 3. sudoers 파일 권한 다시 복구 [root@mil1 ~]# chmod u-w /etc/sudoers
1. 유저 생성'louis' 계정 추가[root@mil1 ~]# useradd louis 2. 유저 확인 [root@mil1 ~]# cat /etc/passwd | grep louislouis:x:502:503::/home/louis:/bin/bash 3. 유저 삭제 [root@mil1 ~]# userdel louis 4. 유저 비밀번호 변경 ' louis ' 계정의 비밀번호를 '1234'로 변경[root@mil1 ~]# echo '1234' | passwd --stdin louisChanging password for user louis.passwd: all authentication tokens updated successfully. 1. 그룹 생성 [root@mil1 ~]# groupadd shel..
1. free -m 명령어로 현재 메모리 상태를 본다. [root@localhost ~]# free -m total used free shared buffers cachedMem: 994 917 76 50 2 44-/+ buffers/cache: 870 124Swap: 0 0 0 > 스왑메모리가 없다. 2. 스왑메모리로 이용할 파일 생성 (* 일반적으로 메모리 용량의 2배로 설정해 준다.) 메모리가 1G 니까 count 에 2G 가량의 용량을 적어주자.[root@localhost ~]# dd if=/dev/zero of=/home/swapfile bs=1024 count=20000002000000+0 records in2000000+0 records out2048000000 bytes (2.0 GB) c..
망할 CentOS 7 기본설치가 EUC-KR로 되어있었다. 아래 명령어를 통해 현재 언어셋을 확인해보자 [root@localhost ~]# echo $LANG 보통 utf-8 을 이용하기 때문에 (EUC-KR 은 이제 갖다 버리자)LANG 을 찍어서 euckr이 나온다면 utf 8로 바꿔주자 낮은 버전에서는 /etc/sysconfig/il8n 파일을 건드려 주면 되었었는데, CentOS 7 은 아닌듯 아래 명령어로 바꾸어 준다. [root@localhost ~]# export LANG=UTF-8
1. nohup 이란? no-hang-up signaling..즉 신호가 끊기지 않는다 는 뜻. 2. background process 와는 무엇이 다른가? 자 먼저 일반적인 프로세스 실행과 Background Process 실행을 비교해보자 1) 일반 실행 [root@localhost myWebRtc]# node server.js Socket IO server has been started - 내 ssh 프로세스가 node server.js 프로세스에 묶여버려 다른작업을 아무것도 하지 못한다. 2) Background 실행 [root@localhost myWebRtc]# node server.js & [1] 31498 - Background Process로 실행되어 내가 실행하려고 했던 node.js ..
ssh 포트를 통해 들어온 로그를 확인 해 보는 법 1. 접속 로그 [root@korx3 ~]# last root pts/8 61.75.69.130 Thu Dec 29 14:18 still logged inroot pts/8 223.33.164.6 Thu Dec 29 13:45 - 13:50 (00:05)root pts/7 61.75.69.130 Thu Dec 29 13:19 still logged inroot pts/4 61.75.69.130 Thu Dec 29 12:55 still logged inroot pts/1 61.75.69.130 Thu Dec 29 12:47 still logged inroot pts/1 61.75.69.130 Thu Dec 29 10:13 - 12:29 (02:16)roo..
메모리 및 CPU 사용량 보기..ㅎㅎ # top top - 16:04:09 up 125 days, 3:43, 1 user, load average: 0.16, 0.22, 0.17Tasks: 223 total, 1 running, 222 sleeping, 0 stopped, 0 zombieCpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stMem: 4018596k total, 3958716k used, 59880k free, 142396k buffersSwap: 6062072k total, 2354472k used, 3707600k free, 1030016k cached PID USER PR NI VIRT RES SHR S %CPU..
http://kwonnam.pe.kr/wiki/linux/yum 1. 여러가지 확인"Loading mirror speeds from cached hostfile"에서 멈춘 상태Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile위와 같은 상태로 yum 명령이 멈췄다면 linux - yum hangs and won't respond 참조.nslookup google.com 으로 DNS에 문제 없는지 확인하고, 안되면 DNS 맞추기 작업.DNS를 확인했는데 원래 잘 됐다면, rm -f /var/cache/yum/timedhosts.txt하고 재실행하고 확인.그래도 안되면 yum --noplugins 명령으로 fastestmirror..
리눅스 유저 List가 궁금하다면..! [root@korx5 bin]# cat /etc/passwd root:x:0:0:root:/root:/bin/bashbin:x:1:1:bin:/bin:/sbin/nologindaemon:x:2:2:daemon:/sbin:/sbin/nologinadm:x:3:4:adm:/var/adm:/sbin/nologin........ (중략)haldaemon:x:68:68:HAL daemon:/:/sbin/nologinxfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologinrpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologinnfsnobody:x:65534:65534:Anonymous NFS..
- Total
- Today
- Yesterday
- Asterisk
- 배열
- 리눅스
- CentOS
- C
- 손석희
- Kotlin
- IOS
- 서버
- Node
- C언어
- 앵커브리핑
- linux
- xcode
- nodejs
- 깃헙
- git hub
- Phaser
- 노드
- BBC 가쉽
- mysql
- 스위프트
- 안드로이드
- php
- Android
- 뉴스룸
- Swift
- node.js
- 점유율
- GIT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |