Galaxy Kirin system installation middleware

WBOY
Release: 2023-06-12 11:13:43
forward
1762 people have browsed it

Galaxy Kirin system installation middleware

Now more and more enterprise-level applications need to run in a domestic environment. This article introduces the installation of the middleware used by our products in the domestic operating system Galaxy Kirin (not necessarily Optimal approach, but it works).

Includes; Nginx, Redis, RabbitMQ, MongoDB, dotNETCore.

The picture below is the information of the Galaxy Kirin server:

Galaxy Kirin system installation middleware

If you want a smooth installation, you need to ensure:

1 , the server can access the network. If you want to install it completely offline, it will be more complicated and requires further research.

2. Modify the yum source.

Use vi /etc/yum.repos.d/kylin_aarch64.repo to set the yum source. The file content is as follows:

###Kylin Linux Advanced Server 10 - os repo###[ks10-adv-os]name = Kylin Linux Advanced Server 10 - Osbaseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/base/$basearch/gpgcheck = 1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylinenabled = 1[ks10-adv-updates]name = Kylin Linux Advanced Server 10 - Updatesbaseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/updates/$basearch/gpgcheck = 1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylinenabled = 1[ks10-adv-addons]name = Kylin Linux Advanced Server 10 - Addonsbaseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/addons/$basearch/gpgcheck = 1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylinenabled = 0
Copy after login

Nginx

First execute the following command to install the dependencies:

yum install gcc gcc-c++ make unzip pcre pcre-devel zlib zlib-devel libxml2 libxml2-develreadline readline-devel ncurses ncurses-devel perl-devel perl-ExtUtils-Embed openssl-devel -y
Copy after login

Download source code:

wget -c http://nginx.org/download/nginx-1.20.1.tar.gztar -zxvfnginx-1.20.1.tar.gz -C /optcd/opt/nginx-1.20.1/
Copy after login

Configuration:

./configure \--with-http_ssl_module \--with-http_flv_module \--with-http_stub_status_module \--with-http_gzip_static_module \--with-pcre
Copy after login

Installation:

make -j2 && make install
Copy after login

Enter the /usr/local/nginx/sbin/ directory and execute the following command Start the service:

./nginx -c /usr/local/nginx/conf/nginx.conf
Copy after login

Execute ps -ef | grep nginx View the nginx process:

Galaxy Kirin system installation middleware

##redis

Installation Dependencies:

yum install cpp binutils glibc glibc-kernheaders glibc-common glibc-devel -y
Copy after login
Download source code:

cd /usr/local/srcwget http://download.redis.io/releases/redis-6.0.2.tar.gztar -zxvf redis-6.0.2.tar.gz -C /opt
Copy after login
Compile and install:

cd /opt/redis-6.0.2make
Copy after login
Run:

mkdir logs nohup /opt/redis-6.0.2/src/redis-server /opt/redis-6.0.2/redis.conf >> /opt/redis-6.0.2/logs/redis.log2>&1 &
Copy after login
RabbitMQ

The installation of RabbitMQ is relatively simple , just execute a few commands.

Installation:

yum install socat logrotate -yyum -y install erlang -yyum -y install rabbitmq-server
Copy after login
Start the service:

systemctl enable rabbitmq-serversystemctl start rabbitmq-server
Copy after login
If you want to use a browser to access the RabbitMQ management interface, you need to enable the plug-in:

rabbitmq-plugins enable rabbitmq_management
Copy after login
Plug-in enablement After that, you can enter: http://ip:15672 in the browser to access. Port 15672 needs to be opened in the firewall.

MongoDB

Because the above middleware has already installed some dependencies, execute the following command to install the remaining dependencies:

sudo yum -y install libcurl-devel openssl libxml2-devel libxml2 glibc-static libstdc++-static libffi-devel
Copy after login
Install Python

Python The version 2.x is installed because MongoDB here uses version 3.6.19.

cd /usr/local/srcwget https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tgztar -zxvf Python-2.7.17.tgzcd Python-2.7.17./configure --prefix=/usr/local/python2make -j64make installln -s /usr/local/python2/bin/python2.7 /usr/local/bin/python2.7
Copy after login
Install setuptools tool

cd /usr/local/srcwget https://github.com/pypa/setuptools/archive/v41.0.1.zipunzip setuptools-v41.0.1.zipcd setuptools-41.0.1/usr/local/bin/python2.7 bootstrap.py/usr/local/bin/python2.7 setup.py install
Copy after login

Install pip tool

cd /usr/local/srcwget https://github.com/pypa/pip/archive/19.2.2.tar.gztar zxvf pip-19.2.2.tar.gzcd pip-19.2.2/usr/local/bin/python2.7 setup.py install
Copy after login

Install mongo

cd /usr/local/srcwget https://github.com/mongodb/mongo/archive/r3.6.19.tar.gztar -zxvf mongo-r3.6.19.tar.gzcd mongo-r3.6.19#构建编译环境/usr/local/python2/bin/pip2 install -r buildscripts/requirements.txt#创建数据目录mkdir -p /data/db#安装/usr/local/bin/python2.7 buildscripts/scons.py --prefix=/opt/mongo install MONGO_VERSION=3.6.19 CCFLAGS="-march=armv8-a+crc" --disable-warnings-as-errors --variables-files=etc/scons/propagate_shell_environment.vars#创建软连接ln -s /opt/mongo/bin/mongo /usr/local/bin/mongoln -s /opt/mongo/bin/mongod /usr/local/bin/mongod
Copy after login

    --prefix=/opt/mongo is the installation directory
If no errors occur when executing the above command, the installation is successful. Execute the following command to start the backend of the server:

nohup mongod >> /opt/mongo/logs/mongolog 2>&1 &
Copy after login
dotNETCore 3.1

Installation dependencies

yum install gmp-devel mpfr-devel libmpc-devel -y
Copy after login

Execute the following command to install

wget https://download.visualstudio.microsoft.com/download/pr/186257d9-bca2-4dda-be74-006205965ec9/b2b63d45482701473d9731abc41ecc2a/dotnet-sdk-3.1.426-linux-arm64.tar.gzmkdir -p /opt/dotnettar -zxvf dotnet-sdk-3.1.426-linux-arm64.tar.gz -C /opt/dotnetln -s /opt/dotnet/dotnet /usr/binexport DOTNET_ROOT=/opt/dotnetexport PATH=$PATH:/opt/dotnet
Copy after login

Execute the command dotnet --info for verification. If the following result appears, the installation is successful:

.NET Core SDK (reflecting any global.json): Version: 3.1.426 Commit:e81f6c8565Runtime Environment: OS Name: kylin OS Version:V10 OS Platform: Linux RID: linux-arm64 Base Path: /opt/dotnet/sdk/3.1.426/Host (useful for support):Version: 3.1.32Commit:f94bb2c3ff.NET Core SDKs installed:3.1.426 [/opt/dotnet/sdk].NET Core runtimes installed:Microsoft.AspNetCore.App 3.1.32 [/opt/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.NETCore.App 3.1.32 [/opt/dotnet/shared/Microsoft.NETCore.App]To install additional .NET Core runtimes or SDKs:https://aka.ms/dotnet-download
Copy after login

The above is the detailed content of Galaxy Kirin system installation middleware. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!