### 欢迎访问我的博客blog.ayla1688.cool, 原文地址:http://blog.ayla1688.cool/archives/345.html
### 安装依赖
```
yum install -y curl policycoreutils-python-utils openssh-server
```
如果安装 ```policycoreutils-python-utils ``` 失败,就单独执行下安装 ```policycoreutils-python-utils ```
```
网上说 安装依赖执行 yum install -y curl policycoreutils-python openssh-server . centos8没有policycoreutils-python yum源,不用管。
这是不对的,必须要安装 policycoreutils-python依赖才可以
```
### 启动ssh并设置为开机自启动
```
systemctl enable sshd
systemctl start sshd
```
### 添加http服务到firewalld,pemmanent表示永久生效,
```
systemctl start firewalld
firewall-cmd --p