基于飞腾平台搭建网站@虚风
基于飞腾平台搭建网站
基于D2000芯片 + UOS 操作系统 搭建的网站教程 ,记录自己踩过的坑。最大的难度在于软件源的不一致,导致安装依赖软件失败。
硬件平台
使用的操作系统信息截图
操作代码历史记录 未删减 后期在进行整理,记录是完全重装UOS系统后,安装禅道后,在安装的wordpress,后期进行梳理。
1 apt update
2 ls -la
3 systemctl enable ssh
4 vim /etc/ssh/sshd_config
5 service restart sshd
6 service restart ssh
7 service ssh restart
8 ifconfig -a
9 cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
10 apt install apache2
11 apt install php
12 apt install php-mbstring php-curl
13 cd Downloads/
14 ll
15 ls
16 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
17 apt --fix-broken install
18 apt --fix-broken install
19 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
20 apt --fix-broken install
21 wget -O /etc/apt/sources.list http://repo.huaweicloud.com/repository/conf/Ubuntu-Ports-bionic.list
22 apt-get update
23 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 3B4FE6ACC0B21F32 3B4FE6ACC0B21F32 3B4FE6ACC0B21F32
24 apt-get update
25 apt install apache2
26 apt install php
27 sudo apt autoremove
28 apt install php
29 apt install php-mbstring php-curl
30 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
31 apt --fix-broken install
32 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
33 apache2ctl restart
34 apt --fix-broken install
35 apt install php-server
36 apt install php-mysql
37 etc/init.d/apache2 restart
38 /etc/init.d/apache2 restart
39 vim /etc/php/7.2/
40 vim /etc/php/7.3/apache2/php.ini
41 /etc/init.d/apache2 restart
42 vim /etc/php/7.3/apache2/php.ini
43 aptitude install php7.3-mysql
44 aptitude install php7-mysql
45 aptitude install php5-mysql
46 apt install apache2、mysql、php
47 apt install apache2 mysql php
48 apt-get install php7.0-mysql
49 apt-get install php7.0-mysql
50 phpenmod pdo_mysql
51 cp /etc/apt/sources.list /etc/apt/sources.list.huawei
52 cp /etc/apt/sources.list.bak /etc/apt/sources.list
53 apt update
54 apt-get install php-mysql
55 /etc/init.d/apache2 restart
56 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
57 apache2ctl restart
58 rm -Rf /opt/zentao/
59 ls /opt/
60 dpkg -i ZenTaoPMS_12.5.3_1_all.deb
61 apache2ctl restart
62 apt-get install phpmyadmin -y
63 cp /etc/apt/sources.list.huawei /etc/apt/sources.list
64 apt update
65 apt-get install phpmyadmin -y
66 sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
67 sudo service mysql restart
68 sudo systemctl restart apache2.service
69 ll
70 ls
71 ls
72 unzip wordpress-5.8.1-zh_CN.zip
73 mv wordpress/* /var/www/html/
74 chmod -R 777 /var/www/html/
75 mv /var/www/html/index.html /var/www/html/index~.html
76 /etc/init.d/apache2 restart
77 mysql -u root -p
78 history