yum install -y kernel-headers kernel-devel perl perl-devel gcc make
# install custom
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo
cd
yum install -y epel-release
yum clean all
yum makecache
yum update
yum install -y centos-release-scl scl-utils-build
yum install -y devtoolset-8-toolchain
mkdir -p /opt/usr-script/bin
echo "scl enable devtoolset-8 bash" > /opt/usr-script/bin/entry-gcc8.sh
chmod +x /opt/usr-script/bin/entry-gcc8.sh
echo 'export PATH=$PATH:/opt/usr-script/bin' >> /etc/profile.d/script-env.sh
setenforce 0
iptables -F
systemctl disable
systemctl disable firewalld
systemctl stop firewalld
cp /etc/selinux/config /etc/selinux/config.bak
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
echo "JAVA_HOME=$(ls -l `ls -l /usr/bin/java| awk '{print $11}'` | awk '{print $11}')" > /etc/profile.d/java-env.sh
echo 'JRE_HOME=$JAVA_HOME/jre' >> /etc/profile.d/java-env.sh
echo 'CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib' >> /etc/profile.d/java-env.sh
echo 'PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin' >> /etc/profile.d/java-env.sh
echo 'export JAVA_HOME JRE_HOME CLASS_PATH PATH' >> /etc/profile.d/java-env.sh
mkdir -p ~/.pip
echo "[global]" > ~/.pip/pip.conf
echo "index-url = https://pypi.doubanio.com/simple" >> ~/.pip/pip.conf
echo "trusted-host = pypi.doubanio.com" >> ~/.pip/pip.conf
yum -y install zlib* python-pip openssl openssl-devel tk tk-devel
mkdir -p /opt/Python/3.6
mkdir -p /opt/Python/virtualenv
pip install --upgrade pip
pip install virtualenv
tar zxf Python-3.6.8.tgz
cd Python-3.6.8
# scl enable devtoolset-8 bash
./configure --prefix=/opt/Python/3.6 --enable-optimizations
make && make install
echo 'export PATH=$PATH:/opt/Python/3.6/bin' >> /etc/profile.d/python3-env.sh
source /etc/profile
Centos7-init
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- android源码学习目录 android init进程 Android Init Language 1.init...
- 问题 经常子类继承父类的时候,重写了init时,实例化子类,就不会调用父类已经定义的init 解决办法 要在子类中...