Fork me on GitHub

随笔分类 -  Ubuntu

摘要:官网文档: https://help.ubuntu.com/lts/serverguide/network-configuration.html.zh-CN 一、使用安装Ubuntu时创建的用户登录 二、切换到root权限 sudo -i ##输入安装时候创建的用户的密码,直接输入root 是不能登 阅读全文
posted @ 2021-08-27 12:11 Alex-Lzy 阅读(1790) 评论(0) 推荐(0) 编辑
摘要:Ubuntu默认不能直接通过root用户远程登录 如xshell登录,密码正确,提示如下: 这是因为在sshd_config中定义了 1、修改配置: vi /etc/ssh/sshd_config 2、通过/输入PermitRootLogin 快速定位到要修改的行 3、将#PermitRootLog 阅读全文
posted @ 2021-05-12 13:43 Alex-Lzy 阅读(492) 评论(0) 推荐(0) 编辑
摘要:1、打开Ubuntu登录安装时候创建的用户,默认输入密码登录不进去 2、重置root密码,必须得输入安装时创建的用户的密码,用户密码正确后,输入两遍新密码 3、切换root用户,输入刚刚重置的密码 su root 阅读全文
posted @ 2021-05-12 12:41 Alex-Lzy 阅读(649) 评论(0) 推荐(0) 编辑
摘要:错误如下: mount: wrong fs type, bad option, bad superblock on 192.168.1.7:data/nfsdir2, missing codepage or helper program, or other error (for several fi 阅读全文
posted @ 2021-05-12 12:25 Alex-Lzy 阅读(4770) 评论(0) 推荐(0) 编辑
摘要:1、查看当前防火墙的状态 sudo ufw status #输入安装系统时创建的密码,乌班图不支持直接使用root账号登录 inactive状态是防火墙关闭状态 active是开启状态。 2、开启防火墙 sudo ufw enable 输入y会提示Firewall is active and ena 阅读全文
posted @ 2021-05-12 12:23 Alex-Lzy 阅读(1911) 评论(0) 推荐(0) 编辑
摘要:1 sudo apt-get update 更新源 2 sudo apt-get install package 安装包 3 sudo apt-get remove package 删除包 4 sudo apt-cache search package 搜索软件包 5 sudo apt-cache 阅读全文
posted @ 2021-05-12 12:21 Alex-Lzy 阅读(2026) 评论(0) 推荐(0) 编辑