Linux的搭建:
采用宝塔的部署工具安装centos7以上的系统然后安装完成后配置yum源和防火墙关闭selinux
宝塔的下载连接:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
配置yum源:
[root@test ~]# cd /etc/yum.repos.d/
[root@test yum.repos.d]# rm -rf *
[root@test yum.repos.d]# systemctl stop firewalld
[root@test yum.repos.d]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@test yum.repos.d]# sed -i 's/SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
[root@test yum.repos.d]# setenforce 0
[root@test yum.repos.d]# getenforce
Permissive
[root@test yum.repos.d]#
然后关闭该窗口
输入:
[root@test yum.repos.d]# yum clean all ; yum makecache
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up everything
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
(1/10): base/7/x86_64/group_gz | 165 kB 00:05
(2/10): base/7/x86_64/primary_db | 6.0 MB 00:00
(3/10): base/7/x86_64/filelists_db | 7.3 MB 00:05
(4/10): base/7/x86_64/other_db | 2.6 MB 00:00
(5/10): extras/7/x86_64/filelists_db | 207 kB 00:00:05
(6/10): extras/7/x86_64/primary_db | 153 kB 00:00:05
(7/10): extras/7/x86_64/other_db | 100 kB 00:00:00
(8/10): updates/7/x86_64/filelists_db | 2.1 MB 00:00:05
(9/10): updates/7/x86_64/primary_db | 2.8 MB 00:00:05
(10/10): updates/7/x86_64/other_db | 237 kB 00:00:00
Determining fastest mirrors
Metadata Cache Created
[root@test yum.repos.d]#
[root@test yum.repos.d]# yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装完成
修改账户用户:
修改账号密码:
访问主页:
rm -f /www/server/panel/data/admin_path.pl
访问:
等待安装:
安装完成:
安装完成后创建网站:根据自己的ip进行测试:
搭建完成:
上传wordpress: