linux 환경 구축을 위한 wsl-windows 서브시스템

5019 단어 서버

앞말


현재 윈도우즈 시스템은 가상 컴퓨터를 설치하여 linux 환경을 실행하는 것 외에 wsl을 만들어서 linux 환경을 실행할 수 있습니다.

apt 가속

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

vi 명령으로 바꿀 수도 있습니다.
:%s#http://archive.ubuntu.com/ubuntu/#http://mirrors.aliyun.com/ubuntu/#g
:%s#http://security.ubuntu.com/ubuntu/#http://mirrors.aliyun.com/ubuntu/#g
sudo apt update
sudo apt upgrade

ssh 서비스 설정

sudo apt install ssh
sudo apt install pdsh
sudo vim /etc/ssh/sshd_config

Port 22
PasswordAuthentication yes #  
sudo service ssh restart

좋은 웹페이지 즐겨찾기