Installation and configuration of debian common software

Pure personal record backup, if there are errors, please correct. Add Chinese support Enter dpkg-reconfigure locales at the terminal, then select zh_CN.UTF-8 UTF-8 Installation of Siyuan font is a new font released jointly by google and adobe in 14 years. It supports Chinese, Japanese and Korean fonts. The display effect is quite good. It ...

Added by jpmm76 on Thu, 04 Jul 2019 03:14:09 +0300

sudo execution script could not find environment variables

brief introduction Under the normal user, setting and export ing a variable, then executing echo command with sudo, can get the value of the variable. But if the echo command is written into the script, then sudo executes the script, the variable can not be found, and the value can not be obtained. The following is the case: $ cat tesh.sh ...

Added by fredyap1234 on Thu, 04 Jul 2019 00:38:25 +0300

[Debugging Tool] tcpdump

Original address: tcpdump grab package tool usetcpdump is a necessary tool for debugging network communication programs.tcpdump is powerful and you can see every detail of the network communication.For example, TCP, you can see three handshakes, PUSH/ACK data push, close four waves, all details.Include bytes per network packet, time, etc. The s ...

Added by trilbyfish on Mon, 24 Jun 2019 19:02:10 +0300

Build your own Git server in Ubuntu 14.04

Source environment will be built recently. There was no ready-made environment, so we had to build it ourselves. Based on Ubuntu 14.04. Other versions of Ubuntu are theoretically available. Follow-up in collating again about Git Build under Server Android Source version management.   Ad locum git The benefits of version management are n ...

Added by rpanning on Wed, 19 Jun 2019 00:17:58 +0300

Ali Yun redis Big key Search Tool

Redis provides a list, hash, zset and other complex types of data structures. When business is used, a key may be too large due to unreasonable key design. Because redis is a simple single-threaded model, business will have a certain impact on the acquisition or deletion of large keys. In addition, in cluster mode, the generation of large keys ...

Added by rahish on Mon, 17 Jun 2019 00:13:00 +0300

Django deployment in Ubuntu 14.04.

Step one.   sudo apt-get update sudo apt-get upgrade Update first. The mainstream deployment of Django: nginx+uwsgi+django   Step 2, Install nginx sudo apt-get install nginx Install nginx. If you need to install the latest nginx, you need to download the source package from the official website for manual compilation. The approximate file struc ...

Added by importune on Sat, 15 Jun 2019 19:17:47 +0300

System CTL enables nginx processes to automatically restart after hanging up

  Following the article on July 31, 2018: vim /lib/systemd/system/nginx.service   [Service]Restart=alwaysRestartSec=1Type=forkingPIDFile=/run/nginx.pid    systemctl daemon-reload systemctl start nginx After kill ing, the nginx will be automatically restarted. ------------------------------------------ If the original link is valid, ...

Added by Hoangsta on Wed, 12 Jun 2019 22:53:15 +0300

10 Minutes Quick Start Redis

Redis installation Reprint: https://github.com/jaywcjlove/handbook Official Compilation and Installation $ wget http://download.redis.io/releases/redis-4.0.0.tar.gz $ tar xzvf redis-4.0.0.tar.gz -C /usr/local/ $ cd /usr/local/redis-4.0.0 $ make $ make test $ make install # The program will execute automatically: # mkdir -p /usr/local/bin ...

Added by ashmo on Fri, 07 Jun 2019 03:13:41 +0300

Bridging Scheme of Wireless Router

Bridging Scheme of Wireless Router Application scenario Conditions: First, we have a Wi-Fi with Internet access. Let's assume wifi. Now we have two routers A and B, two servers SA and SB, and one router on each server. Objective: Connecting to A through a computer, we can log in to the server SA and have access to the Internet in SA.   ...

Added by alsinha on Wed, 29 May 2019 22:18:39 +0300

Construction of Ali Cloud Server Deployment Environment

We are in the age of cloud, system operation and maintenance is simpler and more direct than any other era. Record your recent steps in deploying the Aliyun server environment and share them with you. Make a record of yourself. OS information: Linux version 2.6.32-696.3.2.el6.x86_64 (mockbuild@c1bl.rdu2.centos.org) (gcc version 4.4.7 201 ...

Added by mikefn on Sun, 26 May 2019 01:54:03 +0300