海露的个人博客

海露的个人博客


  • 首页

  • 分类

  • 归档

  • Search

linux安装nginx 配置https

Posted on 2019-12-13 | In 环境部署
安装命令:(一定按照这样操作,不然后面很麻烦)
1
2
3
4
5
6
7
8
9
10
11
12
13
yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

//下载tar包
wget http://nginx.org/download/nginx-1.17.0.tar.gz

##进入nginx目录
cd nginx-1.17.0
## 配置
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

# make
make
make install
Read more »

Redis 哨兵(sentinel)模式集群配置(5.0.5版本)

Posted on 2019-12-01 | In 环境部署
系统环境:CentOS7
服务器2台(1主1从):192.168.31.2(master)192.168.31.3(slave)
redis版本:5.0.5
安装:
  • 进入到目录:cd /usr/local
  • 下载redis:wget http://download.redis.io/releases/redis-5.0.5.tar.gz
  • 下载完成后解压:tar zxvf redis-5.0.5.tar.gz
  • 重命名为redis文件夹:mv redis-5.0.5 redis
  • 进入到redis文件夹:cd redis
  • 编译及安装:make && make install
  • 特别说明:官方文档只给出了make(编译),没有给出make install(安装)
Read more »

Windows/Office 激活及KMS服务器搭建

Posted on 2019-11-28 | In 环境部署
Windows/Office GVLK密钥
Read more »

安装nginx,keeplived,实现双机热备

Posted on 2019-11-22 | In 环境部署

安装nginx

详见《linux安装nginx 配置https》

安装keepalived

1
yum install -y keepalived
Read more »

JS实现如果长时间不动页面,自动跳转到首页面

Posted on 2019-11-21 | In 开发总结
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 如果5分钟不动页面,自动提示 */
var maxTime = 300; // seconds
var time = maxTime;
$('body').on('keydown mousemove mousedown', function(e) {
time = maxTime; // reset
});
var intervalId = setInterval(function() {
time--;
if (time <= 0) {
ShowInvalidLoginMessage();
clearInterval(intervalId);
}
}, 1000)
function ShowInvalidLoginMessage() {
alert("您已经长时间没操作了,即将退出系统");
//TODO 做需要做的操作
//exp:关闭页面
window.close();
}

WINDOWS下的MYSQL安装与卸载

Posted on 2019-11-21 | In 开发总结
安装mysql

以管理员身份运行cmd,进入mysql-5.7.24-winx64\bin目录下,执行

1
mysqld install

发现很容易就提示服务为安装成功了。

Read more »

pull时发面文件冲突的解决之道

Posted on 2019-11-21 | In Git
stash翻译为“隐藏”,如下操作:

git stash
git pull
git stash pop
git diff

Read more »

git查看某个文件的提交历史

Posted on 2019-11-21 | In Git
用法
  • 显示该文件的修改记录
    git log --pretty=oneline 文件名
  • 接下来使用git show显示具体的某次的改动。
    git show <git提交版本号> <文件名>
    如果出面乱码:如:
Read more »

历史流程实例表的id和流程实例id始终是一样

Posted on 2019-11-21 | In 开发总结
历史流程实例表的id和流程实例id始终是一样

历史流程实例表的id和流程实例id始终是一样的。所以Activiti没有提供获取流程实例id的接口;因为直接getId()获取的值和流程实例Id是一样的;

Read more »

linux基本环境配置

Posted on 2019-11-21 | In 环境部署
基本环境配置

在所有服务器上面进行,修改系统语言为英文,退出重新登录即可生效

1
localectl set-locale LANG=en_US.UTF-8

所有服务器配置使用国内阿里云的源

1
2
3
4
5
cd /etc/yum.repos.d/
mkdir repo_bak
mv *.repo repo_bak/
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.aliyun.com/repo/epel-7.repo
Read more »
1234

35 posts
6 categories
18 tags
© 2021 John Doe
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4