今日:0  |  文章:431
admin
小绿叶技术博客 Lv2 超级管理员

虚拟主机 apache 遭受流量攻击---系统资源高 设置.htaccess 禁止ip访问

1. 下载日志文件:https://help.aliyun.com/knowledge_detail/36376.html2. 通过ftp账户登录ftp后在 wwwlogs目前下的日志文件来进行分析:虚拟主机后台操作下载最新日志,将日志文件传到centos服务器使用命令进行分析,分析命令:cat 日志名 | awk '{print $1}' | sort | uniq -c | sort -k 1 -n -r |head -n 10# 查看日志文件,找出访问量大的ip3. 判断是否有网络攻击行为,如果有相
 
 805   2021-09-10
admin
小绿叶技术博客 Lv2 超级管理员

linux cetnos iftop nethogs 工具分析linux 流量使用占用情况

查看 ip 访问运用占用的流量情况:yum install libpcap nethogs -y# 安装工具包nethogs# 查看流量情况yum install -y iftopiftop原文:https://www.cnblogs.com/hanyifeng/p/5439520.html
 
 892   2021-09-09
admin
小绿叶技术博客 Lv2 超级管理员

内网服务器搭载网桥外网服务器通向外网

同一个VPC,可以使用自建SNAT 的方式实现 内网机器桥接外网机器实现外网访问https://blog.csdn.net/qq_40025218/article/details/84837802
 
 634   2021-09-09
admin
小绿叶技术博客 Lv2 超级管理员

Linux循环登录

2. Linux循环登录:输入密码登录后闪一下又回登录界面 root 密码登录返回登录界面: 解决:注释掉 /root/.bashrc      /etc/profile  文件的所有内容   检查环境变量:https://www.linuxprobe.com/diff-bashrcprofile.html
 
 517   2021-09-09
admin
小绿叶技术博客 Lv2 超级管理员

Jupyter Notebook是以网页的形式打开 编辑代码

Jupyter Notebook是以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下显示。https://www.jianshu.com/p/91365f343585
 
 857   2021-09-08
admin
小绿叶技术博客 Lv2 超级管理员

cat > EOF 重定向写入文件文本用法

cat > $HOME/.cargo/config << EOF[source.crates-io]registry = "https://github.com/rust-lang/crates.io-index"# 替换成速度比较快的镜像源,这里使用上海交大的。replace-with = 'sjtu'# 清华大学[source.tuna]registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"#
 
 570   2021-09-08
admin
小绿叶技术博客 Lv2 超级管理员

Dutree – Linux上的命令行磁盘使用情况分析工具

# Durep用图表创建磁盘使用情况报告yum -y install cargo                      # 安装工具包mkdir -p $HOME/.cargo               # 新建配置目录touch $HOME/.cargo/config      &
 
 685   2021-09-08
admin
小绿叶技术博客 Lv2 超级管理员

linux 搭建 jdk tomcat

   参考:https://www.cnblogs.com/lanqingzhou/p/8039906.html
 
 574   2021-09-05
admin
小绿叶技术博客 Lv2 超级管理员

磁盘 占用 io 输入输出很高

找出使用io高的进程的工具  iotopyum install iotop -y# https://blog.csdn.net/saga_gallon/article/details/82891709
 
 597   2021-09-04
admin
小绿叶技术博客 Lv2 超级管理员

chmod: 附加权限报错允许这样操作

chmod: changing permissions of‘/usr/bin/netstat': Operation not permitted 更改”xxx”的权限:不允许的操作这样的错误。问题原因:是因为在Linux中有些配置文件,哪怕是root都不能随意修改,主要是防止误操作(误删和修改等)。解决办法:允许修改即可,命令如下:chattr -i /etc/fstab如果你想一些特别的文件不能随意修改的话,可以执行如下命令:chattr +i /etc/fstab
 
 607   2021-09-04
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息