一.MQ基本操作 MQ中有几个很重要的组件:队列管理器(QueueManager)、队列(Queue)和通道(Channel)。其基本的操作方法如下: 1)创建队列管理器 crtmqm –q QMgrName -q是指创建缺省的队列管理器 2)删除队列管理器 dltmqm QmgrName 3)启动 ...
分类:
其他好文 时间:
2018-08-28 14:12:47
阅读次数:
5229
题目描述 给定两个整数 n 和 k,返回 1 ... n 中所有可能的 k 个数的组合。 示例: 解题思路 回溯法,每次遍历到一个元素分为放入与不放入集合两种情况,若集合长度为k,则加入到结果中。 代码 ...
分类:
其他好文 时间:
2018-08-28 13:04:34
阅读次数:
129
wxml如下: 这武器那都好,就是不吃药只能战斗15秒,15秒内不是你死就是我亡,这才是90级史诗该有的王者风范! wxss如下: .srcoll_view{ position: absolute; top:0rpx; height: 100rpx; font-size: 30rpx; white-... ...
分类:
微信 时间:
2018-08-28 13:00:49
阅读次数:
304
一、redis 五大类型: redis 键 keys * exists key的名字,判断某个key 是否存在 move key db 当前数据库就没有了,被移除了 ttl key 查看还有多少秒过期,-1表示永不过期,-2表示已过期 type key 看看你的key是什么类型redis 字符串 s ...
分类:
其他好文 时间:
2018-08-28 12:12:26
阅读次数:
239
配置firewalld,iptables,关闭SELINUX 1、安装必要的编译环境好 由于Tengine安装需要使用源代码自行编译,所以在安装前需要安装必要的编译工具: yum -y updateyum -y install gcc gcc-c++ bzip2 perl curl curl-dev ...
分类:
其他好文 时间:
2018-08-28 11:28:33
阅读次数:
264
There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent ...
分类:
其他好文 时间:
2018-08-28 10:37:14
阅读次数:
148
参考: https://docs.nginx.com/nginx/admin-guide/web-server/compression/ server { gzip on; gzip_types text/plain text/css application/xml application/x-ja ...
分类:
其他好文 时间:
2018-08-28 10:30:30
阅读次数:
138
1 public class Main{ 2 public static void main(String args[]){ 3 String s="ahkjdfnajk321anbkjdfbnjakfdkja4213746187"; 4 s=s+"."; 5 int n=s.length(); 6... ...
分类:
其他好文 时间:
2018-08-28 01:05:11
阅读次数:
160
poscms系统本身有一个在查询页(search页面)实现的查询分页功能,基于系统封装的php函数dr_search_url() 但是今天的需求除了导航栏、列表页、详情页都实现查询功能外,关键是有两个不同的模块,模块不同,如果用 系统的search的话,那就得弄两个search页面出来,其实搜索结果 ...
分类:
其他好文 时间:
2018-08-28 01:03:51
阅读次数:
260
1、为集群添加一个主节点 首先准备一个全新的redis文件夹,这里我们叫做为7007 启动7007的redis,然后添加7007的节点 [root@CentOS7 ~]# cd /usr/local/redis-cluster/7007[root@CentOS7 7007]# ./redis-ser ...
分类:
其他好文 时间:
2018-08-27 23:19:33
阅读次数:
223