OVERCODE

Amazon Lightsail LAMP 컨트롤 명령어 (AWS) 본문

리눅스

Amazon Lightsail LAMP 컨트롤 명령어 (AWS)

오버코드 2021. 4. 20. 21:47

mysqld
sudo /opt/bitnami/ctlscript.sh stop mysql 
sudo /opt/bitnami/ctlscript.sh start mysql 
sudo /opt/bitnami/ctlscript.sh restart mysql 

자동실행 차단 
sudo mv /opt/bitnami/mysql/scripts/ctl.sh /opt/bitnami/mysql/scripts/ctl.sh.disabled 

 

apache
sudo /opt/bitnami/ctlscript.sh stop apache
sudo /opt/bitnami/ctlscript.sh start apache
sudo /opt/bitnami/ctlscript.sh restart apache

 

php-fpm
sudo /opt/bitnami/ctlscript.sh stop php-fpm
sudo /opt/bitnami/ctlscript.sh start php-fpm
sudo /opt/bitnami/ctlscript.sh restart php-fpm

 

php 7.x로 업그레이드

 

sudo /opt/bitnami/ctlscript.sh stop 
sudo mv /opt/bitnami /opt/bitnami.back 
cd 
wget “https://bitnami.com/redirect/to/185888/bitnami-lampstack-7.1.16-0-linux-x64-installer.run” 
chmod +x ./bitnami-lampstack-7.1.16-0-linux-x64-installer.run 
sudo ./bitnami-lampstack-7.1.16-0-linux-x64-installer.run 
sudo /opt/bitnami/ctlscript.sh restart apache

 

(원문출처 : www.devlog.kr/aws-lightsail-lamp-컨트롤-명령어)


Comments