본문 바로가기

전체 글

(72)
ubuntu18 네트워크 인터페이스 카드 추가. # 인터페이스 목록 확인. ls /sys/class/net # 인페이스 MAC 확인. ifconfig -a vi /etc/netplan/50-cloud-init.yaml network: ethernets: enp0s31f6: addresses: [192.168.0.214/24] gateway4: 192.168.0.1 nameservers: addresses: [168.126.63.1,8.8.8.8] # search: [lesstif.com] # dhcp4: yes dhcp4: no # optional: true version: 2 sudo netplan apply network: ethernets: ens160: addresses: - 1.1.1.1/16 #gateway4: 1.1.1.1 nameserv..
vim tab 설정 vi ~/.vimrc set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab
git error: Your local changes to the following files would be overwritten by merge: rel/normal.py How to fix ‘Your local changes to the following files will be overwritten by merge’? 방법1 :local저장소의 내용이 변경되는 것이 관심이 없을때... git reset -- hard git pull 방법2: What are repositories? What are push and pull in Git? A repository is a kind of storage for code which is constantly modified and obtained by team members through the GitHub version control mechanism. A ‘Pull’ means that you are pulling the la..
Ubuntu IP 설정 고정IP 및 DHCP 설정 vi /etc/network/interfaces static IP 설정 (고정IP) # The primary network interface # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.153.131 netmask 255.255.255.0 ga..
Ubuntu 14.04 싱글모드 접속 root 비밀번호 재설정. 부팅 시 e를 눌러 GRUB 선택 모드 진입 ro 뒤에 init=/bin/bash 입력 후 F10 mount -o remount, rw / passwd root
Python 관련 문의 stackoverflow 에 문의 결과... 의문점이 생겨서 혹시나 stackoverflow에 문의 했더니 5분도 안되여서 소스에 답변까지 친절하게 답변해 주네요... 신기신기... https://stackoverflow.com/a/58591272/12268721
CentOS 7 hostname 변경 vi /etc/hostname #호스트네임 설정. hostnamectl #재 호스트 네임 확인 hostnamectl set-hostname my.new-hostname.server #새로운 호스트 네임 설정. hostnamectl #상태 확인 reboot 출처 https://phoenixnap.com/kb/how-to-set-or-change-a-hostname-in-centos-7
Ubuntu 18.04.3 LTS MySQL 설치 MySQL ubuntu@ip-172-31-43-33:~/Dev$ sudo apt update Hit:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Reading package lists... Done Building dependency tr..