Nginx access日志格式如下:
#使用的nginx默认日志格式
$remote_addr - $remote_user [$time_local] “$request” $status $body_bytes_sent “$http_referer” “$http_user_agent” “$http_x_forwarded_for”’
Nginx access 日志…
autoindex : 开启或者禁用 目录列表输出功能
语法: autoindex on | off;
默认: autoindex off;
环境: http, server, location
autoindex_exact_size :对于 HTML 输出格式,指定是否准确的输出文件的大小语法:
autoindex_exact_size on | of…
mysql默认root用户没有密码,输入mysql –u root 进入mysql
1、初始化root密码
进入mysql数据库
mysql>update user set password=PASSWORD(‘123456’) where user=root;
2、允许mysql远程访问,可以使用以下三种方式:
**a…
用于 Office 2019 和 Office 2016 的 KMS 和基于 Active Directory 激活的 GVLK
适用于:Office 2019 和 Office 2016(包括 Project 和 Visio)的批量许可版本
Office 2019 的 GVLK
| Product | GVLK |
| — | — |…
var (
Info *log.Logger
Warning *log.Logger
Error * log.Logger
)
func init(){
errFile,err:=os.OpenFile("errors.log",os.O_CREATE|os.O_WRONLY|os.O_APPEND,...
SSH 服务配置文件介绍
-
位置
/etc/ssh/sshd_config
主要参数
-
Port 22
监听端口
-
Protocal 2
协议版本
-
ListenAddress 0.0.0.0
设置SSHD服务器绑定的IP地址
-
HostKey /etc/ssh/ssh_host_dsa_key
…
FirewallD入门手册
https://www.linuxprobe.com/centos-firewalld.html
FirewallD 是 iptables 的前端控制器,用于实现持久的网络流量规则。它提供命令行和图形界面,在大多数 Linux 发行版的仓库中都有。与直接控制 iptables …
CentOS 7安装Redmine
https://blog.csdn.net/h1101723183/article/details/80954587
环境
- CentOS 7
- MariaDB
- Ruby 2.4.2
- Redmine 3.4.3
- Pum…
CentOS 7 安装 Gitlab
安装基本系统与依赖包
安装 Gitlab 依赖的工具
yum -y update
yum -y groupinstall 'Development Tools'
yum -y install readline readline-devel ncurses-devel gdbm-devel glibc-devel t...