您好,登錄后才能下訂單哦!
云計算學習路線教程大綱課件:部署網校系統 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
[可選]
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。