- centos7.6 版本无基础命令 ip addr(ip addr command not found)
解决: yum -y install initscripts
- docker中安装完httpd服务后,使用命令systemctl start httpd.service,发现报错,错误信息:Failed to get D-Bus connection: Operation not permitted
解决:使用命令docker run -d -name centos7 --privileged=true centos:7
/usr/sbin/init创建容器,然后使用docker exec -it centos7 /bin/bash进入容器
–privileged : give extended privileges to this container 授予此容器扩展权限
- centos7命令补全
yum install bash-completion bash-completion-extras
退出,重新启动
- nginx/1.16.1 访问返回403错误
原因:缺失index.html 文件,重新创建一个即可