728x90
sudo passwd root
sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password
PasswordAuthentication no
PermitRootLogin yes
PasswordAuthentication yes
sudo service sshd restart
apt-get update
apt-get install nginx
apt-get update && sudo apt-get upgrade
UTF-8 선택
Keep the local version currently installed 선택
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.3
sudo apt-get install php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-fpm php7.3-intl php7.3-simplexml
sudo a2dismod php7.4
sudo a2enmod php7.3
sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php7.3
sudo update-alternatives --set phar /usr/bin/phar7.3
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.3
sudo update-alternatives --set phpize /usr/bin/phpize7.3
sudo update-alternatives --set php-config /usr/bin/php-config7.3
apt-get install mysql-server
apt-get install php-mysql
ssh-keygen
cat ~/.ssh/id_rsa.pub
mkdir /var/www/laravel
cd /var/www/laravel
git clone git@github.com:Seungyeup/test1.git
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer --version
export COMPOSER_ALLOW_SUPERUSER=1
echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc
apt-get install zip unzip php-zip
composer install
cp .env.example .env
php artisan key:generate
sudo chown www-data:www-data /var/www/laravel/test1/storage -R
chown www-data:www-data /var/www/laravel/test1/public -R
vi .env
mysql -uroot -p
CREATE DATABASE investment default CHARACTER SET UTF8;
show databases;
php artisan에서 php.ini 수정을 위해
find / -name php.ini
728x90
'[Cloud] > [AWS]' 카테고리의 다른 글
[AWS] 클라우드 아키텍처 기초,고급 (Architecting on AWS) 수료 (0) | 2020.09.16 |
---|