03 2016 档案

摘要:varnish-4.x之varnishlog,varnishstat,varnishtop,varnishhistvarnishlogman varnishlogman vslman vsl-query数据流groups-g session | request | vxid | raw• T... 阅读全文
posted @ 2016-03-23 08:34 李庆喜 阅读(319) 评论(0) 推荐(0) 编辑
摘要:MariaDB 用户与授权说明:MariaDB的默认用户是存放在mysql库的user表中,当然也可以通过对mysql.user表的增删改查来新增用户,删除用户,修改密码和权限创建用户(jlive)[crashcourse]>CREATE USERa;Query OK, 0 rows affe... 阅读全文
posted @ 2016-03-22 20:41 李庆喜 阅读(780) 评论(0) 推荐(0) 编辑
摘要:MariaDB TRANSACTIONTransaction—Ablock of SQL statementsRollback—Theprocess of undoing specified SQL statementsCommit—Writingunsaved SQL statements ... 阅读全文
posted @ 2016-03-22 20:40 李庆喜 阅读(129) 评论(0) 推荐(0) 编辑
摘要:IHS .kdb转crt,key参考文档:http://www-01.ibm.com/support/docview.wss?uid=swg21395327环境:IHS-7.0.0.27java-1.6一.将IHS 密钥库.kdb导出为.p121.用Ikeyman打开Key文件.kdb转crt... 阅读全文
posted @ 2016-03-22 09:29 李庆喜 阅读(605) 评论(0) 推荐(0) 编辑
摘要:MariaDB TRIGGER在MariaDB中只有DELETE,INSERT,UPDATE支持trigger,并且只支持Table, 不支持View创建trigger(jlive)[crashcourse]>CREATETRIGGER newproduct AFTER INSERT ON p... 阅读全文
posted @ 2016-03-21 20:27 李庆喜 阅读(240) 评论(0) 推荐(0) 编辑
摘要:MariaDB CURSOR示例一:简单创建CURSO并打开,关闭操作DELIMITER //CREATE PROCEDUREprocessorders() BEGIN DECLAREordernumbers CURSOR FOR SELECT order_num FROM orde... 阅读全文
posted @ 2016-03-20 20:58 李庆喜 阅读(292) 评论(0) 推荐(0) 编辑
摘要:MariaDB PROCEDURE创建不带参数的PROCEDUREDELIMITER //CREATE PROCEDUREproductpricing() BEGINSELECT Avg(prod_price) AS priceaverageFROM products; END;//DELIM... 阅读全文
posted @ 2016-03-20 19:49 李庆喜 阅读(165) 评论(0) 推荐(0) 编辑
摘要:MariaDB VIEWVIEW支持UPDATE,INSERT,DELETE ,但虚拟表只上将操作转移到了真正的表上示例一:替换复杂的JOIN(jlive)[crashcourse]>SELECT cust_name, cust_contact, prod_idFROM customers, ... 阅读全文
posted @ 2016-03-20 19:22 李庆喜 阅读(237) 评论(0) 推荐(0) 编辑
摘要:MariaDB表(CREATE,DROP,RENAME,ALTER)InnoDBis atransaction-safe engine (see Chapter 26, “Managing TransactionProcessing”). It does not support full-te... 阅读全文
posted @ 2016-03-19 21:17 李庆喜 阅读(291) 评论(0) 推荐(0) 编辑
摘要:MariaDB INSERT,UPDATE,DELETEINSERT插入一整行(jlive)[crashcourse]>DESC customers;+--------------+-----------+------+-----+---------+----------------+| Fi... 阅读全文
posted @ 2016-03-19 20:50 李庆喜 阅读(362) 评论(0) 推荐(0) 编辑
摘要:MariaDB Full-Text SearchingCREATE TABLE productnotes( note_id int NOT NULL AUTO_INCREMENT, prod_id char(10) NOT NULL, note_date... 阅读全文
posted @ 2016-03-19 19:52 李庆喜 阅读(302) 评论(0) 推荐(0) 编辑
摘要:MariaDB Combined Queries(jlive)[crashcourse]>SELECT vend_id,prod_id, prod_price FROM products WHERE prod_price SELECT vend_id,prod_id, prod_price F... 阅读全文
posted @ 2016-03-19 19:37 李庆喜 阅读(66) 评论(0) 推荐(0) 编辑
摘要:MariaDB JOIN JOIN两张表(jlive)[crashcourse]>SELECT vend_name,prod_name, prod_price FROM vendors, products WHERE vendors.vend_id = products.vend_idORDE... 阅读全文
posted @ 2016-03-19 15:46 李庆喜 阅读(234) 评论(0) 推荐(0) 编辑
摘要:MariaDB Subqueryprod_id ==>order_num(jlive)[crashcourse]>SELECTorder_num FROMorderitems WHERE prod_id = 'TNT2';+-----------+| order_num |+---------... 阅读全文
posted @ 2016-03-19 15:26 李庆喜 阅读(116) 评论(0) 推荐(0) 编辑
摘要:MariaDB Grouping(jlive)[crashcourse]>SELECT vend_id,COUNT(*) AS num_prods FROM products GROUP BY vend_idWITH ROLLUP;+---------+-----------+| vend_i... 阅读全文
posted @ 2016-03-19 14:14 李庆喜 阅读(231) 评论(0) 推荐(0) 编辑
摘要:MariaDB 求和,最大值,最小值,平均数-----------------------------------------------Functions Description-----------------------------------------------AVG() Retu... 阅读全文
posted @ 2016-03-19 13:54 李庆喜 阅读(297) 评论(0) 推荐(0) 编辑
摘要:MariaDB Text,Time,Numeric ManipulationFunction字符操作函数Commonly Used Text-Manipulation Functions---------------------------------------------------Fun... 阅读全文
posted @ 2016-03-19 13:18 李庆喜 阅读(99) 评论(0) 推荐(0) 编辑
摘要:MariaDB Calculated Fields合并查询列(jlive)[crashcourse]>SELECTConcat(RTrim(vend_name), ' (', RTrim(vend_country), ')')AS vend_title FROM vendors ORDER B... 阅读全文
posted @ 2016-03-19 13:06 李庆喜 阅读(107) 评论(0) 推荐(0) 编辑
摘要:MariaDB 正则匹配规则正则" title="MariaDB 正则">----------------------------------------------------------------Class Description-------------------------... 阅读全文
posted @ 2016-03-19 00:03 李庆喜 阅读(285) 评论(0) 推荐(0) 编辑
摘要:MariaDB 条件语句WHEREWHEREClauseOperators Operator Description=EqualityNonequality!=NonequalityGreaterthan>=Greater thanor equal to BETWEENBetween twos... 阅读全文
posted @ 2016-03-18 23:28 李庆喜 阅读(181) 评论(0) 推荐(0) 编辑
摘要:MariaDB SHOW,ANALYZE,CHECKjlive@MacBook-Pro:mariadb_scripts$mysqlWelcome to the MySQL monitor. Commands end with ;or \g.Your MySQL connection id i... 阅读全文
posted @ 2016-03-18 22:34 李庆喜 阅读(341) 评论(0) 推荐(0) 编辑
摘要:varnish-4.x VCL之healthy check更多帮助请man vcl示例:如下是本人测试的示例文件,包含healthcheck申明,director引用, purge aclvcl4.0;importstd;importdirectors;probehealthcheck_ngi... 阅读全文
posted @ 2016-03-18 11:16 李庆喜 阅读(389) 评论(0) 推荐(0) 编辑
摘要:varnish-4.xVCL之directorsman vclman vmod_directors一.引用语法示例:import directors;sub vcl_init { new vdir =directors.random(); vdir.add_backend(backe... 阅读全文
posted @ 2016-03-17 12:24 李庆喜 阅读(303) 评论(0) 推荐(0) 编辑
摘要:varnish-4.xVCL载入--varnishadmman varnishadmTheManagement Interface varnishadmYou can use the varnishadm utility to:• start and stop the cacher (aka ... 阅读全文
posted @ 2016-03-17 11:30 李庆喜 阅读(210) 评论(0) 推荐(0) 编辑
摘要:ike IP_Sec VPN客户端安装(CentOS7/6)官方网站:https://www.shrew.net/download/ikeOS: CentOS7.1x64VPN: ike-2.2.1CentOS6/7实测都能成功1.安装编译依赖库yum -y install cmake ope... 阅读全文
posted @ 2016-03-16 23:15 李庆喜 阅读(5) 评论(0) 推荐(0) 编辑
摘要:varnish-4.xVTL--varnishtestThe Varnish Test Case (VTC) Language• Test against simulated or real backends• Starts real instance of varnishd• Simulat... 阅读全文
posted @ 2016-03-16 17:23 李庆喜 阅读(221) 评论(0) 推荐(0) 编辑
摘要:ike IP_Sec VPN源码安装 OSX官方网站:https://www.shrew.net/download/ike另请参看个人的拙篇ike IP_Sec VPN客户端安装(CentOS7/6)有兴趣的同学可以看看https://lists.shrew.net/pipermail/vpn... 阅读全文
posted @ 2016-03-15 21:43 李庆喜 阅读(2) 评论(0) 推荐(0) 编辑
摘要:MariaDB命令行提示符1.系统变量--MYSQL_PS1export MYSQL_PS1="(\u@\h) [\d]> "2.mysql命令行参数--promptmysql -u root -p --prompt="(\u@\h) [\d]> "3.客户端配置文件[client]promp... 阅读全文
posted @ 2016-03-12 14:43 李庆喜 阅读(481) 评论(0) 推荐(0) 编辑
摘要:MariaDB备份还原修复mysqldump语法:mysqldump [-u username] [-p] database_name[table_name]如:mysqldump -u root -p zabbix >zabbix.sql如果没有指定table_name,会备份指定的data... 阅读全文
posted @ 2016-03-11 21:27 李庆喜 阅读(1068) 评论(0) 推荐(0) 编辑
摘要:MariaDB日志类型日志1.binarylog记录数据库所有修改动作的事件描述,二进制格式,需要和服务器兼容的mysqlbinlog来读取开启方式:[mysqld]log_bin=/opt/mariadb/data/mysql_bin#log_bin=mysql_bin默认也是放在data目... 阅读全文
posted @ 2016-03-11 21:03 李庆喜 阅读(391) 评论(0) 推荐(1) 编辑
摘要:在C++中,vector是一个十分有用的容器,下面根据多篇文章对这个vector做一下总结。1.文件包含首先在程序开头处加上#include以包含所需要的类文件vector,还有一定要加上using namespace std;#include using ... 阅读全文
posted @ 2016-03-08 18:05 李庆喜 阅读(262) 评论(0) 推荐(0) 编辑
摘要:date命令小记https://www.gnu.org/software/coreutils/manual/html_node/Examples-of-date.htmlA.将日期转换为Unix时间戳将当前时间以Unix时间戳表示:[wasadmin@dppvwcsapp01 bin]$ da... 阅读全文
posted @ 2016-03-04 21:00 李庆喜 阅读(157) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示