爱颂派对云服务器安装纪实(四)oneinstack方式安装

定时守护安装

yum -y install wget screen
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
cd oneinstack
screen -S oneinstack

yum search supervisor
yum install supervisor

cd /etc/supervisord.d/
vim laravel-work.ini

supervisorctl status
supervisorctl start
supervisorctl update
supervisorctl reload

systemctl start supervisord.service
systemctl enable supervisord.service
supervisorctl start all
supervisorctl status
supervisorctl update

cd /etc/supervisord.d/
ll
cd /etc
vim supervisord.conf 
clear

supervisorctl stop
supervisorctl stop laravel-work
supervisorctl reload
supervisorctl start laravel-work
cd supervisord.d/
ll
supervisorctl start laravel-worker

mv laravel-work.ini laravel-worker.ini 

supervisord -c /etc/supervisord.conf

ps -fe | grep supervisord
kill 10600
kill 10918
ps -fe | grep supervisord
supervisorctl restart

检查php版本

php -v
cd /

ll

wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --apache_option 1 --apache_mpm_option 1 --apache_mode_option 1 --php_option 9 --phpcache_option 2 --php_extensions imagick,fileinfo,imap,redis --db_option 2 --dbinstallmethod 1 --dbrootpwd oneinstack --redis  --reboot 

再次检查

php -v

设置php.ini

cd /usr/local/php/etc
vim php.ini

安装composer

php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"

php composer-setup.php

php -r "unlink('composer-setup.php');"

sudo mv composer.phar /usr/local/bin/composer

composer

composer selfupdate

 

cd /data/
ll
cd wwwroot/
ll
mkdir ktv_cashier_api

cd ktv_cashier_api/
vim index.php
cd /root

给网站下的有关文件夹加权限

cd ktv_cashier_api/

ll
chmod -R 777 storage/
ll
chmod -R 755 public/

cd public/

git网站

 

上一篇:golang 程序报错 panic: open config.json: too many open files


下一篇:idea插件Alibaba Cloud结合supervisorctl自动化部署