Unix/Linux/MacOS

[Ubuntu] 인터페이스명 변경하기

# dmesg | grep eth [    1.733275] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:2d:67:1a [    1.733307] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection [    2.153651] e1000 0000:02:06.0 eth1: (PCI:66MHz:32-bit) 00:0c:29:2d:67:24 [    2.153926] e1000 0000:02:06.0 eth1: Intel(R) PRO/1000 Network Connection [    2.156536] e1000 0000:02:06.0 ens38: renamed from eth1 [    2.159660] e1000 0000:02:01.0 […]

[Ubuntu] 인터페이스명 변경하기 더 읽기"

리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 이야기

출처 : http://meetup.toast.com/posts/53 목차 들어가기 전에 준비 TCP 대역폭(bandwidth) 관련 파라미터3.1 BDP3.2 TCP window scaling3.3 TCP socket buffer size3.4 congestion window size 네트워크 capacity 관련 파라미터4.1 maximum file count4.2 backlogs4.3 port range TIME_WAIT socket5.1 TIME_WAIT 상태의 소켓이 무엇일까요?5.2 TIME_WAIT socket buckets5.3 TIME_WAIT socket reuse (TW_REUSE)5.4 TCP timestamp5.5 TIME_WAIT socket recycling (TW_RECYCLE)5.6 Socket linger option 결론 맺으며

리눅스 서버의 TCP 네트워크 성능을 결정짓는 커널 파라미터 이야기 더 읽기"

ip command (CentOS 7) 사용 방법

1. 인터페이스 상태 확인ip addr showip route showip link show 2. IP주소 및 디폴트 게이트웨이 추가ip addr add 10.10.10.35/24 dev ens33ip route add default via 10.10.10.254 # vi /etc/resolv.confnameserver 8.8.8.8 3. Network 재시작systemctl restart networkingsystemctl restart network.service 4. 인터페이스 up/downip link set ens33 upip link set ens33 down 5. Static Route 추가/삭제ip route add 10.10.20.0/24

ip command (CentOS 7) 사용 방법 더 읽기"

rsync service

■ rsync 서버 설정 1. /etc/xinetd.d/rsync service rsync{  disable = no  socket_type     = stream  wait            = no  user            = root  server          = /usr/bin/rsync  server_args     = –daemon  log_on_failure  += USERID} 2. /etc/rsyncd.conf [10.10.10.100_hyper-v]path=/sdc1comment = Public Folderexclude = lost+found/

rsync service 더 읽기"

CentOS 7 GNOME 라이선스 메세지 처리

CentOS 7 에서 부팅 시 아래와 같은 GNOME 라이선스 동의요구 메세지가 나오면서 진행이 되지 않을때 처리하는 방법. =============================================================================== Initial setup of CentOS Linux 7 (Core) 1) [!] License information              2) [ ] User creation        (License not accepted)              (No user will

CentOS 7 GNOME 라이선스 메세지 처리 더 읽기"

Armbian WIFI 셋팅

출처 : https://forum.armbian.com/topic/1237-opi-one-wireless-success/ There seems to be a lot of confusion and missing information on how to access the dirt cheap OPI ONE wirelessly and the steps necessary to successfully use cheap Realtek USB dongles ( 8188cus, 8188eu ) with Armbian_5.10.   This is a short summary of the needed materials and steps to turn your OPI ONE into

Armbian WIFI 셋팅 더 읽기"

bonding (CentOS 7)

■ bonding 모듈 로드 modprobe –first-time bonding ■ /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 NAME=bond0 TYPE=Bond BONDING_MASTER=yes BONDING_OPTS=”mode=active-backup primary=eno1 miimon=100 updelay=0 downdelay=0″ IPADDR=10.10.10.106 PREFIX=24 GATEWAY=10.10.10.254 DNS1=8.8.8.8 DNS2=8.8.4.4 ■ /etc/sysconfig/network-scripts/ifcfg-eno1 NAME=bond-slave-eno1 DEVICE=eno1 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes ■ /etc/sysconfig/network-scripts/ifcfg-eno2 NAME=bond-slave-eno2 DEVICE=eno2 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes MASTER=bond0 SLAVE=yes ■ 적용 systemctl restart network ■ bonding 상태 체크 cat /proc/net/bonding/bond0

bonding (CentOS 7) 더 읽기"

bonding (CentOS 6)

■ bonding 모듈 로드 modprobe –first-time bonding ■ /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 IPADDR=10.10.10.105 NETMASK=255.255.255.0 GATEWAY=10.10.10.254 DNS1=8.8.8.8 DNS2=8.8.4.4 ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no ■ /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no ■ /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no ■ /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=vertica3 GATEWAYDEV=bond0 ■ /etc/modprobe.d/bonding.conf alias bond0 bonding options bond0 mode=1 miimon=100 >> mode= 0.

bonding (CentOS 6) 더 읽기"

systemd unit 등록 관련 옵션 정리

출처 : http://fmd1225.tistory.com/93 – RHEL 7 의 OS 적인 가장 큰 변화는 3.x 커널을 사용한다는 점(물론 2.6.x 커널에서 큰 차이가 있는 것은 아니다.) 그리고 정통적인 init 데몬에서 systemd 데몬으로 변경이 되었다는 점이다. systemd 에 대해서 좀더 살펴 보자 * Linux 부팅 과정 (사전에 알고 갑시다.) http://www.ibm.com/developerworks/library/l-linuxboot/index.html – systemd 는 리눅스 커널 API 로 설계된 시스템 관리

systemd unit 등록 관련 옵션 정리 더 읽기"

wifi wpa_supplicant 셋팅

■ wpa_supplicant.conf 파일 만들기 wpa_passphrase <공유기 SSID> <passphrase> $ wpa_passphrase MYSSID passphrase > /etc/wpa_supplicant/wpa_supplicant.conf network={     ssid=”MYSSID”     #psk=”passphrase”     psk=59e0d07fa4c7741797a4e394f38a5c321e3bed51d54ad5fcbd3f84bc7415d73d } ■ wpa_supplicant 데몬 시작 killall -q wpa_supplicant wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf ■ 상태 보기 wpa_cli status

wifi wpa_supplicant 셋팅 더 읽기"

apt-get 사용 방법

apt(Advanced Packaging Tool)-get.패키지 인덱스 인덱스 정보를 업데이트 : apt-get은 인덱스를 가지고 있는데 이 인덱스는 /etc/apt/sources.list에 있습니다. 이곳에 저장된 저장소에서 사용할 패키지의 정보를 얻습니다.sudo apt-get update ■이미 설치되어 있는 패키지 목록 보기dpkg -l ■설치된 패키지 업그레이드 : 설치되어 있는 패키지를 모두 새버전으로 업그레이드 합니다.sudo apt-get upgrade ■의존성검사하며 설치하기sudo apt-get dist-upgrade ■패키지 설치sudo apt-get -y install 패키지이름

apt-get 사용 방법 더 읽기"

systemd에서 부팅시 실행할 서비스 관리하기

출처 : https://www.conory.com/note_linux/42241 원래 부팅시 정해진 서비스 또는 스크립트를 실행시키는 건 init (System V Init)라는 프로그램의 몫이였습니다. 유닉스가 처음 생길때부터 그래왔고, 지금도 그렇습니다.(하지만 지금은 다른 아이로 교체되는 시기입니다.) init는 그 이름처럼 리눅스의 초기화부분을 담당합니다. init 사용자들이 /etc/rc.d/init.d 디렉토리에 부팅시 실행할 서비스 스크립트를 넣으면, init는 부팅이나 특정행동이 있을때 그 스크립트들을 자동으로 실행시키는 역활을 했었습니다. 그러면 사용자들은 chkconfig명령으로 자동실행

systemd에서 부팅시 실행할 서비스 관리하기 더 읽기"

systemd

systemd documentation systemd has very comprehensive documentation. Refer to http://0pointer.de/blog/projects/systemd-docs.html Boot Kernel Command Line On boot systemd activates (by default), the target unit default.target whose job is to activate services and other units by pulling them in via dependencies. To override the unit to activate, systemd parses its own kernel command line arguments via the systemd.unit= command line option. This may be used

systemd 더 읽기"

위로 스크롤