2018年09月
通过互联网安装ApacheApache在默认的CentOS仓库中可用,安装非常简单。 在CentOS和RHEL上,Apache软件包和服务称为httpd。 要安装软件包,请运行以下命令:sudo yum install httpd安装完成后
通过互联网安装Nginx1、. gcc 安装安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装:yum install gcc-c++2、. PCRE pcre-devel 安装PC
Centos7 修改主机名的方法hostname 查看当前主机名hostname uki 主机名临时生效,机器重启后失效 ;uki可以为任意字符hostnamectl set-hostname uki 主机名永久生效;uki可以为任意字符
CentOS 禁用virbr0虚拟网卡
systemctl disable libvirtd.service //禁用libvirtd服务开机自启动
CentOS6关闭防火墙使用以下命令临时关闭 service iptables stop禁止开机启动 chkconfig iptables offCentOS7关闭防火墙使用以下命令临时关闭
systemctl stop firewall