PHP project uses Pagoda BT from building to running the whole process

Due to the sudden and sharp increase in the company's business volume

 The redis queue accumulates hundreds of thousands of data. In order to consume it as soon as possible, only new machines can be added.

Remember to choose pagoda installation when purchasing the server

Then xshell into the new server

 

Select 14 to view pagoda information, save, visit pagoda link

 

First install the lnmp environment with one click, enter the software store to install the development environment such as redis, gitlab

 Use xshell to enter the server to generate the public key of the git warehouse, and fill in your own mailbox

ssh-keygen -t rsa -C "[email protected]"

 Successful return as above

cat ~/.ssh/id_rsa.pub

View the public key, copy the public key to the ssh configuration on the git code warehouse

git clone clones the code warehouse to the local server, and installs dependencies and vender packages with composer

composer install

 The error is as follows

 

Enter the pagoda, find php management, disable functions, remove putenv,

Choose to install extensions, fileinfo, redis, swoole4 installed

 

 

Adjust the performance size according to the configuration of the purchased server

 

 Finally, install the dependency package compser 

 Go to the project root directory

vim .env
cat .env

Create a new environment configuration and check it

If it involves timing tasks, remember to check and configure

crontab -l
crontab -e

 Finally, the permissions of the folder, especially the log folder

chmod -R 777 /日志文件夹目录

Test a timed task, php artisan one:add

After no problem, restart the server, it will be fine

Guess you like

Origin blog.csdn.net/qq_33665793/article/details/130998388