标签 ispconfig 下的文章

本文章将展示如何安装一个提供 ISPConfig 3 的基于 CentOS 7 的服务器,ISPConfig 3是一个网页服务器控制面板工具,通过它,你可以通过网页浏览器管理以下这些软件:nginx 网页服务器、postfix 邮件服务器、mysql 数据库服务器、BIND 域名解析服务器、pureFTPd 文件服务器、SpamAssassinClamAVMailman等,从 ISPConfig 3 开始,其已经可以完美支持Nginx服务器了。

第一步:下载 CentOS 7 安装镜像

你可以通过下面这两个链接地址下载该镜像:

我你爱我吗的是最小安装版,然后按自己的需要安装。

第二步:安装说明

我是在我的 MacbookPro 上面跑Parallels Desktop 虚拟机安装的 CentOS 7,其IP地址为:10.211.55.6,使用域名 centos7.localserver.com 域作为主机名。

第三步:安装编辑器编辑 /etc/hosts

若你喜欢使用 nano 编辑器,使用以下命令安装:

yum -y install nano

安装 wget 工具:

yum -y install wget

我使用的是 vi ,所以就不安装其它的编辑器了,在以下的所有步骤里面,我也将全部都使用 vi 编辑文件。

设定 /etc/hosts

vi /etc/hosts

内容如下:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
10.211.55.6 centos7.localserver.com
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

设置 hostnamecentos7.localserver.com

echo 'centos7.localserver.com' > /etc/hostname

第四步:安装并配置一些基本的网络防火墙管理软件

若您只想使用CentOS默认的防火墙软件,则可以直接跳过此步。

关闭并禁用 CentOS 默认的 Firewall 软件:

systemctl stop firewalld.service
systemctl disable firewalld.service

运行结果如下:

[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'

使用以下命令查看当前的 Firewall 状态:

firewall-cmd --state

运行结果如下:

[root@localhost ~]# firewall-cmd --state
not running

接着安装新的软件:

yum -y install net-tools NetworkManager-tui

第五步:关闭 SELinux

Selinux 是CentOS的一个安装性扩展,我个人感觉一般都用不着该扩展,启用他,还会给我们系统的使用和管理带来很多麻烦的事儿,所以,我一般都直接关闭该扩展。关闭该扩展只需要将 /etc/selinux/config 中的 SELINUX 项设置为 disabled 即可:

vi /etc/selinux/config

作如下设定:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

保存修改之后,还必须重启一次系统:

reboot