摘要: class Image{ //路径 protected $path; //是否启用随机名字 protected $isRandName; //要保存的图像类型 protected $type; //通过构造方法队成员属性进行初始化 function __construct($path='./',$i 阅读全文
posted @ 2020-06-10 22:41 花兮 阅读(250) 评论(0) 推荐(0) 编辑
摘要: git clone https://github.com/arut/nginx-rtmp-module /www/server/nginx_rtmp_module/ //拉取nginx-rtmp-module待编译文件 cd /www/server/panel/install //进入安装配置文件路 阅读全文
posted @ 2020-06-10 18:25 花兮 阅读(3045) 评论(9) 推荐(0) 编辑
摘要: nginx安装 //安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel //安装 PCRE 让 Nginx 支持 Rewrite 功能 wget http://downloads.s 阅读全文
posted @ 2020-06-10 18:24 花兮 阅读(196) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> /** * 结构体 */ struct Books{ char a[30]; char b[30]; int c; }Book1,Book2; /** * 结构体作为参数 * @param book [descriptio 阅读全文
posted @ 2020-06-10 18:21 花兮 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "stdlib.h" #include "string.h" // void get(int a) // { // a = 20; // printf("%d\n", a); // } // void (*FUNP)(int a); // vo 阅读全文
posted @ 2020-06-10 18:20 花兮 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1、重启mac,按住Command+R,等到系统进入安全模式。 2、选择一个账户,然后点击屏幕上方的工具栏找到命令行工具。 3、执行,命令 csrutil disable 4、重启电脑后,不要进入安全模式,执行命令sudo mount -uw / 5、执行命令sudo mkdir /data 6、执 阅读全文
posted @ 2020-06-10 18:19 花兮 阅读(720) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/expect -f set user root set host xx.xx.xx.xxx set password xxxxx set timeout -1 spawn ssh $user@$host expect "password:*" send "$password\r 阅读全文
posted @ 2020-06-10 18:18 花兮 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 一开始执行的命令是 nohup 命令 & 然后过了一天,整个服务器宕掉了,原因是生成的日志文件太多 最后方案 nohup 命令 1>/dev/null 2>&1 & 阅读全文
posted @ 2020-06-10 18:17 花兮 阅读(604) 评论(0) 推荐(0) 编辑
摘要: su www -s /bin/bash -c 'mkdir 123' su www -c 'nohup php think queue:work --queue JobClass 1>/dev/null 2>&1 &' 阅读全文
posted @ 2020-06-10 18:16 花兮 阅读(1923) 评论(0) 推荐(0) 编辑
摘要: //防止重复请求: var request; if(request != null) request.abort(); request = $.get("ajax.aspx",{id:1},function(){ //do something }); 阅读全文
posted @ 2020-06-10 18:15 花兮 阅读(193) 评论(0) 推荐(0) 编辑
摘要: javac -encoding utf-8 test.java 阅读全文
posted @ 2020-06-10 18:12 花兮 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 一般说来,在Web安全领域,常见的攻击方式大概有以下几种: 1、SQL注入攻击 2、跨站脚本攻击 - XSS 3、跨站伪造请求攻击 - CSRF 4、文件上传漏洞攻击 5、分布式拒绝服务攻击 - DDOS 阅读全文
posted @ 2020-06-10 18:09 花兮 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 服务端安装git yum install git git - -version 查看git版本 git config —global user.name “myname" git config —global user.email “myemail@qq.com" ssh-keygen生成公钥 宝塔 阅读全文
posted @ 2020-06-10 18:07 花兮 阅读(1399) 评论(0) 推荐(0) 编辑
摘要: 第一阶段 01 Unity3D 基础操作 02 C# 语言基础 03 PS 图像简单处理 04 Unity3D 界面UI(UGUI或NGUI) 05 Unity3D 动画系统(Mecanim和DOtween) 06 Unity3D 图形数学(点乘、欧拉角、四元数等) 07 Unity3D 梳理代码( 阅读全文
posted @ 2020-06-10 18:05 花兮 阅读(892) 评论(1) 推荐(1) 编辑
摘要: /** * Function createThumb * 生成缩略图 * @param $srcImg string 源图地址 * @param $maxWidth int 缩略图最大宽度 * @param $maxHeight int 缩略图最大高度 */ function createThumb 阅读全文
posted @ 2020-06-10 18:04 花兮 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 错误: connect() failed (111: Connection refused) while connecting to upstream 错误原因: 1.php-fpm没有安装 安装php php-fpm 配置nginx就好了 2.php-fpm没有运行 先查看默认端口9000有没有运 阅读全文
posted @ 2020-06-10 18:03 花兮 阅读(3148) 评论(0) 推荐(0) 编辑
摘要: 安装 yum install docker 常用命令 docker search 关键词 搜索docker hub上面的资源 docker pull 关键词 拉取docker hub上面的镜像到本地 docker images 列出本地所有的镜像 docker rmi 镜像id 删除某个镜像文件 d 阅读全文
posted @ 2020-06-10 18:00 花兮 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 安装MP3编码库 wget https://astuteinternet.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz tar -zxvpf lame-3.99.tar.gz cd lame-3.99 ./configure & 阅读全文
posted @ 2020-06-10 17:59 花兮 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 先安装redis服务端 下载地址:http://redis.io/download 安装$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz $ tar xzf redis-2.8.17.tar.gz $ cd redis-2.8. 阅读全文
posted @ 2020-06-10 17:55 花兮 阅读(116) 评论(0) 推荐(0) 编辑
摘要: class Superman { protected $module; function __construct(PowerModule $PowerModule,array $arr) { $this->module = $PowerModule; echo "Superman is ready. 阅读全文
posted @ 2020-06-10 17:53 花兮 阅读(171) 评论(0) 推荐(0) 编辑