• 配置 Ubuntu 服务器


     Python:

    apt install python3-pip
    sudo add-apt-repository ppa:fkrull/deadsnakes
    sudo apt-get update
    apt-get install python3.6

    python --version

    git(配置不每次输入密码和用户名):

    git config --global credential.helper store 

    nodejs:

    wget -qO- https://deb.nodesource.com/setup_11.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
    sudo node -v

    apt-get install npm

    sudo npm install npm@latest -g

    nignx:

    apt-get install nginx
    /etc/nginx/conf.d/

    Golang:
    wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
    tar -xzf go1.12.5.linux-amd64.tar.gz -C /usr/local
    vim .profile

    export PATH=$PATH:/usr/local/go/bin
    source .profile 

    Mysql:

    apt-get install mysql-server mysql-client

    CI:

    go get -d github.com/ouqiang/gocron

    cd ~/go/src/github.com/ouqiang/gocron/

    export GO111MODULE=on
    export GOPROXY=https://mirrors.aliyun.com/goproxy/

    make

    cd bin/

    nohup ./gocron web > nohup.out 2>&1 &
    nohup ./gocron-node -allow-root > node.out 2>&1 &
  • 相关阅读:
    函数之装饰器
    前端笔记之css
    前端笔记之html
    python之函数
    python之文件操作
    python基础知识
    ovirt一种基于kvm的开源虚拟化软件
    python2与3的区别
    TP框架设置验证码
    js原生子级元素阻止父级元素冒泡事件
  • 原文地址:https://www.cnblogs.com/mafeng/p/11304859.html
Copyright © 2020-2023  润新知