1、rpm ? rpm -ivh
2、yum倉庫(rpm包):網絡源 ? ?----》網站 ? ? ??
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?本地源 ? ----》/dev/sr0 ? 光盤映像文件
3、源碼安裝
源碼安裝(編譯)
1、獲取源碼
2、檢測環境生成Makefile: ? ./configure ??
2、編譯:make
3、安裝: ?make ?install
-------------------------
4、搭建web頁面
httpd ? ?:服務器端的軟件,提供web頁面
端口:一臺計算機上有多個軟件,每個軟件都有唯一的端口號
端口正在監聽--》說明該服務正在工作
ip:99
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
[root@localhost ~]# yum ? ?install ?httpd ?-y?
[root@localhost ~]# systemctl ?start ?httpd
[root@localhost ~]# netstat -lntup | grep httpd
[root@localhost ~]# echo "test ?page" ?> /var/www/html/index.html
[root@localhost ~]# vim /etc/httpd/conf/httpd.conf
Listen 80
[root@localhost ~]# systemctl ?restart ?httpd
[root@localhost ~]# netstat -lntup | grep httpd
win測試: ?http://192.168.50.128:99
C:\Users\TT>curl ? 192.168.50.130:99
test ?page
開始搭建
項目一:網盤搭建
```bash
[root@localhost nextcloud]# mount ?/dev/sr0 ??/mnt
[root@localhost nextcloud]# systemctl stop firewalld.service
[root@localhost nextcloud]# setenforce 0
[root@localhost nextcloud]# yum install httpd
[root@localhost nextcloud]# yum install php php-fpm
[root@localhost nextcloud]# systemctl start ??httpd
[root@localhost html]# vim /etc/httpd/conf/httpd.conf
[root@localhost /]# cd /var/www/html/
[root@localhost html]# tar -xf latest.tar.bz2
[root@localhost html]# chown apache:apache ?/var/www/html/nextcloud/ -R
[root@localhost html]# yum install php-pecl-zip.x86_64 mariadb- server -y? php-gd.x86_64
[root@localhost html]# systemctl start mariadb.service
[root@localhost html]# mysql
Welcome to the MariaDB monitor. ?Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.5.16-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> alter user root@localhost ??identified by 'mypasswd123';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> create database wangpan;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> show databases;
[root@localhost html]# yum install php-mysqlnd.x86_64
#win瀏覽器測試:http://192.168.50.130:89/nextcloud
你添加的用戶數據可以在數據庫里查看到:
[root@localhost files]# mysql ?-uroot -p
Enter password:
MariaDB [(none)]> show databases;
MariaDB [(none)]> use wangpan;
MariaDB [wangpan]> show TABLES;
最后出現這個頁面:
```