首页 > 系统服务 > 详细

我的ubuntu18开发环境配置

时间:2021-09-06 23:55:03      阅读:3      评论:0      收藏:0      [点我收藏+]

脚本的方式

#!/bin/bash  
#替换镜像源
echo "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
" > /etc/apt/sources.list

#更新源
apt update

#安装LNMP
apt install -y  vim  git  nginx  mysql-server  php7.2  php7.2-cli  php7.2-dev php7.2-gmp  php7.2-json  php7.2-odbc  php7.2-pspell  php7.2-soap   php7.2-xml  php7.2-bcmath     php7.2-common     php7.2-enchant    php7.2-imap       php7.2-ldap       php7.2-opcache    php7.2-readline   php7.2-sqlite3    php7.2-xmlrpc php7.2-bz2        php7.2-curl       php7.2-fpm        php7.2-interbase  php7.2-mbstring   php7.2-pgsql      php7.2-recode     php7.2-sybase     php7.2-xsl php7.2-cgi        php7.2-dba        php7.2-gd         php7.2-intl       php7.2-mysql      php7.2-phpdbg     php7.2-snmp       php7.2-tidy       php7.2-zip 		php-redis

#下载golang
wget https://studygolang.com/dl/golang/go1.17.linux-amd64.tar.gz
#解压
tar -zxf go1.17.linux-amd64.tar.gz -C /usr/local/
#更新环境变量
echo "export PATH=\$PATH:/usr/local/go/bin
export GO111MODULE=on
export GOPATH=/home/yantao/go/
export GOBIN=/home/yantao/go/bin/
export GOPROXY=https://goproxy.cn" >> /etc/profile

cd
mkdir go
cd go
mkdir bin pkg src
chown -R yantao:yantao /home/yantao/go

source /etc/profile

#安装sublime
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text

java

sudo tar -zxvf jdk-8u271-linux-x64.tar.gz
mkdir /usr/local/jdk1.8
mv jdk1.8.0_271/* /usr/local/jdk1.8/

vim /etc/profile
export JAVA_HOME=/usr/local/jdk1.8
export JRE_HOME=${JAVA_HOME}/jre  
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
export PATH=${JAVA_HOME}/bin:$PATH  
source /etc/profile

应用软件

chromium

sudo apt install chromium-browser

typora

wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository ‘deb https://typora.io/linux ./‘
sudo apt-get update
sudo apt-get install typora

百度输入法

https://shurufa.baidu.com/

wps

https://linux.wps.cn/

我的ubuntu18开发环境配置

原文:https://www.cnblogs.com/coderyantao/p/15232373.html

(0)
(0)
   
举报
评论 一句话评论(0
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!