Nginx的几个常用配置和技巧
Nginx / 2019年6月28日

一个站点配置多个域名 server {     listen       80;     server_name  ops-coffee.cn b.ops-coffee.cn; } server_name后跟多...

Nginx与安全有关的几个配置
Nginx / 2019年6月28日

隐藏版本号 http {     server_tokens off; } 经常会有针对某个版本的nginx安全漏洞出现,隐藏nginx版本号就成了主要的安全优化手段之一,当然最重要的是及时升级修复漏洞 开启HTTPS server {     listen 443; &nbsp...

Linux 自动加载 .bashrc (非 root用户)
Linux / 2019年6月26日

经常出现添加一个新用户之后,使用该新用户文件夹,文件等颜色全是白色不区分,需要复制 root 下配置好的 .bashrc 并且需要source  ,退出再次登录后依然需要source; 为新创建用户创建默认.bashrc并自动加载 拷贝默认的.bashrc 进入新用户的根目录并更改用户所属 [root@world-alive:~]#groupadd webapps [root@world...

Let’s Encrypt免费泛域名证书申请
SSL / 2019年6月5日

Let’s Encrypt免费泛域名证书安装步骤如下: 一、首先下载ACME.SH,以下四条命令任选一条即可,醒醒用的是第四条。 curl https://get.acme.sh | sh wget -O - https://get.acme.sh | sh curl https://raw.githubusercontent.com/Neilpang/acme.sh/master/a...

Installation GoAccess On Ubuntu / Debain
工具 , 日志 / 2019年5月20日

Installation Installing GoAccess is pretty easy. Just download, extract and compile it with: $ wget https://tar.goaccess.io/goaccess-1.3.tar.gz $ tar -xzvf goaccess-1.3.tar.gz $ cd goaccess-1.3/ $ ./c...

Oracle 数据库备份 shell 脚本
Oracle , 数据库 / 2019年5月17日

#!/bin/bash #ORACLE信息可以通过 .bash_profile 查看 echo "备份脚本开始启动..." #打印备份进度 export ORACLE_SID=njky export ORACLE_BASE=/oracle/app/oracle export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1 export ...

Elasticsearch 安装问题集锦
Linux / 2019年5月14日

问题一:警告提示 [2016-11-06T16:27:21,712][WARN ][o.e.b.JNANatives ] unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP an...