Linux 登陆失败查询
Linux 登陆失败查询 最近笔者购买的 VPS 中发现一堆登陆失败信息, 因此写下本文记录登陆失败查询的步骤。如果不是自己登陆失败, 那么一定是黑客使用暴力算法不断的尝试账号和密码, 如果不采取措施, 那么密码账号和密码就有概率被跑出来, 服务器也将被盗。 博主博客 https://blog.us
nukix的工具箱
Published on 2023-12-25
Linux 配置 swap 区
很多时候我们需要配置swap主要的原因是物理内存太贵了, 服务器也是一样, 当内存不够用时, 系统会卡死, 因此我们宁愿牺牲一点性能也要让系统正常运行。当然, 在系统物理内存足够的条件下, 建议关闭swap, 内存运行速度远大于硬盘, 而swap实际上在硬盘上分配一些空间来充当内存的作用。
nukix的工具箱
Published on 2023-12-24
通过 Nginx 代理实现网页内容替换
突发奇想,用 Nginx 代理一个网站,把网站的一些关键字替换掉,蛮有意思的。 如下图: 一、编译安装 Nginx 一般 Nginx 中不包含 subs_filter 文本替换的模块,需要自己手动编译安装,步骤如下。 克隆 subs_filter 仓库: git clone http://github.com/yaoweibin/ngx_http_substitutions_filter_module.git 正常下载 Nginx 源码包解压,并安装相关编译环境: # 解压安装包tar -zxvf nginx-1.22.1.tar.gz# 安装编译环境yum -y install gcc gcc-c++ pcre pcre-devel openssl openssl-devel zlib zlib-devel 预编译 Nginx,需要携带上 --with-http_sub_module 参数,并通过 --add-module 指定刚刚拉取的 subs_filter 仓库地址。 本文中仓库地址为:/root/install/ngx_http_substitutions_filter_module/ 所以需要携带上关键参数:--with-http_sub_module --add-module=/root/install/ngx_http_substitutions_filter_module/ 完整预编译命令如下: ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_sub_module --with-http_v2_module --add-module=/...
Ubuntu搭建Ocserv配置路由分流!
一、项目准备 1.1、VMware ESXiVMware ESXi 1.2、Ubuntu镜像Ubuntu 22.04.3 ISO 1.3、OpenConnect客户端Android ClientWindows ClientALL Client 1.4、AnyConnect客户端Android ClientCisco Secure Client Windwos Client 最新版本4.10需要用magnet下载,或者下载博主的共享盘 magnet:?xt=urn:btih:64CB657D3F53EFFA07FE7A6E4734152BECAB0DBA&tr=http%3A%2F%2Fbt3.t-ru.org%2Fann%3Fmagnet&dn=Cisco%20AnyConnect%20Secure%20Mobility%20Client%20%2F%20Cisco%20Secure%20Client博主共享-Windwos Client 最新版本4.10ALL Client 1.5、SSH工具MobaXterm 1.5.1、MobaXterm激活 MobaXterm 常规设置指南 二、部署Ubuntu Ubuntu系统在VMware ESXi中安装设置请参考 Ubuntu搭建OpenVPN配置分流规则指南!第二步) 三、安装Ocserv 3.1、确认软件包 apt-cache show ocserv 3.2、更新软件列表 sudo apt-get update 3.3、安装Ocserv sudo apt-get install -y ocserv 3.4、检查版本 ocserv -version 3.5、版本升级 根据测试发现ocserv 1.1.3会在启动之后崩溃,所以我们需要升级到ocserv1.1.6版本,来解决该问题 sudo apt-get install -y...
杨杨得亿
Published on 2023-12-22
Ubuntu搭建Ocserv配置路由分流!
一、项目准备 1.1、VMware ESXiVMware ESXi 1.2、Ubuntu镜像Ubuntu 22.04.3 ISO 1.3、OpenConnect客户端Android ClientWindows ClientALL Client 1.4、AnyConnect客户端Android ClientCisco Secure Client Windwos Client 最新版本4.10需要用magnet下载,或者下载博主的共享盘 magnet:?xt=urn:btih:64CB657D3F53EFFA07FE7A6E4734152BECAB0DBA&tr=http%3A%2F%2Fbt3.t-ru.org%2Fann%3Fmagnet&dn=Cisco%20AnyConnect%20Secure%20Mobility%20Client%20%2F%20Cisco%20Secure%20Client博主共享-Windwos Client 最新版本4.10ALL Client 1.5、SSH工具MobaXterm 1.5.1、MobaXterm激活 MobaXterm 常规设置指南 二、部署Ubuntu Ubuntu系统在VMware ESXi中安装设置请参考 Ubuntu搭建OpenVPN配置分流规则指南!第二步) 三、安装Ocserv 3.1、确认软件包 apt-cache show ocserv 3.2、更新软件列表 sudo apt-get update 3.3、安装Ocserv sudo apt-get install -y ocserv 3.4、检查版本 ocserv -version 3.5、版本升级 根据测试发现ocserv 1.1.3会在启动之后崩溃,所以我们需要升级到ocserv1.1.6版本,来解决该问题 sudo apt-get install -y...
杨杨得亿
Published on 2023-12-22
vue--excel上传
在vue中实现excel上传并显示数据 效果如下: 具体代码如下: <template> <div class="app-container"> <input ref="excel-upload-input" class="excel-upload-input" style="width: 300px;margin-left: 10px" type="file" accept=".xlsx, .xls" @change="handleClick" /> <div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover"> 批量导入:拖拽excel文件或者 <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload"> 浏览 </el-button> </div> <el-table :data="excelData.results" border highlight-current-row style="width: 100%;margin-top:20px;"> <el-table-column v-for="item of excelData.header" :key="item" :prop="item" :label="item"/> </el-table> </div></template><scr...
龙儿之家
Published on 2023-12-21
Windows安装Docker
Windows安装Docker Win11 开启 Hyperv 步骤 1 windows11 上安装 HyperV 创建hyper-v.txt文件,然后重命名为hyper-v.bat文件,再以管理员的方式运行。 pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txtfor /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hv.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALLpause 控制面板 ==> 程序 ==> 启用或关闭Windows功能 ==> 开启Hyper-V 安装WSL 步骤 2 启用适用于 Linux 的 Windows 子系统 以管理员身份打开 PowerShell,然后输入以下命令: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 步骤 3 启用虚拟机功能 安装 WSL 2 之前,必须启用“虚拟机平台”可选功能。 计算机需要虚拟化功能才能使用此功能。 以管理员身份打开 PowerShell 并运行: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 步骤 4 下载 Linux 内核更新包 Li...
七星玉蘅
Published on 2023-12-19
Windows安装Docker
Windows安装Docker Win11 开启 Hyperv 步骤 1 windows11 上安装 HyperV 创建hyper-v.txt文件,然后重命名为hyper-v.bat文件,再以管理员的方式运行。 pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txtfor /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hv.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALLpause 控制面板 ==> 程序 ==> 启用或关闭Windows功能 ==> 开启Hyper-V 安装WSL 步骤 2 启用适用于 Linux 的 Windows 子系统 以管理员身份打开 PowerShell,然后输入以下命令: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 步骤 3 启用虚拟机功能 安装 WSL 2 之前,必须启用“虚拟机平台”可选功能。 计算机需要虚拟化功能才能使用此功能。 以管理员身份打开 PowerShell 并运行: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 步骤 4 下载 Linux 内核更新包 Li...
七星玉蘅
Published on 2023-12-19