Ubuntu
Nginx
安裝
sudo apt install nginx
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
nvm
安裝
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install node
yarn
安裝
sudo apt install yarn
安裝失敗的時候會有下列得情況
I tried to install Yarn and when I used the
yarncommand I got:00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.my
yarn --versionis0.32. Why doesn't it work?
sudo apt remove yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
yarn # 這樣子就可以用了
Git
sudo apt install git -y