随笔分类 -  Linux

摘要:查看防火墙状态 systemctl status firewalld.service 开启防火墙 systemctl start firewalld.service 防火墙开机启动 systemctl enable firewalld.service关闭防火墙开机启动systemctl disabl 阅读全文
posted @ 2023-08-29 17:29 梧桐潇雨 阅读(34) 评论(0) 推荐(0) 编辑
摘要:ssh-keygen -R $serverIP 阅读全文
posted @ 2023-08-18 13:27 梧桐潇雨 阅读(6) 评论(0) 推荐(0) 编辑
摘要:ssh-keygen -R hostname 阅读全文
posted @ 2023-04-23 18:13 梧桐潇雨 阅读(12) 评论(0) 推荐(0) 编辑
摘要:1、普通用户修改 vi /etc/security/limits.d/20-nproc.conf 1、root用户修改 vi /etc/security/limits.conf 追加 * soft nproc 131072 * hard nproc 131072 或按照1中修改 阅读全文
posted @ 2023-03-24 17:19 梧桐潇雨 阅读(69) 评论(0) 推荐(0) 编辑
摘要:在Linux系统中umask值代表的是我们创建新文件/目录的默认权限设置,系统root账号默认的umask的值为0022 普通账号的umask的值为0002 目录默认权限:777-umask 文件默认权限:666-umask 修改umask即可修改文件/文件夹默认权限 阅读全文
posted @ 2023-02-02 16:58 梧桐潇雨 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1、文件属性: 第1位:文件类型 2~4位:文件拥有者对于该文件所拥有的权限 5~7位:代表文件所属组对于该文件所拥有的权限 后三位:代表其他人(除了拥有者和所属组之外的人)对于该文件所拥有的权限 2、文件数量 文件:1 目录:目录内文件数量 3、文件或目录的拥有者 4、表示所属的组 每一个使用者都 阅读全文
posted @ 2023-02-02 16:53 梧桐潇雨 阅读(84) 评论(0) 推荐(0) 编辑
摘要:1、安装 yum install tinyproxy -y 2、修改配置文件 修改代理ip和端口 vim /etc/tinyproxy/tinyproxy.conf 3、服务管理 systemctl start tinyproxy systemctl stop tinyproxy systemctl 阅读全文
posted @ 2023-01-11 14:36 梧桐潇雨 阅读(228) 评论(0) 推荐(0) 编辑
摘要:问题: yum install *** No package *** available. Error: Nothing to do 解决方法: yum install -y epel-release 阅读全文
posted @ 2023-01-11 14:30 梧桐潇雨 阅读(1811) 评论(0) 推荐(0) 编辑
摘要:1、查找 192.168.126.50 [all:vars]ansible_ssh_user=rootansible_ssh_pass=12354678/12 n:下一个,N:上一个 2、替换 替换当前行第一个: [service] 192.168.126.50 [all:vars] ansible 阅读全文
posted @ 2022-12-27 16:55 梧桐潇雨 阅读(13) 评论(0) 推荐(0) 编辑
摘要:server { listen 8099; server_name lianghj.top; #charset koi8-r; #access_log logs/host.access.log main; location /api{ proxy_pass https://lianghj.top:8 阅读全文
posted @ 2022-12-22 13:23 梧桐潇雨 阅读(45) 评论(0) 推荐(0) 编辑
摘要:1、su root 2、mkdir /home/{用户名},已存在忽略 3、cp -r /etc/skel/.bash* /home/{用户名} 4、su {用户名} 阅读全文
posted @ 2022-08-12 11:25 梧桐潇雨 阅读(73) 评论(0) 推荐(0) 编辑

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