雲端計算學習路線教程大綱課件:部署網校系統 edusoho

千鋒雲端計算發表於2019-11-05

雲端計算學習路線教程大綱課件:部署網校系統 edusoho

雲端計算學習路線教程大綱課件:部署網校系統 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

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

[可選]


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69916964/viewspace-2662786/,如需轉載,請註明出處,否則將追究法律責任。

相關文章