摘要: System.setProperty("webdriver.chrome.driver", "xxx/chromedriver");// Chromeoptions = new ChromeOptions();// 启动就最大化// options.addArguments("start-fulls 阅读全文
posted @ 2020-04-13 00:59 狂猫 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 项目地址:https://github.com/facebook/php-webdriver 一、技术选型 php + facebook/webdriver + selenium Selenium是一套完整的Web应用程序测试系统,它提供了一系列的操作浏览器的 API webdriver 是 fac 阅读全文
posted @ 2020-03-31 23:39 狂猫 阅读(1852) 评论(0) 推荐(1) 编辑
摘要: 通过nginx转发,用外网连接阿里云的redis,报Unexpected end of stream的解决办法 一、在与redis同一个内网的服务器上A的nginx做了下面的设置 stream { upstream redis { server redis.rds.aliyuncs.com:6379 阅读全文
posted @ 2019-06-08 13:06 狂猫 阅读(468) 评论(0) 推荐(0) 编辑
摘要: nginx内置变量 内置变量存放在 ngx_http_core_module 模块中,变量的命名方式和apache 服务器变量是一致的。总而言之,这些变量代表着客户端请求头的内容,例如$http_user_agent, $http_cookie, 等等。下面是nginx支持的所有内置变量: $arg 阅读全文
posted @ 2018-12-26 16:43 狂猫 阅读(261) 评论(0) 推荐(0) 编辑
摘要: mysql CREATE DATABASE IF NOT EXISTS my_db default charset utf8 COLLATE utf8_general_ci; grant all privileges on weixin.* to 'weixin'@'localhost' ident 阅读全文
posted @ 2018-06-06 20:44 狂猫 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 下载frp到服务器,在 https://github.com/fatedier/frp/releases 这里可以查看最新版本和获取下载地址 修改服务器配置文件(frps.ini): 按i,进行编辑,将内容修改下面的: [common] 必须设置 bind_port 是自己设定的frp服务端端口 v 阅读全文
posted @ 2018-05-24 21:32 狂猫 阅读(657) 评论(0) 推荐(0) 编辑
摘要: MySQL 获得当前日期时间 函数 获得当前日期+时间(date + time)函数:now() mysql> select now(); + + | now() | + + | 2008-08-08 22:20:46 | + + 获得当前日期+时间(date + time)函数:sysdate() 阅读全文
posted @ 2018-04-19 13:46 狂猫 阅读(250457) 评论(4) 推荐(7) 编辑
摘要: 1 $size = 1024*1024; 2 3 $shm_key = ftok(__FILE__, 't'); 4 5 $shm_id = shmop_open($shm_key, "c", 0644, $size); 6 7 $id = sem_get($shm_key); 8 9 $data = shmop_read($shm_id, 0, $size); 10 ... 阅读全文
posted @ 2018-04-07 21:26 狂猫 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 if (!function_exists('sem_get')) { 2 function sem_get($key) { 3 return fopen(__FILE__ . '.sem.' . $key, 'w+'); 4 } 5 function sem_acquire($sem_id) { 6 return flock... 阅读全文
posted @ 2018-04-07 21:24 狂猫 阅读(241) 评论(0) 推荐(0) 编辑
摘要: # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # 这... 阅读全文
posted @ 2018-04-05 13:18 狂猫 阅读(151) 评论(0) 推荐(0) 编辑