中标麒麟v5申威cpu服务器部署

==作者:YB-Chi==

[toc]

软硬件型号

硬件 型号
CPU SW6A
架构 sw_64
软件 版本 预装 是否保留
OS NeoKylin Server release 5.0 (Sunway) Y Y
JDK java-1.8.0-swjdk-devel-H324P-1.ns7.1.sw_64
java-1.8.0-swjdk-H324P-1.ns7.1.sw_64
java-1.8.0-swjdk-demo-H324P-1.ns7.1.sw_64
java-1.8.0-swjdk-src-H324P-1.ns7.1.sw_64
Y Y
MARIADB mariadb-server-5.5.50-1.ns7.1.sw_64
mariadb-5.5.50-1.ns7.1.sw_64
mariadb-libs-5.5.50-1.ns7.1.sw_64
Y N
NGINX nginx-all-modules-1.12.1-1.ns7.1.noarch
nginx-mod-http-perl-1.12.1-1.ns7.1.sw_64
nginx-filesystem-1.12.1-1.ns7.1.noarch
nginx-mod-stream-1.12.1-1.ns7.1.sw_64
nginx-mod-http-image-filter-1.12.1-1.ns7.1.sw_64
nginx-1.12.1-1.ns7.1.sw_64
nginx-mod-http-xslt-filter-1.12.1-1.ns7.1.sw_64
nginx-mod-mail-1.12.1-1.ns7.1.sw_64
nginx-mod-http-geoip-1.12.1-1.ns7.1.sw_64
Y Y
POSTGRESQL postgresql-9.2.18-1.ns7.1.sw_64
postgresql-server-9.2.18-1.ns7.1.sw_64
postgresql-contrib-9.2.18-1.ns7.1.sw_64
postgresql-libs-9.2.18-1.ns7.1.sw_64
Y Y
REDIS redis-3.2.7-1.ns7.1.sw_64 Y Y

软件安装

Postgresql

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 初始化
service postgresql initdb

# 修改配置 对外开放连接
vim /var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
vim /var/lib/pgsql/data/pg_hba.conf
# IPv4 local connections:
host all all 0.0.0.0/0 password

# 启动
systemctl start postgresql.service

# 改密码
su - postgres
psql
ALTER USER postgres PASSWORD 'cyb123';
create database pmp

# 重启
\q
exit
systemctl restart postgresql.service

Nginx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 创建项目文件夹
mkdir -p /opt/pmp
# 放置html到/opt/pmp下改名index.html测试
# 修改nginx配置
vim /etc/nginx/nginx.conf

server {
listen 8080;
server_name localhost;
location / {
root /opt/pmp;
index index.html index.htm;
}
}

# 启动
systemctl start nginx.service
# 测试
# 访问192.168.4.101:8080

REDIS

1
2
3
4
5
6
vi /etc/redis.conf
注释bind 127.0.0.1
protected-mode yes
修改为
protected-mode no
systemctl start redis

WEB

1
2
3
4
5
6
7
8
9
groupadd dev
useradd dev -dev
passwd dev
dev
dev
新建dev连接窗口
mkdir app
开启sftp上传jar包
java -jar pmp-0.0.1-SNAPSHOT.jar
文章作者: CYBSKY
文章链接: https://cybsky.top/2022/09/07/cyb-mds/linux/中标麒麟v5申威cpu服务器部署/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CYBSKY