-
mysql 锁表解锁表
发布于:2017-03-15 作者:Garany 评论(0) 引用(0) 浏览(2683) 分类:破万卷书
一:锁表(锁定数据表,避免在备份过程中,表被更新) 1.为表增加一个读锁定 mysql >LOCK TABLES tbl_name READ; 2.为表增加一个写锁定 mysql >LOCK TABLES tbl_name WRITE; 3.查询哪些表正在被锁状态 mysql >show OPEN TABLES where In_use > 0; 二:mysql解锁 1.查询进程 mysql >show processlist; 2.杀掉进程 mysql >kill ID; 或者: mysql>UNLOCK TABLES; 补充: 查看...
-
linux内核升级
发布于:2017-01-09 作者:Garany 评论(1) 引用(0) 浏览(1777) 分类:破万卷书
一、yum 安装内核 1.导入签名的key # rpm –-import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 2.添加yum源 # yum install -y http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm //添加CentOS 6.0 yum源 # yum install -y http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm //添加CentOS 7.0 yum源 3.安装内核 # yum --enablerepo=elrepo-ker...
-
使用 Let’s Encrypt 为 nginx+tomcat 开启 https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1387) 分类:破万卷书
有关 Let’s Encrypt 详细请参看本站另一篇博文 一、生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ # ./letsencrypt-auto --debug certonly --email gxxxxy@163.com --standalone -d ssl.xxxxx.com # echo $? 二、修改tomcat server.xm # vim /tomcat_PATH/conf/server.xml <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redire...
-
使用Let’s Encrypt为nginx开启https
发布于:2016-12-20 作者:Garany 评论(0) 引用(0) 浏览(1149) 分类:破万卷书
一、首次生成证书 # git clone https://github.com/letsencrypt/letsencrypt # cd letsencrypt/ 二、域名认证 # ./letsencrypt-auto --debug certonly --webroot --email garany@qq.com -d ssl.junc.wang -w /var/www/wordpress/ 说明: --webroot 用web服务根目录方式认证 ./letsencrypt-auto --debug certonly --email you.email --webroot -w /var/www/example -d example.com -w /var/www/thing -d thing.net -d m.thing.net --apache web服务是apache的使...
最新微语
最新文章
链接
最新评论
- EdwardSoype 说:
十字路口,我们分着走。你走我的泪,... - 热搜 说:
文章还不错支持一下 - 头条 说:
文章非常好超喜欢 - 新闻头条 说:
文章非常好超喜欢 - 今日头条新闻 说:
文章还不错支持一下