CentOS7

Centos 7 安装图形界面

  1. 先安装X Window System

yum groupinstall "X Window System"

  1. 安装图形用界面gnome

yum groupinstall "GNOME Desktop"

  1. 设置centos系统默认的启动方式

systemctl set-default multi-user.target //设置成命令模式

systemctl set-default graphical.target //设置成图形模式

标签

Centos7 让mariaDB支持UTF8

编辑 vi /etc/my.cnf 

添加如下内容,支持UTF8
[client]
default-character-set = utf8mb4

[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix

character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
skip-character-set-client-handshake

[mysql]
default-character-set = utf8mb4

在CentOS 7.X 上安装PHP 7.X

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum -y install yum-utils

yum-config-manager --enable remi-php71   [Install PHP 7.1]
 yum-config-manager --enable remi-php72   [Install PHP 7.2]

 yum -y install php php-mcrypt php-cli php-gd php-curl php-mysql 

 php -v

标签
订阅 CentOS7