ubuntu安装使用openresty 安装:官网地址:http://openresty.org/cn/linux-packages.html 安装导入 GPG 公钥时所需的几个依赖包(整个安装过程完成后可以随时删除它们) sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates 导入 GPG 密钥 wget -O - https://open 2021-07-15 Openresty #Ubuntu #Openresty
Ubuntu下mysql的安装使用与卸载 一、安装:先使用 wget 下载存储库软件包手动下载地址:https://dev.mysql.com/downloads/repo/apt/ wget -c https://repo.mysql.com//mysql-apt-config_0.8.17-1_all.deb 然后使用以下 dpkg 命令安装下载好的 MySQL 存储库软件包(选择mysql版本)sudo dpkg -i mysql 2021-07-14 mysql #mysql
Ubuntu无法使用root用户登陆 问题:以root用户远程登陆ubuntu提示: Please login as the user "ubuntu" rather than the user "root" 解决办法一、编辑ssh登录方式:1234567891011121314#编辑SSH文件 sudo vim /etc/ssh/sshd_config#密码认证改为 yesPasswordA 2021-07-13 Ubuntu #Ubuntu
github免密码push 生成 SSH Key:12#输入自己的github注册邮箱ssh-keygen -t rsa -C "youremail@example.com" 提示直接回车成功的话会在 ~/ 下生成 .ssh 文件夹 12#打开 id_rsa.pub复制里面的 keyvim ~/.ssh/id_rsa.pub 到 github 上,进入 Account => Settings =&g 2021-07-13 github #github
CE防检测 下载lazarus下载地址:https://www.lazarus-ide.org/index.php?page=downloads CE源码下载地址:https://github.com/cheat-engine/cheat-engine 打开源码项目用lazarus打开Cheat Engine文件夹中cheatengine.lpi 修改标题在view菜单中点击MainForm:TMainFo 2021-07-09 CE #CE
HTML自定义文件上传按钮 效果: HTML:123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960<!DOCTYPE html><html><head><meta charset="UTF-8&quo 2021-07-08 html #html
golang数据深拷贝 golang对slice的深拷贝使用append拷贝 Array := append([]int32{},array...) 使用copy拷贝 Array := make([]int32,len(array)) copy(Array, array) golang对map深拷贝valueMap := make(map[string][]int) slice := []int& 2021-07-06 go #go
Ubuntu配置iptables防火墙 语法:iptables(选项)(参数) 命令选项输入顺序:iptables -t 表名 <-A/I/D/R> 规则链名 [规则号] <-i/o 网卡名> -p 协议名 <-s 源IP/源子网> --sport 源端口 <-d 目标IP/目标子网> --dport 目标端口 -j 动作 表名: raw :高级功能,如:网址过滤。 mangle :数 2021-07-05 Ubuntu > iptables #Ubuntu #iptables
iptables-persistent持久化iptables规则 问题:正常情况下,我们写入的iptables规则将会在系统重启时消失。 即使我们使用iptables-save命令将iptables规则存储到文件,在系统重启后也需要执行iptables-restore操作来恢复原有规则。 解决方法:安装iptables-persistent sudo apt-get install iptables-persistent 命令 #保存策略 sudo netf 2021-07-05 Ubuntu > iptables #iptables-persistent
webdriver常用方法函数 常用定位元素:12345678910#id定位find_element_by_id()#name定位find_element_by_name()#xpath定位find_element_by_xpath()#tag定位find_element_by_tag_name()#link定位find_element_by_link_text() 常用元素操作函数:123456789101112131415 2021-07-01 Python > selenium #selenium #webdriver