Laravel開發環境設置 with Ubuntu 18.04

Laravel開發環境設置 with Ubuntu 18.04
Read Time:24 Second

Install Composer

~# apt update
~# apt install composer

For Laravel require

~# apt install php-bcmath
~# apt install php-json
~# apt install php-mbstring
~# apt install php-tokenizer
~# apt install php-xml

Install Laravel

~# composer global require laravel/installer
~# vim ~/.bash_profile
export PATH=$PATH:~/.config/composer/vendor/bin
~# source ~/.bash_profile

Install Redis

~# apt install redis-server
~# vim /etc/redis/redis.conf
supervised no → supervised systemd
bind 127.0.0.1 ::1
requirepass {{password}}
~# systemctl restart redis.service

Done.