ubuntu16.0.4 노트북 서버
3523 단어 Linux 관련
ubuntu 시스템을 설치한 후에 원본을 아리운으로 바꿉니다. (전에 청화원으로 바꿉니다. apt-get update가 너무 느린 것을 발견했습니다.)
Ubuntu 18.04 참조
그중의 소스를list
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
sudo apt-get 업데이트 apt
sudo apt-get install openssh-server
openssh-server 설치
zhangsf@zhangsf:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-server is already the newest version (1:7.2p2-4ubuntu2.8).
0 upgraded, 0 newly installed, 0 to remove and 215 not upgraded.
설치가 완료되면 현재 호스트의 ip Ubuntu18.04에서 기본 IP 보기
zhangsf@zhangsf:~$ ifconfig
enp2s0 Link encap:Ethernet HWaddr 20:1a:06:2b:f8:d1
inet addr:172.21.60.225 Bcast:172.21.60.255 Mask:255.255.255.0
inet6 addr: 2001:da8:216:213c:8939:e2d2:a496:b9ac/64 Scope:Global
inet6 addr: fe80::4af:576:e5b3:6e8b/64 Scope:Link
inet6 addr: 2001:da8:216:213c:5815:3ff6:8f5d:37db/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:284724 errors:0 dropped:2 overruns:0 frame:0
TX packets:194812 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:308212579 (308.2 MB) TX bytes:20698374 (20.6 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12642 errors:0 dropped:0 overruns:0 frame:0
TX packets:12642 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1511142 (1.5 MB) TX bytes:1511142 (1.5 MB)
wlp3s0 Link encap:Ethernet HWaddr a4:db:30:38:66:14
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
IP 주소 172.21.60.225를 찾으면
같은 랜에서 Mac 노트북을 사용하여 ssh 172.21.60.225로 연결
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
How to configure postfix to send email via GmailSo even if you can configure a postfix server in a couple of minutes, you cannot send email successfully to other email ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.