Skip to content

Commit

Permalink
更新部分内容
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliang-ms committed Nov 22, 2023
1 parent ee55630 commit f1d1ed8
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 3 deletions.
23 changes: 22 additions & 1 deletion 1.Linux基础/1.4软件更新/04升级openssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,30 @@ sed -i "s;Type=notify;#Type=notify;g" /usr/lib/systemd/system/sshd.service
systemctl daemon-reload && systemctl restart sshd
```

查看ssh服务是否健康

```shell
journalctl -xef -u sshd
```

启动时,如果报`sshd: no hostkeys available — exiting`错误,执行以下步骤修复

```shell
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/*
```

重启ssh

```shell
systemctl restart sshd
```

成功后关闭`telnet`

```bash
systemctl disable telnet.socket --now
systemctl disable xinetd --now
```
```

Empty file.
7 changes: 7 additions & 0 deletions 1.Linux基础/ssl/ssl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## 查看目标地址套件列表

```shell
openssl s_client -connect <IP:PORT> -tls1_2
```

https://blog.csdn.net/zclmoon/article/details/132219226
2 changes: 2 additions & 0 deletions 3.集成部署/es/es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


8 changes: 7 additions & 1 deletion 3.集成部署/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,4 +483,10 @@ keepalive与断开连接

> 示例图
![request-flow.png](https://upload-images.jianshu.io/upload_images/1967881-0f25f669eea357c2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![request-flow.png](https://upload-images.jianshu.io/upload_images/1967881-0f25f669eea357c2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

### 安全配置

```shell
more_set_headers "X-Content-Type-Options nosniff";more_set_headers "Content-Security-Policy frame-ancestors http://hs.192.168.174.71.nip.io:30933 http://tpd.10.9.20.42.nip.io:30750;default-src *;style-src 'self' http://192.168.174.69:30459 http://192.168.174.106:8088 'unsafe-inline';script-src 'self' http://192.168.174.69:30459 http://192.168.174.106:8088 'unsafe-inline' 'unsafe-eval';img-src * data:;worker-src * blob:;font-src 'self' http://192.168.174.69:30459 http://192.168.174.106:8088 http://at.alicdn.com data:;"; more_set_headers "Access-Control-Allow-Origin http://192.168.174.69:30459";more_set_headers "Access-Control-Allow-Methods GET, POST, PUT, DELETE, OPTIONS";
```
18 changes: 17 additions & 1 deletion 3.集成部署/python/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## Python3.6

yum install -y python36 python36-pip python36-devel
yum install -y python36 python36-pip python36-devel

## Python3.7

1.下载源码包:https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tgz

2. 安装编译依赖

```shell

```

3. 编译安装

```shell
yum -y install make gcc zlib-devel gcc-c++ openssl-devel
```

0 comments on commit f1d1ed8

Please sign in to comment.