Tongxin UOS installs mysql database (mariadb) - Tongxin UOS installs JDK - Tongxin UOS installs nginx (with installation package)

Tongxin UOS offline complete installation tutorial (hands-on tutorial)

Various offline complete installation tutorials of Galaxy Kylin: https://blog.csdn.net/ACCPluzhiqi/article/details/131988147

1. Install mysql (mariadb) on Tongxin UOS desktop system
2. Install JDK on Tongxin UOS desktop system
3. Install nginx on Tongxin UOS desktop system

I haven’t seen any unit using the Tongxin UOS server operating system at present, and it’s basically the Galaxy Kylin server version,
so I won’t introduce the Tongxin UOS server system here
anyway. used ha

Check the CPU architecture first before installing

Before installation, check the CPU architecture first, and install it according to different architecture packages (all architecture installation packages are attached at the bottom)

Check the architecture (amd64, arm64, mips64, loongarch) and download different architectures according to different architectures

 uname -a

As shown below:
insert image description here

Tongxin UOS desktop system installs mysql database (mariadb)

To install MySQL offline on the UOS desktop system, you need to follow the steps below:

1. Download the MySQL DEB package: (there is a version CPU package download at the bottom)

First, you need to download the MySQL DEB installation package on another computer connected to the Internet. You can go to the MySQL official website or other reliable software download websites to download the MySQL DEB installation package suitable for your operating system version.

2. Transfer the DEB package to the Tongxin UOS desktop system:

Transfer the downloaded MySQL DEB package to the Tongxin UOS desktop system. You can use a U disk, a mobile hard disk or transfer the file to the Unicom UOS desktop system.

3. Install the MySQL DEB package:

Open a terminal window and install the MySQL DEB package with the following command:

sudo dpkg  -i /path/to/*.deb

Replace /path/to/it with the file path of the MySQL DEB package you downloaded. After executing this command, the system will start to install MySQL and display the installation progress

4. Configure MySQL (generally not modified by default, unless you understand these configurations very well)

After the installation is complete, you need to configure MySQL. You can modify the MySQL configuration file to suit your needs. The configuration file of MySQL is usually located in the /etc/my.cnfor /etc/mysql/my.cnfpath.

5. Start MySQL:

Start the MySQL service with the following command in the terminal:

sudo service mysql start

If all is well, the MySQL service will be up and running.

Now you have successfully installed the MySQL DEB package offline in the Tongxin UOS desktop system. You can use the MySQL client to connect and operate the MySQL database

6. Login to mysql

insert image description here
There is no password by default, if it is set, just enter the password

7. Change your password

mysql -u root -e "use mysql; update user set authentication_string = password('phOTy1PgA_oXGtmd'), password= password('你要设置的密码'),password_expired = 'N'  where user = 'root';"
#修改登录
mysql -u root -e "use mysql; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你设置的密码' WITH GRANT OPTION; FLUSH PRIVILEGES; "
#重启mysql
service  mysql restart
#设置为自启动 
systemctl enable  mysql 

8. Uninstall the old version

What should I do if the installation is wrong or an old version already exists?
View the wrong installed version and dependencies:

dpkg --list|grep mysql

然后一次卸载

sudo apt-get --purge remove mysql-server

卸载完成后继续安装. . .

Install JDK on Tongxin UOS desktop system

To install JDK offline on the Unicom UOS desktop system, you can follow the steps below:

1. Download the JDK DEB package

: On another computer connected to the Internet, you can visit the Oracle official website or other trusted software download websites, and download the JDK DEB installation package for your operating system version. Please make sure that you download the version suitable for Tongxin UOS desktop.

2. Transfer the DEB package to the Tongxin UOS desktop system:

Copy the downloaded JDK DEB package to the Tongxin UOS desktop system using a USB flash drive, a mobile hard disk, or through network transmission.

3. Install the JDK DEB package:

Open a terminal and use the following command to install the JDK RPM package:

sudo dpkg -i /path/to/*.deb

Replace /path/to/it with the file path of the JDK DEB package you downloaded. After executing this command, the system will start to install JDK and display the installation progress.

4. Configure environment variables: (generally no configuration is required, unless you have special path requirements)

After the installation is complete, you need to configure the JDK environment variables so that the system can find the JDK. Open a terminal, edit ~/.bashrcthe file or /etc/profilefiles, and add the following:

export JAVA_HOME=/usr/java/jdk(你的JDK安装路径)
export PATH=$JAVA_HOME/bin:$PATH

After saving the file, execute the following command to make the environment variable take effect:

source ~/.bashrc

5. Verify the installation:

Enter the following command in the terminal to check whether the JDK is successfully installed:

java -version

If the installation is successful, the JDK version information will be displayed.

Now you have successfully installed the JDK DEB package offline in the Tongxin UOS desktop system. You can run Java applications on the Tongxin UOS desktop system

Install nginx on Tongxin UOS desktop system

To install Nginx offline on the Tongxin UOS desktop system, you can follow the steps below:

1. Download the Nginx DEB package

: On another computer connected to the Internet, you can visit the Nginx official website or other trusted software download sites, and download the Nginx DEB installation package for your operating system version. Please make sure you download the version suitable for Tongxin UOS desktop system.

2. Transfer the DEB package to the Tongxin UOS desktop system:

Copy the downloaded Nginx DEB package to the Tongxin UOS desktop system by using a USB flash drive, a mobile hard disk, or through network transmission.

3. Install the Nginx DEB package:

Open a terminal and install the Nginx DEB package with the following command:

sudo dpkg -i /path/to/*.deb

Replace /path/to/it with the file path of the Nginx DEB package you downloaded. After executing this command, the system will start to install Nginx and display the installation progress.

4. Start the Nginx service:

After the installation is complete, start the Nginx service with the following command:

sudo systemctl start nginx

If all is well, the Nginx service will be up and running.

5. Verify the installation:

Open a web browser and enter the server's IP address (127.0.0.1) or domain name to see if you can access the Nginx welcome page. If you can see the welcome page of Nginx, the installation is successful.

Now you have successfully installed the Nginx RPM package offline on the Tongxin UOS desktop system. You can host and manage websites and applications by configuring Nginx.

The offline installation package for all architectures of the Tongxin UOS desktop system
can be downloaded according to the CPU of your computer:

Desktop system offline installation package:

Tongxin UOS desktop system nginx offline deb installation package (Zhaoxin-Haiguang-intel-AMD-X86)
https://download.csdn.net/download/ACCPluzhiqi/88083740

Tongxin UOS desktop system JDK offline deb installation package (Zhaoxin-Haiguang-intel-AMD-X86)
https://download.csdn.net/download/ACCPluzhiqi/88083735

Tongxin UOS desktop system mysql5.7 database offline deb installation package (Zhaoxin-Haiguang-intel-AMD-X86)
https://download.csdn.net/download/ACCPluzhiqi/88083715

Tongxin UOS desktop system mariadb database offline deb installation package (Zhaoxin-Haiguang-intel-AMD-X86)
https://download.csdn.net/download/ACCPluzhiqi/88083710

Tongxin UOS desktop system nginx offline deb installation package (Godson-loongarch)
https://download.csdn.net/download/ACCPluzhiqi/88083560

Tongxin UOS desktop system JDK offline deb installation package (Godson-loongarch)
https://download.csdn.net/download/ACCPluzhiqi/88083554

Tongxin UOS desktop system mariadb database offline deb installation package (Godson-loongarch)
https://download.csdn.net/download/ACCPluzhiqi/88083538

Tongxin UOS desktop system nginx offline deb installation package (Feiteng-Kunpeng-arm64 architecture)
https://download.csdn.net/download/ACCPluzhiqi/88072575

Tongxin UOS desktop system JDK offline deb installation package (Feiteng-Kunpeng-arm64 architecture)
https://download.csdn.net/download/ACCPluzhiqi/88072569

Tongxin UOS desktop system mariadb database offline deb installation package (Feiteng-Kunpeng-arm64 architecture)
https://download.csdn.net/download/ACCPluzhiqi/88072511

Guess you like

Origin blog.csdn.net/ACCPluzhiqi/article/details/131989394
Recommended