ubuntu16.04 美化+LNMP+nodejs+composer+phpstorm等等等的安装配置

in 编程
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9

导入PPA源

sudo add-apt-repository ppa:noobslab/themes
sudo add-apt-repository ppa:noobslab/icons

sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

sudo add-apt-repository -y ppa:ondrej/mysql-5.7
sudo add-apt-repository -y ppa:ondrej/php
sudo add-apt-repository ppa:nginx/stable 
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get update

官方PPA

update时如果遇到NO_PUBKEY时执行(key自己替换):

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192

安装环境

#基础
sudo apt install git curl
#桌面版美化 
sudo apt-get install unity-tweak-tool 
sudo apt-get install flatabulous-theme
sudo apt-get install ultra-flat-icons
sudo apt-get install zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
chsh -s /bin/zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

通过sudo vim ~/.zshrc编辑.zshrcplugins中添加zsh-autosuggestions注销重登

具体的美化美化参考

#LNMP环境
sudo apt-get install nginx
sudo apt-get install mysql-server-5.7
sudo apt-get install php7.2 php7.2-fpm php7.2-mysql php7.2-gd php7.2-opcache php7.2-xml php7.2-curl php7.2-json php7.2-zip php7.2-mbstring

#nodejs
sudo apt-get install nodejs

#composer
sudo curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com

php可以安装多版本,通过nginx自由调度

不是官方最新的phpstorm可以通过sudo apt-get install phpstorm安装

激活通过大佬共享的code

科学上网可以自行百度酸酸乳

关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9
扫一扫关注公众号添加购物返利助手,领红包
Comments are closed.

推荐使用阿里云服务器

超多优惠券

服务器最低一折,一年不到100!

朕已阅去看看