摘要: 1、打开 Chrome 浏览器主页:http://www.google.cn/chrome 2、地址栏最后的网址是这样的:http://www.google.cn/chrome/browser/desktop/index.html 3、在网址最后加上:?standalone=1&platform=w 阅读全文
posted @ 2018-03-04 12:32 codeforu2 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 一、下载安装 二、环境变量配置 三、配置文件解析 四、使用与优化 1.常用操作 启动(必须跟随配置文件) /usr/local/redis/bin/redis-server /etc/redis.conf 关闭(shutdown) /usr/local/redis/bin/redis-cli -h 阅读全文
posted @ 2018-03-01 18:36 codeforu2 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 一、前言 为了防止访问服务器的流量超过服务器最大承载量,需要对服务器访问流量进行限制,因为业务访问通过nginx进行转发,所以采取nginx配置进行限流操作。使用了nginx自带的两个模块ngx_http_limit_conn_module,ngx_http_limit_req_module进行限流 阅读全文
posted @ 2018-02-01 18:37 codeforu2 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 清空MySQL密码 This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 错误解决办法 set global log_bin_trust_function_creators=TRUE; 添加histo 阅读全文
posted @ 2017-12-22 18:12 codeforu2 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 前言 从头开始搭建在Centos6 搭建环境Nginx+apache+php+nodejs+jdk 系统环境搭建 1.安装VMware虚拟机软件,下载centos6,连接远程服务器安装系统。 2.系统安装后需要启动网卡配置ip bootproto IP获取方式 dhcp(动态) static(静态) 阅读全文
posted @ 2017-12-14 17:47 codeforu2 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Locust是一款使用Python编写的压力测试工具,本篇总结会介绍在实际测试过程中遇到的问题,不会介绍入门的操作,详情可以看官网的入门教程。 https://www.locust.io/ 使用Locust的原因是因为可以模拟的用户数量可以通过添加硬件来增长,相对于jmeter来说配置更加 阅读全文
posted @ 2017-12-05 15:53 codeforu2 阅读(2610) 评论(0) 推荐(0) 编辑
摘要: su - oraclesqlplus sys/admin as sysdbaselect sid,serial#,username,program,machine,status from v$session;alter system kill session 'SID,SERIAL#';ps -ef 阅读全文
posted @ 2017-11-30 15:17 codeforu2 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1.python 2和3的共存调用问题 Windows 国内通用方法是改python.exe名称,但是改完后pip无法正常使用。 官方解决方法: py -3 hello.py py -2 hello.py 如果想去掉 -2 -3 可以设置默认的打开方式,文件头添加注释 #! python2 #! p 阅读全文
posted @ 2017-11-23 15:55 codeforu2 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一.批量所搜符合的文件,再对文件内容进行搜索,对搜索到的内容进行计数: find . -name 'log_2017-11-01-1*'|xargs grep "数据"|wc grep "12:12:1[2]" log grep "12:12:1*" log 二.后台运行命令: 通过xshell连接 阅读全文
posted @ 2017-10-28 16:15 codeforu2 阅读(233) 评论(0) 推荐(0) 编辑
摘要: mysql 循环插入数据BEGIN #Routine body goes here... DECLARE n bigint; set n=1; while n 可用积分 查询单用户积分 SELECT 4 * add20 + 8 * add21 + 12 * add22 - 2 * add23 - 3 * add24 - 5 * add25 obtain... 阅读全文
posted @ 2017-10-25 20:16 codeforu2 阅读(276) 评论(0) 推荐(0) 编辑