![]() ![]() Installing laravel/laravel (v9.1.8): Extracting archive $ composer create-project -prefer-dist laravel/laravel helloworldĬreating a "laravel/laravel" project at "./helloworld" 컴포즈로 프로젝트((helloworld) 생성 composer create-project -prefer-dist laravel/laravel helloworld $ cd /var/www ![]() 환경변수(PATH) 등록 echo 'PATH=$PATH:$HOME/.config/composer/vendor/bin' > ~/.bashrc source ~/.bashrc Use the `composer fund` command to find out more! Installing laravel/installer (v4.2.10): Extracting archiveĤ package suggestions were added by new dependencies, use `composer suggest` to see details.Ĩ packages you are using are looking for funding. Installing symfony/console (v6.0.8): Extracting archive Lock file operations: 10 installs, 0 updates, 0 removals Loading composer repositories with package information Running composer update laravel/installer 라라벨 설치 composer global require laravel/installer $ composer global require laravel/installerĬhanged current directory to /root/.config/composer Php를 사용하여 composer 설치 php composer-setup.php -install-dir=/usr/local/bin -filename=composer Php 모듈 추가 설치 apt install -y php php-curl apt install -y php-common php-json php-mbstring php-zip php-xml php-tokenizerĬomposer 다운로드 curl -sS -o composer-setup.php ![]() Nginx, php-fpm 데몬 재시작 systemctl restart nginx php8.1-fpmĬurl, unzip 패키지 설치 apt install -y curl unzip htaccess files, if Apache's document root # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000įastcgi_pass unix:/var/run/php/ įastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # redirect server error pages to the static page /50x.html Nginx nf 편집 vim /etc/nginx/conf.d/nf $ vim /etc/nginx/conf.d/nfĪccess_log /var/log/nginx/ main Php 모듈 추가 설치 apt install -y php-cli php-curl php-gd php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-readline php-redis php-mbstring php-xml php -m | egrep 'redis|imagick' $ php -m | egrep 'redis|imagick' Php-fpm 데몬 활성화 및 php-fpm 데몬 시작 systemctl -now enable php8.1-fpm With Zend OPcache v8.1.6, Copyright (c), by Zend Technologies Zend Engine v4.1.6, Copyright (c) Zend Technologies PPA 추가 add-apt-repository ppa:ondrej/php -y apt update Synchronizing state of rvice with SysV service script with /lib/systemd/systemd-sysv-install.Įxecuting: /lib/systemd/systemd-sysv-install enable nginx Nginx 데몬 재시작 $ systemctl -now enable nginx Nginx 데몬 활성화 및 nginx 데몬 시작 systemctl -now enable nginx Nginx stable 리포지토리 추가 echo deb `lsb_release -cs` nginx | tee /etc/apt//nginx-stable.list apt update Nginx GPG Key 다운로드 및 추가 curl -Ss | gpg -dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null 우분투 업데이트 apt update & apt upgrade -y apt install -y wget gnupg2 ca-certificates lsb-release ubuntu-keyring software-properties-common nginx 설치 및 설정 Ubuntu 컨테이너에 진입 docker exec -it ubuntu bash nginx, php-fpm 설치 도커 컨테이너 실행 docker run -d -privileged -p 80:80 -name ubuntu -hostname ubuntu anti1346/ubuntu-init:22.04 /sbin/init ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |