成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Xshell連接Ubuntu連接失敗如何解決

這篇文章給大家介紹Xshell連接Ubuntu連接失敗如何解決,內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對(duì)大家能有所幫助。

創(chuàng)新互聯(lián)建站致力于網(wǎng)站建設(shè),網(wǎng)站制作設(shè)計(jì),營(yíng)銷網(wǎng)頁(yè)按需設(shè)計(jì),成都外貿(mào)網(wǎng)站建設(shè)公司,企業(yè)網(wǎng)站建設(shè),成都小程序開(kāi)發(fā),網(wǎng)站SEO優(yōu)化,網(wǎng)站設(shè)計(jì)制作案例豐富,是成都做網(wǎng)站公司和建站公司,歡迎咨詢。

描述

剛?cè)胧諹buntu,發(fā)現(xiàn)各種不適。使用Xshell連接Ubuntu(裝在虛擬機(jī)下18.04.3)怎么也連接不上。

排查問(wèn)題

查看防火墻設(shè)置

指令

sudo ufw status

發(fā)現(xiàn)我的是關(guān)了防火墻的。

Ubuntu主機(jī)沒(méi)有開(kāi)啟SSH服務(wù)

開(kāi)啟指令

sudo apt-get install openssh-server

安裝該SSH服務(wù)后,可以連接Ubuntu系統(tǒng)。

更換Ubuntu的apt源為國(guó)內(nèi)源

進(jìn)入編輯目錄

命令

sudo vim /etc/apt/sources.list
中科大

命令

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
阿里云源

指令

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
生效命令
sudo apt-get update
sudo apt-get upgrade

docker常用命令

操作tomcat

拉取鏡像

docker pull tomcat

啟動(dòng)tomcat

docker run --name tomcat1 -d -p 8080:8080 tomcat

查看是否啟動(dòng)成功

docker ps -a

操作Nginx

拉取鏡像

docker pull nginx

啟動(dòng)Nginx

docker run --name nginx -d -p 80:80 nginx

操作MySQL

拉取鏡像

docker pull mysql

啟動(dòng)mysql

docker run --name mysql01 -e MYSQL_ROOT_PASSWORD=123456 -d -p 3306:3306 mysql

關(guān)于Xshell連接Ubuntu連接失敗如何解決就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。

分享文章:Xshell連接Ubuntu連接失敗如何解決
本文鏈接:http://jinyejixie.com/article14/iejsge.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護(hù)、搜索引擎優(yōu)化、品牌網(wǎng)站制作、建站公司、關(guān)鍵詞優(yōu)化、品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化
拜泉县| 雅安市| 杂多县| 阿拉善盟| 霸州市| 泉州市| 泉州市| 集贤县| 长乐市| 秦皇岛市| 新乐市| 周至县| 景谷| 乐亭县| 秦皇岛市| 华阴市| 集安市| 石渠县| 寿宁县| 青铜峡市| 临泉县| 孝义市| 临颍县| 临潭县| 镇江市| 襄城县| 嘉禾县| 马龙县| 靖州| 贵德县| 西乡县| 安龙县| 华宁县| 临武县| 哈尔滨市| 荆州市| 阿鲁科尔沁旗| 琼结县| 顺昌县| 泗阳县| 沾益县|