自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(73)
  • 收藏
  • 关注

原创 财经-cxh

若益于己向,勿溢满而持。观情浓,观情淡,后而动,持之或收之所受。若益异己向,勿受害而散。观情浓,观情淡,后而动,散之或进之所受。

2023-07-25 17:00:19 185

原创 ES安装配置7.5.2

参考地址英文 第二个地址中文。https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html 这个是 不同机器安装方法列表Install Elasticsearch from archive on Linux or MacOS | Elasticsearch Guide [7.16] | Elastichttps://www.elastic.co/guide/en/elasticsea.

2021-12-26 00:19:54 1423

原创 consul 安装

启动consul报错consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -node=ali -bind=47.110.241.193 -ui -client=0.0.0.0启动成功consul agent -server -bootstrap -ui-dir /etc/consul_ui -data-dir /tmp/consul -node master1引用链接地址f​​​​​​​Error st...

2021-12-23 23:18:49 535

原创 docker 容器的使用记录

docker 基础操作记录centos2dockerhub账号id:cuixiaohuai邮箱: 545278432@qq.com密码:a123456.aa仓库名称:aixuexi初始化创建容器1. docker run -d -t --privileged=true --name test3 -v /data:/data:rw docker.io/nginx /bin/bash// 进入容器2.docker exec -it 68ad68cd2207 /bin/bash...

2021-12-23 11:18:53 336

原创 nginx中引入多版本 php 和 域名地址转发至指定机器本地的端口号

server{ listen 80 default; server_name lacoste-******.shopex123.com; location / { proxy_pass http://127.0.0.1:9501; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_hea...

2021-09-23 16:50:17 343

原创 php域名转发端口至 127.0.0.1:9501

server_name lacoste-hyt-test.shopex123.com; location / { proxy_pass http://127.0.0.1:9501; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; prox...

2021-09-23 16:35:44 453

原创 go专题学习

一. mac下go下载地址https://golang.google.cn/dl/ 1.下载直接安装。2.配置全局环境变量vim ~/.bash_profile//在~/.bash_profile文件中添加以下2条命令export GOROOT=/usr/local/goexport PATH=$PATH:$GOROOT/bin//使配置生效sorce ~/.bash_profile3.查看go 版本go version二....

2021-09-19 07:13:00 333

原创 JMeter 压测使用记录

windows环境下Jmeter5.2的安装使用 一、安装配置JDKJmeter5.2依赖JDK1.8+版本,JDK安装百度搜索JAVA下载JDK,地址:https://www.oracle.com/technetwork/java/javase/downloads/index.html,也可以访问百度网盘下载后根据提示安装即可。JDK安装包:链接:https://pan.baidu.com/s/1-3Kh-2TYaCBQ2fu6hOxCyA提取码:w43l环境变量配置参考博客:ht.

2021-05-25 16:50:22 119

原创 ES 环境搭建

centostwo地址:https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html添加yum源rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch添加一下文件填充内容vi /etc/zypp/repos.d/elasticsearch.repo[elasticsearch]name=Elasticsearch reposito..

2021-05-24 15:50:10 442

原创 ES 基础查询语句组合

一 :使用过程中 记录以及筛选条件二 :查询样列 基础查询 语法结构 sql 语句 以及 对应的 es 查询语法根据条件查询去重计数SQLselect count(DISTINCT(member_id)) as all_total from member_analysis where member_type IN("consumer","potential") AND last_buy_time >= '1605801599' and buy_times > '...

2021-05-14 10:02:13 620

原创 nginx安装

安装所需插件1、安装gccgcc是linux下的编译器在此不多做解释,感兴趣的小伙伴可以去查一下相关资料,它可以编译 C,C++,Ada,Object C和Java等语言命令:查看gcc版本gcc -v一般阿里云的centOS7里面是都有的,没有安装的话会提示命令找不到,安装命令:yum -y install gcc2、pcre、pcre-devel安装pcre是一个perl库,包括perl兼容的正则表达式库,nginx的http模块使用pcre来解析正则表达式..

2021-04-01 19:43:21 109

原创 python windows 下安装leveldb

https://github.com/happynear/py-leveldb-windows 访问地址 往下拉 找到对应位置

2021-03-22 18:39:35 1799 2

原创 如何定位当前正在运行的nginx的配置文件

1.netstat -anop | grep 0.0.0.0:80 查找进程id2. ll /proc/29131/exe 通过相应的进程ID(比如:29131 上图获取的)查询当前运行的nginx路径:3./usr/local/nginx/sbin/nginx -t 获取到nginx的执行路径后,使用-t参数即可获取该进程对应的配置文件路径...

2021-03-22 12:00:12 386

原创 windows 下python 扩展安装

1.python 下载扩展包地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient手动安装扩展安装方法 使用pyenv 管理python 中的 pip 安装 方式D:\pyevn\.pyenv\pyenv-win\versions\2.7.13\Scripts\pip.exe install MySQL_python-1.2.5-cp27-none-win_amd64.whl2.批量安装扩展包D:\pyevn\...

2021-03-18 10:02:19 326

原创 windows 下 idea 安装ptyhon 插件支持 并新建项目

第一步第二步第三步安装后重启 确认重启idea第四步: 新建项目第五步如果没有版本 则 点击添加版本如果已经新建了项目 则 直接下一步选择已经建好的项目目录 然后点击finish完成...

2021-03-16 17:47:31 98

原创 Vue 镜像设置 npm install

npm config set registry https://registry.npm.taobao.orgnpm config get registrynpm config set @shopex:registry http://registry.npm.ishopex.cnnpm config get @shopex:registry然后 根目录npm install再然后library 目录下再执行npm install...

2021-02-06 11:44:46 1026

原创 Es 使用操作

一:阿里云地址// 阿里云开发安装地质https://help.aliyun.com/document_detail/69194.html?spm=a2c4g.11186623.2.19.1dc340e2ojSMtt#concept-rsj-dmk-zgb//阿里云sql 插件类sqlhttps://help.aliyun.com/document_detail/170432.html?spm=a2cba.elasticsearch_plugin.c_plugin.2.3b7b68de97JmMG

2021-02-06 11:41:40 238

原创 加解密+ 脱敏函数

// 加密 解密function passport_encrypt($txt, $key = 'liiu') { srand((double)microtime() * 1000000); $encrypt_key = md5(rand(0, 32000)); $ctr = 0; $tmp = ''; for($i = 0;$i < strlen($txt); $i++) { $ctr = $ctr == strlen($e...

2021-02-06 11:23:17 260

原创 php大文件读取

function readLocalFile($fileName){ $handle = fopen($fileName, 'r'); $lins = []; while (!feof($handle)) { $lines[] = fgets($handle); } fclose($handle); return $lines;}function readYieldFile($fileName){ $handle = fopen($fileName, 'r'...

2021-02-06 11:19:15 152

原创 laravel 框架邮箱发送

https://www.cnblogs.com/stj123/p/10658221.html

2021-01-13 10:01:20 134

原创 取出二维数组中某一列的所有值

https://www.cnblogs.com/Steven-shi/p/5897745.html

2020-12-21 14:07:49 4876

原创 mysql 表被锁后处理方式

1. 查询被锁的进程SELECT * FROM information_schema.innodb_trx 2. 杀掉sql lock等待 kill 4163358

2020-12-10 19:01:11 214 1

原创 linux 下helm 安装

中文文档 地址 http://www.coderdocument.com/docs/helm/v2/using_helm/installing_helm.htmlhttps://github.com/helm/helm/releases下载下来后按照以下步奏

2020-12-09 10:34:04 650

原创 在Ubuntu系统中安装kubelet,kubeadm和kubectl

参考地址https://blog.youkuaiyun.com/weixin_44256791/article/details/85254859在这一篇中,我们在Ubuntu系统中通过命令行的方式安装kubelet,kubeadm和kubectl。kubelet:运行在Cluster 的所有节点上面,负责Pod和容器的启动和维护;kubeadm:用于初始化Cluster;kubectl:命令行工具。通过 kubectl可以部署和管理应用,查看资源,维护组件。下面开始安装:1、切换为root.

2020-11-26 10:25:29 2870

原创 HTML5 History 模式 即 vue 前后端分离服务端配置

参考原文地址https://router.vuejs.org/zh/guide/essentials/history-mode.html#%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%901.nginx 配置server { listen 80; server_name nestle.com ; root "D:\install\PHPTutorial\WWW\skscrm...

2020-11-16 15:52:53 581

原创 (laravel,apache,nginx )响应头设置 (有关iframe嵌套,xss 攻击,防止基于 MIME 类型混淆的攻击)的配置

nginx 配置server { listen 80; server_name nestle.com ; root "D:\install\PHPTutorial\WWW\skscrm\dist"; add_header X-Frame-Options SAMEORIGIN; add_header X-XSS-Protection '1; mode=block'; add_header ...

2020-11-16 13:53:46 1127

原创 windows 下 apache + vuerouter — htm5

https://www.cnblogs.com/xhq1024/p/12626913.html一、前言前端Vue router 使用history模式,URL会比hash模式好看,这种模式要玩好,还需要后端配置支持,否则会报404错误。注:1.前端代码省略。  2.此处后台使用Apache服务支持。二、后端配置部署1.创建一个txt文件,在其中添加如下配置参照官方文档<IfModule mod_rewrite.c> RewriteEngine On .

2020-11-05 12:03:50 151

原创 linux 工具

lsof -i:3306-bash: lsof: command not foundyum install lsof

2020-09-25 16:42:09 78

原创 windows 下 安装redis

https://blog.youkuaiyun.com/j15533415886/article/details/97541184

2020-09-25 10:48:46 84

原创 mysql 四种分区方式

1、什么是表分区?mysql数据库中的数据是以文件的形势存在磁盘上的,默认放在/mysql/data下面(可以通过my.cnf中的datadir来查看),一张表主要对应着三个文件,一个是frm存放表结构的,一个是myd存放表数据的,一个是myi存表索引的。如果一张表的数据量太大的话,那么myd,myi就会变的很大,查找数据就会变的很慢,这个时候我们可以利用mysql的分区功能,在物理上将这一张表对应的三个文件,分割成许多个小块,这样呢,我们查找一条数据时,就不用全部查找了,只要知道这条数据在哪一块,然后

2020-09-23 17:56:55 26543

原创 守护进程管理工具 supervisor (待完善)

①[root@cxh ~]# yum install python-setuptoolsLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfilePackage python-setuptools-0.9.8-7.el7.noarch already installed and latest versionNothing to do②[root@cxh ~]# easy_install supervisor

2020-08-25 12:18:56 360

原创 php实现遍历文件夹及文件

$ROOTADDR=$_SERVER['DOCUMENT_ROOT']."/modules/RefillApplication";$allFileAddrAndFileName=$this->traverseallfiles($ROOTADDR);public function traverseallfiles($accountName){ $resultFilearray=array(); $fileArray=scandir($accountName); fo.

2020-08-20 18:36:10 218

原创 apache 跨域问题处理

1.apache 配置 跨域问题解决方案 首先去掉 如图注释②设置对应的需要可以被跨域访问的服务 根据如图 配置相应的 所需的跨域规则 各个配置可以自己搜一下根绝所需配置<VirtualHost *:80> DocumentRoot "D:\install\phpstudy\PHPTutorial\WWW\crm\pc_release\apps" ServerName www.wx2.com Header set Access-Control-A...

2020-08-20 18:32:18 834

原创 php递归获取数组深度

public function getCountArray($arrayStr){ $max_depth=1; foreach ($arrayStr as $key=>$value){ if(is_array($arrayStr)){ $max=$this->getCountArray($value)+1; if($max_depth<$max){ $m.

2020-08-19 18:42:37 354

原创 php冒泡排序

$array=array(3,45,43,49,67,77,5656,766,33,54,99);$result=$this->sortAllnumbers($array);public function sortAllnumbers($array){ for ($i=1;$i<count($array)-1;$i++){ for($j=1;$j<count($array)-$i;$j++){ if($array[.

2020-08-19 18:41:03 91

原创 添加水印粘贴复制即可使用

当屏幕变化时window.onresize = function(){ var watermarkText=''; $(".watermarks").remove(); watermarkWord(watermarkText);}// 添加水印方法实现function watermarkWord(watermarkText) { var screenHeight = window.screen.height; var screenWidth = wind.

2020-08-19 18:37:17 499

原创 Windows PHP 开启opcache的方法

① 添加扩展图一②添加dll路径

2020-08-18 12:28:55 530

原创 navigate 远程连接 linux mysql 数据库

第一种 开放3306端口 且 授权所有ip可以远程连接或者 自己是被授权可连接ip 且 mysql 的 root and password exists 第二种:3306 端口外网不可访问。 且 linux 的 root and password exists 且 mysql 的 root and password exists①②...

2020-07-25 18:18:59 542

原创 边框加阴影

这里设置值 以下边框和有边框加阴影style="box-shadow:2.9px 3.99px 3px rgba(0,0,0,.5);"效果如下 ,如果想有其他效果 改值就ok了

2020-02-26 09:52:33 128

原创 设置下拉框选中

var objects=$(this).closest("tr");objects.find("select[name='suoshugongsi[]']").val(company);objects.find("select[name='suoshugongsi[]']").trigger('liszt:updated');

2020-02-19 16:20:15 163

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除