千家信息网

在海之舟大数据平台上搭建mysql+php开发平台

发表于:2025-02-06 作者:千家信息网编辑
千家信息网最后更新 2025年02月06日,海之舟服务器操作系统基于国产arm64,3399cpu,分a版,b版,a版内置了大量软件,开发接口范例。操作系统是个.img的文件,在windows7下刷入tf卡,开机即可启动。启动后ssh登陆,操作
千家信息网最后更新 2025年02月06日在海之舟大数据平台上搭建mysql+php开发平台

海之舟服务器操作系统基于国产arm64,3399cpu,分a版,b版,a版内置了大量软件,开发接口范例。

操作系统是个.img的文件,在windows7下刷入tf卡,开机即可启动。启动后ssh登陆,操作界面如下。

配置文件设置开机启动

root@bigdataA:/home/zs# nano /etc/rc.local

su - zs -c'/md1/apache-tomcat-8.5.35/bin/startup.sh'

#sleep 5

#su - zs -c'pgxc_ctl -c /home/zs/pgxc_ctl/pgxc_ctl.conf start all'

#/etc/init.d/apache2 start

#/etc/init.d/mysql start

#/etc/init.d/bind9 start

#/etc/init.d/postgresql start

#/etc/init.d/vsftpd start

#/etc/init.d/xinetd start

#/etc/init.d/ntp start

exit 0

/etc/init.d/apache2 start

/etc/init.d/mysql start

前的#去掉,mysql,apache2,即开机自动启动,

root@bigdataA:/home/zs# netstat -an

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN

tcp 0 256 192.168.1.125:22 192.168.1.6:49733 ESTABLISHED

tcp6 0 0 :::80 ::???? LISTEN

tcp6 0 0 :::22 ::???? LISTEN

udp 0 0 192.168.1.125:123 0.0.0.0:*

udp 0 0 127.0.0.1:123 0.0.0.0:*

udp 0 0 0.0.0.0:123 0.0.0.0:*

udp6 0 0 fe80::a8c4:51ff:fe3:123 ::????

udp6 0 0 ::1:123 ::????

udp6 0 0 :::123 ::????

查看启动情况,80,3306,为apache.mysql的端口。自动启动正常。在浏览器中输入:

http://192.168.1.125/a.php

显示php 正常。

修改/var/www/html/下的文件即可进行php开发。

以下进入数据库

root@bigdataA:/home/zs# mysql -v

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 39

Server version: 10.1.41-MariaDB-0+deb9u1 Debian 9.9

Copyright © 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Reading history-file /root/.mysql_history

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

切换数据库

MariaDB [(none)]> use mysql

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [mysql]>

MariaDB [mysql]> SHOW DATABASES;--------------

SHOW DATABASES

±-------------------+

| Database |

±-------------------+

| information_schema |

| mysql |

±-------------------+

2 rows in set (0.00 sec)

MariaDB [mysql]>

MariaDB [mysql]> CREATE DATABASE example;

CREATE DATABASE example

Query OK, 1 row affected (0.00 sec)

MariaDB [mysql]> SHOW DATABASES;

SHOW DATABASES

±-------------------+

| Database |

±-------------------+

| example |

| information_schema |

| mysql |

±-------------------+

3 rows in set (0.00 sec)

MariaDB [mysql]> use example;

MariaDB [example]>CREATE TABLE student (id int,name varchar(20));

CREATE TABLE student (id int,name varchar(20))

Query OK, 0 rows affected (0.11 sec)

常用命令:

#pwd

/home/zs

root@bigdataA:/home/zs# cd /root

root@bigdataA:~# ls

查看网络配置

root@bigdataA:~# ifconfig -a

eth0: flags=4163 mtu 1500

inet 192.168.1.125 netmask 255.255.255.0 broadcast 192.168.1.255

inet6 fe80::a8c4:51ff:fe3e:aeda prefixlen 64 scopeid 0x20

ether aa:c4:51:3e:ae:da txqueuelen 1000 (Ethernet)

RX packets 4304 bytes 282205 (275.5 KiB)

RX errors 0 dropped 3683 overruns 0 frame 0

TX packets 335 bytes 35961 (35.1 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

device interrupt 24

lo: flags=73 mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10

loop txqueuelen 1 (Local Loopback)

RX packets 8 bytes 490 (490.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 8 bytes 490 (490.0 B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4098 mtu 1500

ether 28:ed:e0:62:54:0c txqueuelen 1000 (Ethernet)

RX packets 0 bytes 0 (0.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 0 bytes 0 (0.0 B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@bigdataA:~#

可看到预置的软件,启用即可。

root@bigdataA:/home/zs# nano /etc/rc.local

su - zs -c'/md1/apache-tomcat-8.5.35/bin/startup.sh'

#sleep 5

#su - zs -c'pgxc_ctl -c /home/zs/pgxc_ctl/pgxc_ctl.conf start all'

#/etc/init.d/apache2 start

#/etc/init.d/mysql start

#/etc/init.d/bind9 start

#/etc/init.d/postgresql start

#/etc/init.d/vsftpd start

#/etc/init.d/xinetd start

#/etc/init.d/ntp start

exit 0

文件 数据 开发 操作系统 数据库 系统 软件 配置 平台 命令 国产 常用 情况 接口 服务器 浏览器 界面 端口 网络 范例 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 网络安全教育校园广播 兵马俑互联网科技有限公司 乐游互联网科技有限公司 准备上市的网络安全公司 网络安全进入军营 如何进行数据库权限管理 湖州企业软件开发创新服务 你要做什么样的数据库 src网络安全上是什么意思 阿里云可以架设海外服务器吗 er图转化为数据库物理模型 内蒙古诚信网络技术咨询联系人 最新软件开发排行 wps编辑图表数据库 教务管理选课服务器 服务器发RST包阻止连接服 数据库安全保护实验报告 计算机的网络技术什么意思 登录注册实现连接数据库jsp 希捷服务器硬盘可以当普通硬盘 本科毕业设计题目网络安全 网络安全体系结构有哪些 汉中5g软件开发培训技校 电商系统用什么软件开发好 江西pdu服务器电源哪个牌子好 最新软件开发排行 网络安全语录经典短句 idc自动开发云数据库 学计算机网络技术将来干什么 没有网络安全就没有人民幸福
0