Linux

  • 2023-07-17 21:23:13
  • Post By 高景洋
我们在实际的linux远程连接过程中,会产生很多垃圾日志,如何清理这些登录日志呢? 1、将以下脚本存成 cl.sh 文件,上传到服务器上 #!/usr/bin/bash echo > /var/log/syslog echo > /var/log/messages echo > /var/log/xf
查看全文 | 浏览次数(235)
  • 2023-06-14 15:11:39
  • Post By 高景洋
centos 如何查看防火墙状态? 执行:systemctl status firewalld ,即可查看防火墙状态 防火墙的开启、关闭、禁用命令 (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld
查看全文 | 浏览次数(415)
  • 2023-05-11 10:18:26
  • Post By 高景洋
1、长话短说,依次执行以下命令 yum install gcc-c++ yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-devel 2、直接下载.tar.gz安装包, 地址:https://nginx.or
查看全文 | 浏览次数(672)
  • 2023-04-25 21:12:22
  • Post By 高景洋
centos 下如何安装unzip? 执行以下命令即可安装unzip yum install -y unzip zip --nogpgcheck
查看全文 | 浏览次数(569)
  • 2023-03-21 09:59:19
  • Post By 高景洋
1.查看时区与时间 #date -R 2.手工修改系统时间 #date -s 20230321 #date -s 23:40:00 3.手工修改系统时区 #cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 4.同步阿里云的时钟源 #ntpdate ntp1.aliyun.com 5.将当前时间和日期写入BI
查看全文 | 浏览次数(266)
  • 2023-03-18 19:50:31
  • Post By 高景洋
如何使用acme 申请https免费证书? 按下列步骤走,简单方便,可实现批量 1、安装acme.sh 执行 : curl https://get.acme.sh | sh 安装程序会自动做以下操作: 自动把 acme.sh 安装到你的home的.acme.sh目录下,即~/.acm
查看全文 | 浏览次数(554)
  • 2023-01-12 18:38:47
  • Post By 高景洋
last命令,对应的日志文件/var/log/wtmp; 成功登录用户 lastb命令,对应的日志文件/var/log/btmp; 尝试登录信息 lastlog命令,对应的日志文件/var/log/lastlog; 显示最近登录信息 清除登录成功的日志:echo > /var/log/wtmp 执行last 命令,无信息
查看全文 | 浏览次数(516)
  • 2022-03-16 09:32:55
  • Post By 高景洋
nohup python3 doopt.py > doopt.log 2>&1 &
查看全文 | 浏览次数(769)
  • 2021-11-22 23:19:59
  • Post By 高景洋
firewall-cmd —zone=public —add-port=80/tcp —permanent firewall-cmd —reload 80可以改为任意你想放行的端口
查看全文 | 浏览次数(776)
  • 2021-11-22 21:22:28
  • Post By 高景洋
ssh -p 16403 root@154.7.125.122
查看全文 | 浏览次数(777)
  1. 1
  2. 2
  3. 3