随笔分类 -  linux小问题

摘要:1.编辑 /etc/apt/sources.list sudo vim /etc/apt/sources.list 2.根据版本来选择替换 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 3.刷新软件源信息: sudo apt update 4.更 阅读全文
posted @ 2022-05-16 11:10 xudong5273 阅读(46) 评论(0) 推荐(0) 编辑
摘要:三者是在不同的linux系统版本中的防火墙,但这种说法并不完全,会让人误解为他们是互不影响的独立关系。 UFW、firewall、iptables防火墙配置 常见的linux系统防火墙有:UFW、firewall、iptables,其中,UFW是Debian系列的默认防火墙,firewall 是红帽 阅读全文
posted @ 2021-12-06 20:56 xudong5273 阅读(405) 评论(0) 推荐(0) 编辑
摘要:解决方法:需要输入参数-m useradd -m testuser 阅读全文
posted @ 2021-11-02 16:52 xudong5273 阅读(573) 评论(0) 推荐(0) 编辑
摘要:原因:用户的启动方式是sh造成的,应更改为bash启动。 将/bin/sh 改为bin/bash 具体步骤 cat /etc/passwd 将/bin/sh 改为bin/bash vi /etc/passwd 切换用户,搞定完成 阅读全文
posted @ 2021-11-02 16:47 xudong5273 阅读(361) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示