Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build a mysql+php development platform on the Haizhouzhou big data platform

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Haizhizhou server operating system is based on domestic arm64,3399cpu, sub-version a, version b, version a built-in a large number of software, development interface examples.

The operating system is an .img file. Swipe the TF card under windows7 and boot. Log in to ssh after startup, the operation interface is as follows.

Configuration file settings boot boot

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

...

Su-zs-cantilever hammer MD1Universe apachelytomcatcatMet 8.5.35Universe bintup.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

Put

/ etc/init.d/apache2 start

/ etc/init.d/mysql start

Remove the front #, mysql,apache2, that is, boot automatically.

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. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0

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 purl 123 0.0.0.0 *

Udp 0 0127.0.0.1purl 123 0.0.0.0purl *

Udp 0 0 0.0.0. 0. 0. 0. 0. 0. 0. 0. 12. 0. 0. 0. 0. 0

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

Udp6 0 0:: 1:123::?

Udp6 0 0: 123::?

Check the startup status, 80d3306, the port of apache.mysql. Automatic start is normal. Enter in the browser:

Http://192.168.1.125/a.php

Shows that the php is normal.

Modify the file under / var/www/html/ for php development.

Enter the database as follows

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.

Switch database

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)

...

Common commands:

# pwd

/ home/zs

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

Root@bigdataA:~# ls

View network configuration

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.1KiB)

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.0B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 0 bytes 0 (0.0B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Root@bigdataA:~#

You can see the preset software, just enable it.

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

...

Su-zs-cantilever hammer MD1Universe apachelytomcatcatMet 8.5.35Universe bintup.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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report