java1.8安装
下载
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
设置
mkdir /usr/local/java/ tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/local/java/ vim /etc/profile export JAVA_HOME=/usr/local/java/jdk1.8.0_171 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH source /etc/profile ln -s /usr/local/java/jdk1.8.0_171/bin/java /usr/bin/java java -version
git安装
移除现有版本
yum remove git
去该网站找指定版本git
https://mirrors.edge.kernel.org/pub/software/scm/git/
如2.20.1版本
环境安装
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
下载并解压
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.20.1.tar.gz tar -zxvf git-2.20.1.tar.gz
配置并安装
cd git-2.20.1 make prefix=/usr/local/git all make prefix=/usr/local/git install
添加环境变量
vi /etc/profile 加入“export PATH=$PATH:${JAVA_HOME}/bin:/usr/local/git/bin” source /etc/profile
验证
git --version
cmake安装
yum install -y gcc gcc-c++ make automake wget https://github.com/Kitware/CMake/releases/download/v3.18.0-rc2/cmake-3.18.0-rc2.tar.gz tar -zxvf cmake-3.18.0-rc2.tar.gz cmake-3.18.0-rc2 ./bootstrap gmake gmake install
mariadb安装
mariadb10.2兼有mysql5.6和5.7的特性
vi /etc/yum.repos.d/MariaDB.repo
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
yum install MariaDB-server MariaDB-client -y systemctl start mariadb systemctl status mariadb mysql_secure_installation
Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB!
nodejs安装
官网选择Linux Binaries (x64)
wget https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz
xz -d node-v14.15.0-linux-x64.tar.xz
tar -xf node-v14.15.0-linux-x64.tar
mv node-v14.15.0-linux-x64 /usr/local/nodejs