Tag:Route

  • Install Chrome browser driver under mac

    Time:2020-7-13

    How to install Chrome browser driver under mac 1. Go to the official website to download the driver package for chromeDownload link on official website: http://npm.taobao.org/mirrors… PS: first check the version of your Chrome browser: Open the above chrome official link, find the directory of the corresponding version, click in, find the Mac version of […]

  • Various problems encountered in Hadoop startup

    Time:2020-7-13

    1. HDFS initialized but not ‘healthy’ yet, waiting… This log will appear in the log file of jobtracker when Hadoop is started. In this case, there is a problem with HDFS, which causes datanode to fail to start. The only solution here is to delete all files under the path managed by namenode, and then […]

  • Android studio update error: connection error, temp directory inside installation

    Time:2020-7-13

    scene After modifying the. Androidstudio directory of Android studio to another directory, open as and prompt to update. Click Update to prompt: Connection Error,Temp directory inside installation: This is followed by the modified directory.     Note: Blog:https://blog.csdn.net/badao_liumang_qizhi Official accountDomineering procedural apeGet programming related e-books, tutorial push and free download. realization After checking that the […]

  • Gin series – redirection

    Time:2020-7-11

    package main import ( “github.com/gin-gonic/gin” “net/http” ) func main() { r := gin.Default() //HTTP redirection r.GET(“/index”, func(c *gin.Context) { //c.JSON(http.StatusOK, gin.H{ // “status”: “ok”, //}) //Jump to SOGO c.Redirect(http.StatusMovedPermanently, “https://www.sogo.com”) }) //Route redirection r.GET(“/luyou”, func(c *gin.Context) { //Jump to the route processing function corresponding to / luyou2 C. Request.URL.Path =”/ luyou2″ // modify the requested […]

  • How to build a high performance load balancing system to cope with large traffic?

    Time:2020-7-11

    load balancing Load balancing is the basic component of cloud computing and the entrance of network traffic. Its importance is self-evident. What is load balancing? The traffic input by users is evenly distributed to multiple servers in the back end by load balancer according to a certain load balancing algorithm. The server receiving the request […]

  • HBase installation and configuration (centos7)

    Time:2020-7-11

    Hadoop stepping on the pit (2) HBase installation and configuration (centos7) Environmental Science Namenode (hadoop1 ALI) Ali cloud (CentOS 7.3) 120.26.173.104 Datanode (Hadoop 2 HW) CentOS 7.4 114.116.233.156 For Hadoop installation and configuration, please refer to the previous article The version of HBase is 1.4.13 Hadoop version 2.8.5 is selected Download and unzip Download hbase-1.4.13 […]

  • Gin routing and routing group

    Time:2020-7-10

    Routing and routing group package main import ( “github.com/gin-gonic/gin” “net/http” ) func main() { r := gin.Default() //The get request to access / index will follow this logic //Access to information r.GET(“/index”, func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ “method”: “GET”, }) }) //Create a message r.POST(“/index”, func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ “method”: “POST”, }) }) //Update […]

  • How to manage network efficiently with Linux command line?

    Time:2020-7-9

    preface In our daily work, the Linux server operating system that we often use, whether it is to view network equipment information, manage network interface, download files, debug network problems or view network statistics, can be completed with commands under the terminal. ifconfig / ip a The command ifconfig is similar to IP a, which […]

  • Quick construction of server project tutorial based on hunt framework 3.2.0

    Time:2020-7-9

    Hunt FrameworkIt is a full stack web framework developed by using D language, similar to larravel / springboot / Django, etc., which allows D language developers to quickly create projects. It has built-in multi business specifications. One is to facilitate developers to use out of the box, and the other is to facilitate managers to […]

  • Using dynamic URL prefix in flash blueprint

    Time:2020-7-9

    This article describes how to use the dynamic URL prefix feature in the flash blueprint. Let’s look at a simple example. Suppose there is a blueprint (about the user’s home page) as follows: pythonfrom flask import Blueprint, render_template profile = Blueprint(‘profile’, __name__) @profile.route(‘/<user_url_slug>’) def timeline(user_url_slug): # Do some stuff return render_template(‘profile/timeline.html’) @profile.route(‘/<user_url_slug>/photos’) def photos(user_url_slug): # […]

  • Kong configures JWT authentication

    Time:2020-7-9

    We only demonstrate inservicesUpper configurationjwtauthentication. Service opens the JWT plug-in #Create a service to be verified by JWT. A successful response returns Baidu curl -x POST localhost:8001/services -d “name=service.jwt” -d “url=http://www.baidu.com” #View plug-in list curl -X GET localhost:8001/services/service.jwt/plugins #Open JWT plug-in curl -X POST localhost:8001/services/service.jwt/plugins -d “name=jwt” #View the JWT plug-in curl -X GET localhost:8001/services/service.jwt/plugins/jwt […]

  • Solve the problem that webpack alias cannot be used in Vue cli scaffold project under idea and webstorm

    Time:2020-7-9

    Question screenshot:     Solution: 1. Open the file > setting window 2. Search webpack     3. Choose the following path     Problem solving