我们看到还有一个 docker.socket 不是开机启动的,它和 docker.socket 的关系如下
启动nginx,作为一个后端的web服务器 [root@h102 nginx]# sbin/nginx -t -c conf/nginx.conf the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok configuration file /usr/local/nginx/conf/nginx.conf test is successful [root@h102 nginx]# sbin/nginx -c conf/n
connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@7a450ea8
Nginx 很大的一个作用就是作为web前端进行负载均衡和反向代理,但负载均衡的一个关键点就是状态检查,因为不能把请求分配给有故障的后端服务器
创建序列 因为是使用的etcd序列,所以确保了有序性 [root@docker ~]# curl http://127.0.0.1:2379/v2/keys/queue -XPOST -d value=Job1 {"action":"create","node":{"key":"/queue/00000000000000000055","value":"Job1","modifiedIndex":55,"createdIndex":55}} [root@docker ~]# curl http://127.
If the option allows two sets of ranges, they can be specified with a ','or'/' delimiter: 1k-4k/8k-32k IO'stodobeforegettinganewoffset,thisisdonebyappendinga':<nr>'totheendofthestringgiven.Forarandomread,itwouldlooklike'rw=randread:8' ,youwouldgetanewrandomoffsetforevery8IO's. The result would be a seek for only every 8 IO's,insteadofforeveryIO.Userw=randread:8tospecifythat.AssequentialIOisalreadysequential identical'behavesinasimilarfashion,exceptitsendsthesameoffset8numberoftimesbeforegeneratinganewoffset.kb_base
Nginx操作 nginx的目录结构 [root@h102 local]# tree /usr/local/nginx/ /usr/local/nginx/ ├── conf │ ├── fastcgi.conf │ ├── fastcgi.conf.default │ ├── fastcgi_params │ ├── fastcgi_params.default │ ├── koi-utf │ ├── koi-win │ ├── mime.types │ ├── mime.
开启RabbitMQ 应用 [root@h102 rabbitmq]# rabbitmqctl status Status of node rabbit@h102 ... [{pid,5596}, {running_applications,[{xmerl,"XML parser","1.2.10"}, {sasl,"SASL CXC 138 11","2.1.10"}, {stdlib,"ERTS CX
root@h101 memcached-1.4.24# netstat -ant | grep 12345
检查状态 [root@h102 codis]# ps faux | grep codis | grep -v grep root 35057 1.5 2.5 448184 49352
也可以使用 DNS API 获取整个 address/port 信息,只要加上 SRV
停止 [root@h102 bin]# ./mycat stop Stopping Mycat-server... Stopped Mycat-server. [root@h102 bin]# ---- 命令汇总 java -version wget https://github.com/MyCATApache/Mycat-download/raw/master/1.5-GA/Mycat-server-1.5-GA-20160217103036-linux.tar.gz tar -xzvf Myca
安装报错一 [root@h101 snort-2.9.7.6]# ./configure --enable-sourcefire checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk
使用 --allow-unsafe-shutdown 开启 Logstash 可以在中途强制关闭 Logstash ,会丢失数据
附加数据库 sqlite可以对多个数据库(多个文件)进行操作 sqlite> .databases seq name file --- --------------- ---------------------------------------------------------- 0 main /usr/local/sqlite3.11/
systemctl set-default multi-user.target 可以用来将默认(开机启动后)运行级别设定为3
conf/examples/example.conf 是一个配置模板,默认系统会读取 conf/unrealircd.conf 中的配置
勾选关联文件 (8)选择开始菜单,默认即可,单击“Next”按钮 ? (9)安装完成,单击“Finish” ? (8)版本控制 ? ? (9)测试工具 ? (10)应用服务器 ? (11)云,全部取消。 ? (12)禁用Swing ? (13)其他工具,此处保留UML ?
如果在匿名函数内,使用了外部环境的变量,就构成了一个闭包。简单来讲就是一个函数内,使用匿名函数来操作函数内声明的变量。
字符串函数 函数 功能 strlen(str1) 获取str1字符串的长度 strcpy(str1, str2) 将str2内容复制到str1中 strcat(str1, str2) 将str2连接到str1后面 strcmp(str1, str2) 比较字符串,如果一致返回0,str1大于str2返回正数,str1小于str2返回负数 strchr(str1, str2) 在str1查找str2第一次出现的位置,返回该位置的指针 strstr(str1, str2) 在str1查找str2第一次出现的位置