Tag:linux

  • How to install the latest version of Nginx on CentOS 7 in 2019

    Time:2019-2-17

    Beginning of this article: Development Guide: How to install Nginx on CentOS 7 Nginx readengine xIt is a free, open source, high-performance HTTP and reverse proxy service, mainly responsible for loading some of the more visited sites. Nginx can be used as a stand-alone Web service or as a reverse proxy for Apache or other […]

  • A JSON string and a command line artifact JQ for file processing are available for windows and Linux

    Time:2019-2-17

    Download address of this command line artifact: https://stedolan.github.io/jq/# Both Windows and Linux versions have only two executable files, which are no more than 2MB in size. Taking Windows version as an example, this paper introduces its usage. Suppose I have a complex JSON file that is opened with a text editor such as Sublime Text, […]

  • Don’t let CD commands waste your time

    Time:2019-2-16

    The most impatient thing to work under the terminal is path switching, without the help of automatic path switching, just like walking in the mud. So we invented various tools such as autojump / Z / FASD to improve the efficiency of path switching. Today we introduce a better tool: Z. lua, which is like […]

  • The use of merge into in Oracle database updates when it exists and inserts when it does not exist

    Time:2019-2-16

    1. In practical application scenarios, we will use: if this data is in the table, update the data; if this data does not exist, insert the data.In oracle, you can use merge into to implement, and in MySQL you can use ON DUPLICATE KEY UPDATE. Here, we only introduce the merge into implementation method in […]

  • How to run. AppImage file in Linux

    Time:2019-2-15

    What is AppImage The core idea of AppImage is that an application = a file. Each AppImage contains the application and all the files needed to run the application. In other words, Apart from the underlying components of the operating system itself, Appimage does not need to rely on packages to run. Let all users […]

  • Installation of Shadowsocks-go in Centos 7.6 in Aliyun

    Time:2019-2-15

    Go language development environment installation Go installation steps Download shadowsocks-go go get github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-server Configure config vim /opt/shadowsocks/config.json Enter the following { “server”:”0.0.0.0″, “local_port”:1080, “port_password”:{ “8787”:”xxxx” }, “timeout”:600, “method”:”aes-256-cfb” } Copy the executable file and execute it cp $HOME/go/bin/shadowsocks-server /opt/shadowsocks/shadowsocks-server /opt/shadowsocks/shadowsocks-server -c /opt/shadowsocks/config.json >/opt/shadowsocks/log.log & Centos7 Firewall Open Port # Add new ports based on / […]

  • “Authentication Failure Switch to greeter…” is displayed after Ubuntu locks the screen.

    Time:2019-2-15

    Original address: Ubuntu locks the screen and displays “Authentication Failure Switch to greeter…” Ubuntu version: Ubuntu 16.04.5 LTS Description of the problem: The login box behind the lock screen prompts “Authentication Failure Switch to greeter…” Bug record address: Authentication Failure Solution: Execute the following commands on the command line: $ sudo apt install –reinstall lightdm […]

  • Linux sudo command in detail

    Time:2019-2-14

    Introducer The previous article talked about the need to create new users and how to create new users. If you don’t use the root account, then under the directory where the owner is root, you won’t be able to execute it.mkdirWait for the order? Of course not. We can use it.sudo。 sudo First, look at […]

  • Installation of mysql8 in Aliyun CentOS 7.6

    Time:2019-2-14

    Create MySQL users, user groups groupadd mysql useradd -g mysql mysql passwd mysql Mariadb in unloading system Search for queries rpm -qa|grep mariadb Return mariadb-libs-5.5.60-1.el7_5.x86_64 Unloading rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64 Return error: Failed dependencies: libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64 libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64 # Forced unloading rpm -e –nodeps mariadb-libs-5.5.60-1.el7_5.x86_64 Download MySQL rpm […]

  • Easily solve the problem of uneven distribution of Linux disks

    Time:2019-2-14

    Problem description Recent useUbuntuAlways prompt/ insufficient residual home space。 After several deletions of useless files, it is still not completely resolved. Tentative plan The above problems arise mainly from the initial installation of the system./homeThere is too little space allocated, and at this point, there is more space in the root directory. So at first […]

  • Docker Image Modification Time Zone Based on Alpine and Ubuntu

    Time:2019-2-13

    Preface When we use the basic mirror of pull abroad, the time zone becomes an unavoidable problem. Foreign time zones are usually UTC and need to be changed to domestic time zones CST. Ubuntu Basic Mirror Modification Time Zone FROM ubuntu:16.04 MAINTAINER [email protected] # Setting up time zone RUN ln-sf/usr/share/zoneinfo/Asia/ShangHai/etc/localtime# has been tested and sometimes […]

  • Installation of nginx 1.14.2 in Aliyun CentOS 7.6

    Time:2019-2-13

    Added nginx User Groups groupadd nginxuseradd -g nginx nginx Download and decompress wget “http://nginx.org/download/nginx-1.14.2.tar.gz” tar xzvf nginx-1.14.2.tar.gz # Download Clean Cache Plug-in at the same time wget “http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz” tar xzvf ngx_cache_purge-2.3.tar.gz Compilation and installation Need to use root users cd nginx-1.14.2 # The ngx_cache_purge-2.3 path is the path you just Unzipped ./configure –user=nginx –group=nginx –prefix=/usr/local/nginx […]