Shell脚本
/usr/bin/nohup/usr/bin/phpindex.phpcli/video>/dev/null2>&1&/usr/bin/nohup/usr/bin/phpindex.phpcli/video>/home/log/test.log2>&1&#nohup:不挂断地运行命令#末尾的&:在后台运行/dev/null代表linux的空设备文件,所有往这个文件里面写入的内容都会丢失,也就是把一些消息内容抛...
阅读652018-11-15 11:56:43
PHP
/***启动守护进程*/publicfunctionrunAction(){log_message('ERROR','daemon/run'.'|action:restart','daemon-');while(true){$this->fork_process();}exit;}/***创建子进程*/privatefunctionfork_process(){$ppid=
阅读1422018-11-14 14:43:56
PHP
$headers=array("TYPE:xxxxooooo","TOKEN:00000000");$data=array('data'=>array('name'=>'test','AGE'=>22),'registration_ids'=>array('APA91b
阅读1292018-11-14 14:16:26
PHP
<!DOCTYPEhtml><html><head><metacharset="UTF-8"/><title>xhr2</title></head><body><divid="drop_area"style="border:3pxdashedsilver;width:200px;height:200px">将图片拖拽到此</div&g
阅读702018-11-09 10:32:15
MySQL/MariaDB
ibdata1是一个用来构建innodb系统表空间的文件,这个文件包含了innodb表的元数据、撤销记录、修改buffer和双写buffer,时间久了这个文件就会变的非常大。当innodb_file_per_table选项打开,新创建表的数据和索引则不会存在系统表空间中,而是存放在各自表的.ibd文件中。1、备份所有的...
阅读21762018-11-06 11:10:46
Sphinx/Coreseek
source:数据源,数据是从什么地方来的。index:索引,当有数据源之后,从数据源处构建索引。索引实际上就是相当于一个字典检索。有了整本字典内容以后,才会有字典检索。searchd:提供搜索查询服务。它一般是以deamon的形式运行在后台的。indexer:构建索引的服务。当要重新构建索引...
阅读1142018-10-29 21:38:58
Git
gitpushhttps://xxxx.gitmaster本地分支推送到远程gitremoteaddlianshouhttps://xxx.git别名短地址gitpushlianshoumastergitadd修改的代码放入暂存区gitcommit提交到本地仓库gitpush推送到远程ssh-keygen-trsa-Cxxx@xxx.com本地生成sshkeyid_rsa私钥id_rsa.pub公钥git网站中配置这个=...
阅读592018-10-28 15:46:41
Sphinx/Coreseek
Sphinx是一个基于SQL的全文检索引擎,可以结合MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实现专业化的全文检索。Sphinx官网:http://sphinxsearch.com/一、软件环境centos7.2sphinx3.1.1二、安装wgethttp://sphinxsearch.com/files/sp...
阅读6282018-10-26 22:52:37
TNTSearch
TNTSearch GIT库:https://github.com/vanry/laravel-scout-tntsearchjieba -php GIT库:https://github.com/fukuball/jieba-php本文结合结巴分词进行简单介绍一、安装composerrequirevanry/laravel-scout-tntsearchcomposerrequirefukuball/jieba-php二、范例<?php//composerrequ...
阅读6902018-10-18 14:55:05
Elasticsearch
IK插件代码库https://github.com/medcl/elasticsearch-analysis-ik方法一:进入https://github.com/medcl/elasticsearch-analysis-ik/releases 复制zip包地址wgethttps://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.0/elasticsearch-analysis-ik-6.3.0.zip...
阅读802018-10-15 16:21:00