Code Monkey home page Code Monkey logo

common-resource's People

Contributors

eumji025 avatar

Watchers

 avatar

common-resource's Issues

rebuild linux workspace

question

openresty

./configure: error: the HTTP rewrite module requires the PCRE library.

centos:
yum -y install pcre-devel

ubuntu:

apt-get install libpcre3-dev
libssl-dev perl make build-essential curl

sudo apt-get install zlib1g-dev

link

https://blog.csdn.net/z920954494/article/details/52132125

语法高亮

1.vim语法高亮
首先下载nginx的源文件

cd nginx-home-path/
sudo cp contrib/* -R ~/.vim/

2.vs code
在vs code的商店安装nginx support插件

3.jetrain soft

learning artcle

https://www.centos.bz/2017/03/using-nginx-limit_req-limit-user-request-rate/
http://www.ttlsa.com/nginx/nginx-limited-connection-number-ngx_http_limit_conn_module-module/

Golang镜像配置

通常情况下,由于很多golang的包是在google.golang.org上,国内是无法正常访问的,所以这时候需要我们进行一些代理配置或者调整来解决这样的情况

对于通常的项目,通常github上都有依赖包的镜像仓库,切不关心版本,可以这样的方式进行处理

mkdir $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone [email protected]:golang/text.git

但是对于某些项目使用了go module进行管理的,这种方式是行不通的因为我们存在多版本的情况,所以来拉下来的也不一定适用
这时候需要我们进行处理,可以参考这篇:https://studygolang.com/articles/14658
简单的来说主要两步

set GO111MODULE=on
set GOPROXY=https://goproxy.io

maven gradle 镜像配置

maven的配置

    <mirror>
        <id>aliyunmaven</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库</name>
        <url>https://maven.aliyun.com/repository/public</url>
    </mirror>

    <mirror>
        <id>aliyunmaven2</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-google</name>
        <url>https://maven.aliyun.com/repository/google</url>
    </mirror>

     <mirror>
        <id>aliyunmaven3</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-gradle</name>
        <url>https://maven.aliyun.com/repository/gradle-plugin</url>
    </mirror>

    <mirror>
        <id>aliyunmaven4</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-spring</name>
        <url>https://maven.aliyun.com/repository/spring</url>
    </mirror>


    <mirror>
        <id>aliyunmaven5</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-spring-plugin</name>
        <url>https://maven.aliyun.com/repository/spring-plugin</url>
    </mirror>

    <mirror>
        <id>aliyunmaven6</id>
        <mirrorOf>*</mirrorOf>
        <name>阿里云公共仓库-apache</name>
        <url>https://maven.aliyun.com/repository/apache-snapshots</url>
    </mirror>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.