• 安装谷歌和python3脚本


     1 #!/bin/bash
     2 #安装chrome
     3 cat >> /etc/yum.repos.d/google-chrome.repo <<EOF
     4 [google-chrome]
     5 name=google-chrome
     6 baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
     7 enabled=1
     8 gpgcheck=1
     9 gpgkey=https://dl.google.com/linux/linux_signing_key.pub
    10 EOF
    11 yum -y install google-chrome-stable --nogpgcheck
    12 cd /opt
    13 wget https://npm.taobao.org/mirrors/chromedriver/87.0.4280.20/chromedriver_linux64.zip
    14 unzip chromedriver_linux64.zip
    15 mv chromedriver /usr/bin/
    16 chmod +x /usr/bin/chromedriver
    17 
    18 #安装python3
    19 yum -y groupinstall "Development tools"
    20 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
    21 yum install -y libffi-devel zlib1g-dev
    22 yum install zlib* -y
    23 cd /opt
    24 #wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
    25 tar -xf Python-3.7.2.tar.xz
    26 mkdir /usr/local/python3 
    27 cd /opt/Python-3.7.2
    28 ./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl 
    29 make -j4 && make install
    30 echo "export PATH=$PATH:/usr/local/python3/bin" >> /etc/profile
    31 echo "export PYTHON_APP_ENV=test" >> /etc/profile
    32 source /etc/profile
    33 pip3 install -i https://pypi.douban.com/simple/ --default-timeout=100 wheel numpy selenium pillow  cmake requests redis python-dateutil
  • 相关阅读:
    正则表达式
    [创业指南]给海归技术创业兄弟的九个忠告
    about avast
    设计模式Hibernate
    job desc
    把INT转换成2进制等
    微服务调用跟踪
    Redis 分布式锁实现
    jquery中的$.ajax()方法
    订单从ftp写入到b2b
  • 原文地址:https://www.cnblogs.com/fixedstar/p/14005608.html
Copyright © 2020-2023  润新知