ibm_system 3650安装

来源:互联网 发布:非线性最优化确定参数 编辑:程序博客网 时间:2024/05/01 11:04

1.配置好raid5

BIOS进行设置就好了。略

2.安装CentOS系统


3.更新系统

[zxrt@mail ~]$ sudo yum install epel-release -y[zxrt@mail ~]$ sudo yum update[zxrt@mail ~]$ sudo yum upgrade -y

4.安装vim

[zxrt@mail ~]$ sudo yum install vim -y

配置vim

[zxrt@mail ~]$ sudo vim /etc/vimrc

添加以下内容:

set numberset showmatchsyntax onhighlight Comment ctermfg=LightCyanset wrapset smartcase

5.安装mariadb

[zxrt@mail ~]$ sudo yum install mariadb mariadb-server -y

启用mariadb服务

[zxrt@mail ~]$ sudo systemctl start mariadb
设置mariadb为默认启动

[zxrt@mail ~]$ sudo systemctl enable mariadb

mariadb初始化设置

[zxrt@mail ~]$ sudo mysql_secure_installation

根据提示进行操作,主要是设置root密码以及删除无用的数据库和用户。

6.安装httpd

[zxrt@mail ~]$ sudo yum install httpd -y[zxrt@mail ~]$ sudo systemctl start httpd[zxrt@mail ~]$ sudo systemctl enable httpd


httpdapache服务。

7.安装nginx

[zxrt@mail ~]$ sudo yum install nginx -y[zxrt@mail ~]$ sudo systemctl start nginx[zxrt@mail ~]$ sudo systemctl enable nginx


注意,httpdnginx由于默认的端口均为80,建议只开启一个。

8.selinx设置

[zxrt@mail ~]$ sudo vim /etc/selinx/config


第七行,修改为:

SELINUX=disabled

如果要马上生效,执行以下语句:

[zxrt@mail ~]$ sudo setenforce 0


9.firewalld设置

[zxrt@mail ~]$ firewall-cmd –add-service=http[zxrt@mail ~]$ firewall-cmd –add-service=https[zxrt@mail ~]$ firewall-cmd –add-service=smtp[zxrt@mail ~]$ firewall-cmd –add-service=pop3[zxrt@mail ~]$ firewall-cmd –add-service=ftp[zxrt@mail ~]$ firewall-cmd –add-service=imap


10.安装php-fpm

[zxrt@mail ~]$ sudo yum install -y php php-mbstring php-pearphp-fpm

修改配置:

[zxrt@mail ~]$ sudo vim /etc/php-fpm.d/www.conf

39行,41行,把默认的apache改为nginx

[zxrt@mail ~]$ sudo systemctl start php-fpm[zxrt@mail ~]$ sudo systemctl enable php-fpm


测试php是否支持

[root@mail zxrt]# echo "<?php phpinfo() ?>" >/usr/share/nginx/html/info.php

访问:http://192.168.0.205/info.php,可以正常访问

192.168.0.205是我服务器的内网地

0 0
原创粉丝点击