云计算学习路线教程大纲课件:部署网校系统 edusoho

========================================================

基础环境

update:

[root@aliyun ~]# yum update

[root@aliyun ~]# reboot

epel:

[root@aliyun ~]# yum -y install epel-release

env:

[root@aliyun ~]# yum -y install bash-completion

[root@aliyun ~]# getenforce

Disabled

[root@aliyun ~]# systemctl restart firewalld

[root@aliyun ~]# systemctl enable firewalld.service

Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service.

Created symlink from /etc/systemd/system/basic.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.

[root@aliyun ~]# firewall-cmd --permanent --add-service=http

success

[root@aliyun ~]# firewall-cmd --permanent --add-service=https

success

[root@aliyun ~]# firewall-cmd --permanent --add-port=8080/tcp

success

[root@aliyun ~]# firewall-cmd --reload

success

[root@aliyun ~]# firewall-cmd --permanent --list-all

LAMP环境

[root@aliyun ~]# yum -y install httpd

[root@aliyun ~]# yum -y install php php-cli php-curl php-fpm php-intl php-mcrypt php-mysql php-gd php-mbstring php-xml php-dom

[root@aliyun ~]# yum -y install mariadb-server mariadb

[root@aliyun ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/m/mod_xsendfile-0.12-10.el7.x86_64.rpm

apache:

[root@aliyun ~]# rm -rf /etc/httpd/conf.d/welcome.conf

[root@aliyun ~]# sed -ri 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf

[root@aliyun ~]# systemctl start httpd

[root@aliyun ~]# systemctl enable httpd

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

[root@aliyun ~]# echo "tianyun test" > /var/www/html/index.html

[root@aliyun ~]# ss -an |grep :8080

tcp LISTEN 0 128 :8080 :*

mysql:

[root@aliyun ~]# systemctl start mariadb

[root@aliyun ~]# systemctl enable mariadb

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

[root@aliyun ~]# mysql_secure_installation

[root@aliyun ~]# mysql -uroot -p

MariaDB [(none)]> create database edusoho;

Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| edusoho |

| mysql |

| performance_schema |

+--------------------+

4 rows in set (0.00 sec)

php:

[root@aliyun ~]# vim /etc/php.ini

post_max_size = 1024M

memory_limit = 1024M

upload_max_filesize = 1024M

date.timezone = Asia/ShangHai

[可选]