• Django creates a project


    Create a new Django project with the following files. There are two ways to create a project: 1. Command line: Django admin py startproject mysite 2. Create directly in pycharm manage. Py is the startup file. urls. Py is the controller. The first parameter of path is the access path, and the second parameter is […]

  • Address translation technology NAT of hcna Routing & Switching


    Previously, we learned about the topics related to the packet filtering tool ACL. For review, please refer tohttps://www.cnblogs.com/qiuhom-1874/p/15156308.html; Today, let’s talk about address translation technology NAT related topics;   NAT technology background We know that all the addresses that can be routed on the Internet are public addresses, but with the development and application of the […]

  • Laradock PHP multi version container coexistence


    thinkPHP3. 2 projects use mongodb and mongoclientThe error message is shown in the figure. It can only be used in environments lower than php7. Therefore, another php56 needs to be deployed in laradock Enter the laradock directory, copy a copy of PHP FPM and name it php-fpm-56cp -r php-fpm php-fpm-562. Open docker compose YML file, […]

  • be careful! Monitor whether MySQL service is normal. Just understand these four methods


    Source: http://blog.chinaunix.net/uid-90618-id-5846539.html?utm_source=tuicool&utm_medium=referral Monitor whether the MySQL service is normal. The general idea is: check whether port 3306 is started, PS check whether the mysqld process is started, log in to MySQL from the command line, return the result of the execution statement, detect PHP or JSP programs (developers are required to develop programs), etc; Method […]

  • Class starts, Dubbo go micro service upgrade practice


    Zeng fanwei, senior development engineer of Hangzhou kaikela Education Technology Co., LtdSource|Alibaba cloud native official account Hangzhou kaikela Education Technology Co., Ltd. is an online education company dedicated to providing learning guidance for primary and secondary school students. At present, the company’s back-end service infrastructure mainly relies on Alibaba cloud native, including computing, network, storage […]

  • Be familiar with ThinkPHP and the installation of phpstudy + ThinkPHP integrated environment


    Be familiar with ThinkPHP and the installation of phpstudy + ThinkPHP integrated environment Cause: Recently, the company will establish an agent distribution system to facilitate agents to place orders and purchase goods directly from our app (applet, official account, web). This project is outsourced to Party B. After the completion of Party B’s development, Party […]

  • CentOS installs the Java runtime environment JDK + Tomcat


    1、 Install JDK7 1. To view the available versions of the JDK: yum search java|grep jdk 2. Install jdk1 7: yum install java-1.7.0-openjdk The default installation is (the small version is marked in red, which may be different. Note when adding environment variables below): /usr/lib/jvm/java-1.7.0-openjdk- 3. Set environment variables: vi /etc/profile Add the following: #set […]

  • Docker + Jenkins realize automatic deployment


    background When we come to the company in the morning, the first thing we do is check out the latest source code from the source code library, and then conduct unit testing. If we find a failed test, we will find relevant colleagues to debug and repair the error code. Then go back to your […]

  • Nginx load balancing basic usage


    Nginx load balancing basic usage catalogue Nginx load balancing basic usage Install nginx Configure load balancing Mode 1, nginx Configuration in conf configuration file: Method 2: use include to import external files: Install nginx Download nginx from the official website:http://nginx.org/en/download.html Before installing nginx, you need to install some dependencies # gcc yum -y install gcc […]

  • Security best practices + Klocwork


    Security best practices must be followed when deploying any web-based application. Here, we outline the settingsKlocwork(one)Static code analysisAnd the steps of applying the security static testing tool (SAST)) to achievesecurityOperation. This process is usually deployed locally and behind the firewall. We should also take additional precautions to prevent anything from being exposed on the Internet. […]

  • Send mail using SMTP Lib


    I saw a lot of tutorials about smtplib a few days ago. The code of almost all tutorial examples is very complex (I don’t feel very friendly to smtplib novices). Therefore, I want to teach you how to send email in the simplest way. Introduction to smtplib SMTP (Simple Mail Transfer Protocol) is the simple […]

  • Detailed steps for xshell remote connection to Linux (explained by Xiaobai)


    Environmental Science:Linux server I use CentOS virtual machine, IP: OK, no more nonsense, just go through the process premise jurisdiction First, open the Linux server, open the command terminal, and switch to root permission Note: the password is not displayed here, so be sure to enter it correctly This step is crucial!!!! Because I […]