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

Share the operation flow of one-click deployment of ZKEYS public cloud management system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Matters needing attention

Please use a new system environment for deployment

For the stability and maintainability of the site, please use the CentOS 7 series operating system

Make sure that the server can access the public network properly.

Server configuration is recommended for 4-core CPU and 4G memory

The application is deployed in the / data directory. If the data disk is not mounted in the / data directory, it is recommended to mount it to the / data directory again.

Disk mount

Assuming that the data disk is sdb1, the specific operation method is as follows:

Umount / dev/sdb1

Format to xfs file format (skip if there is data in the data disk):

Mkfs.xfs / dev/sdb1-f remount and view:

Mkdir / data

Mount / dev/sdb1 / data/

Df-h

Set to auto mount on boot:

Vi / etc/fstab # be sure to remove the original mount of / dev/sdb1 and re-add the following

/ dev/sdb1 / data xfs defaults,async,noatime 0 0

Example (one mounted in the root directory and one in the data disk directory, which cannot be repeated):

Script description

1) in one-click deployment, four pieces of software, Nginx, PHP, Redis and MySQL, will be installed on your server. 2) the installation path of the software is unified in the / data/app/ directory, and the configuration files are located in the / etc directory in their respective directories (nginx is under conf).

Start installation

Please log in to the server where you need to deploy the site and execute the following command to begin the installation

Curl http://download.zkeys.com/zkeys/zkeys_cloud/install_zkeys.sh | bash

Please wait for the installation to complete and continue with the following.

Set MySQL password

Description: mysql has been automatically installed and running, the password is empty, please log in directly and set a new password

Mysql-uroot-p # input password is empty, you can enter directly.

UPDATE mysql.user SET password=PASSWORD ("password") where user='root'

Flush privileges

\ Q

Verify password

Mysql-uroot-p

Configure domain name

Please bind your domain name in the nginx configuration: change www.example.com to your own domain name (other content does not need to be modified), save exit and restart nginx.

Vi / data/app/nginx/conf/nginx.conf + 67

Systemctl restart nginx

Access to Zkey public cloud service management system

Please visit your server IP or a domain name that is already in force in your browser to install the program.

Agree to the installation agreement

Click next in configuration detection

Please fill in the following according to the actual situation

Installation succeeded

Redis configuration

Self-production business needs to be configured

The default password for Redis is P@ssw0rd

Please edit the redis.conf file and change it to your own password:

Ps: set the redis password without a # number

Vi / data/app/redis/etc/redis.conf + 500

The password here also needs to be changed.

Vi / lib/systemd/system/redis.service + 13

Restart redis after modification and verify the password

Systemctl daemon-reload

Systemctl restart redis.service

Redis-cli

127.0.0.1 purl 6379 > auth P@ssw0rd

OK

127.0.0.1 purl 6379 > exit

The presence of an OK indicates that the password was verified successfully.

System configuration Redis database edits the nginx configuration file and adds the following:

Command:

Vi / data/app/nginx/html/zkeys/config/database.php + 8

Content:

'REDIS_HOST' = >' 127.0.0.1, / / redis server ip

'REDIS_PORT' = >' 6379quarter quarter / port number

The password set by 'REDIS_AUTH'= >' Aa123456',//, which is filled in according to the actual situation.

After addition, as shown in the figure

Edit the php configuration file and add the following:

Command:

Vi / data/app/php/etc/php.ini + 1414

Content:

Session.save_handler = redis

Session.save_path = "tcp://127.0.0.1:6379?auth=P@ssw0rd"

Restart service takes effect

Systemctl restart nginx php-fpm

-

Share the detailed deployment address

Https://www.zkeys.com/?utm_source=wu-cto

This is the end of today's sharing, if you think it is good, you can give me a like, if there is anything wrong, welcome to point out!

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