0x00:写在前面 这题涉及几个🧀点 escapeshellarg($host);给字符串增加一对单引号,保证shell正常执行。加一对单引号的同时,对字符串内可能存在扰乱执行的符合进行转义e'->'e'\''' escapeshellcmd($host);对字符串中可能会欺骗 shell 命令执 ...
分类:
其他好文 时间:
2020-05-15 18:20:45
阅读次数:
106
Create SSH link to Gitlab1. open "Git Bash"2. ssh-keygen -t rsa -C "name_of_gitlab_account"3. "Enter" three times4. C:\Users\Administrator\.ssh\ >> id ...
分类:
其他好文 时间:
2020-05-15 18:16:57
阅读次数:
108
用户方面 1、用shell脚本批量建立Linux用户 实现要求:创建用户student1到student50,指定组为student组!而且每个用户需要设定一个不同的密码! #!/bin/bash for i in `seq 1 10` do useradd -G student student$i ...
分类:
系统相关 时间:
2020-05-15 17:31:36
阅读次数:
89
一、windows下安装 1.使用命令安装 pip install pyenv win target %USERPROFILE%/.pyenv %USERPROFILE%/是具体的路径,例如 pip install pyenv win target D:\Envs/.pyenv 2.设置环境变量 名 ...
分类:
编程语言 时间:
2020-05-15 15:54:02
阅读次数:
61
使用Python发送数据库巡检邮件 使用方式 计划任务中定义执行周期 00 09,17 * * * root /home/ctchat/shell/send_mysqlhtml.sh 脚本文件内容 [root@SH-DB-PTT-02 ctchat]# cat /home/ctchat/shell/ ...
分类:
数据库 时间:
2020-05-15 15:46:05
阅读次数:
81
不知道怎么分类的 $? 命令行参数 shell Command c、 i、是可选选项, A 是可以接收一个数字的选项, 并且需要一个文件作为参数,可以写成以下形式 Command ci A 2 file_name Command c i file_name A 2 Command file_name ...
分类:
其他好文 时间:
2020-05-15 15:42:57
阅读次数:
47
一,查看redhat系操作系统的版本: 适用于centos/fedora/rhel等 [root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 说明:刘宏缔的架构森林是一个专注架构的博客,地址:htt ...
分类:
系统相关 时间:
2020-05-15 13:13:35
阅读次数:
890
git commit进入vim模式的命令 i 进入编辑模式 esc + :wq 保存并退出 esc + :q 不保存文件,退出vim esc + :q 不保存文件,强制退出vim esc + :w 保存文件,不退出vim esc + :w! 强制保存,但是不退出vim ...
分类:
其他好文 时间:
2020-05-15 11:40:06
阅读次数:
52