随笔分类 - 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.更
阅读全文
摘要:三者是在不同的linux系统版本中的防火墙,但这种说法并不完全,会让人误解为他们是互不影响的独立关系。 UFW、firewall、iptables防火墙配置 常见的linux系统防火墙有:UFW、firewall、iptables,其中,UFW是Debian系列的默认防火墙,firewall 是红帽
阅读全文
摘要:解决方法:需要输入参数-m useradd -m testuser
阅读全文
摘要:原因:用户的启动方式是sh造成的,应更改为bash启动。 将/bin/sh 改为bin/bash 具体步骤 cat /etc/passwd 将/bin/sh 改为bin/bash vi /etc/passwd 切换用户,搞定完成
阅读全文