debian 9 开发环境

时间:2022-04-27 02:20:40

node.js

apt-get install git-core build-essential
git clone https://github.com/nodejs/node.git
cd node
git tag
git checkout v6.9.5
./configure
make
make install
node -v

 npm

wget https://npmjs.org/install.sh
chmod 777 install.sh
./install.sh
npm -v

 golang

wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz
vi /etc/profile
export GOROOT=/usr/local/go
export GOPATH=/w/go/third:/w/go/src                                                                   
PATH=$PATH:$GOROOT/bin 

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build

 java

apt-get install openjdk-8-jdk

wget https://downloads.gradle.org/distributions/gradle-3.4-all.zip
mkdir /opt/java/gradle
unzip -d /opt/java/gradle gradle-3.4-all.zip
vi /etc/profile
PATH=$PATH:/opt/java/gradle/gradle-3.4/bin

wget http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/neon/2/eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz
mkdir /opt/java/eclipse
tar -C /opt/java/eclipse -xzf eclipse-jee-neon-2-linux-gtk-x86_64.tar.gz
mv /opt/java/eclipse/eclipse/ /opt/java/eclipse/eclipse462/
#Eclipse Marketplace install buildship

 mysql

apt-get install libaio1
wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz
tar -zxf mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz
mv mysql-5.7.17-linux-glibc2.5-x86_64/* /opt/mysql/
groupadd mysql
useradd -g mysql mysql

cd /opt/mysql
chown -R root:mysql .
chown -R mysql:mysql data
chown -R mysql:mysql /w/mysqld/
cp ./support-files/my-default.cnf /etc/my.cnf

vi /etc/my.cnf

basedir=/opt/mysql
datadir=/w/mysqld
user=mysql

./bin/mysqld --initialize

set password=password('密码');
flush privileges;

vi /etc/profile
PATH=$PATH:/opt/mysql/bin