Tag:linux

  • Aliyun Windows to Linux System, Data Disk File System Change

    Time:2019-5-15

    ** The file format of windows data disk is ntfs, Linux file format is ext2/3/4, etc.Now when the server system is switched from windows to linux, the format of the system disk is automatically switched to linux, but the data disk is ntfs.Although the data disk format can be read directly through software without changing […]

  • Webstorm + create-react-app to build react.js running environment

    Time:2019-5-15

    We’ve already installed it.create-react-appNow we need a powerful development tool 1. The first step in installing webstorm: accessing the official website in Ubuntu 2. inputcd /DownloadsThen ls, you can see the Web torm compression package 3. After decompressiontar -zxvf Webstorm-2018.1.5.tar.gzThen check in LS to see if the decompression is good 4. After decompression, the program […]

  • Redis (error) NOAUTH Authentication required solution

    Time:2019-5-15

    Enter the password to solve auth redis (redis is the password of redis) 127.0.0.1:6379> set mykey lisi (error) NOAUTH Authentication required. 127.0.0.1:6379> auth redis OK 127.0.0.1:6379> set mykey lisi OK 127.0.0.1:6379> get mykey “lisi”

  • Linux shell condition determines the meaning of-a to-z in if [Recommendation]

    Time:2019-5-15

    [-a FILE] If FILE exists, it is true. [-b FILE] True if FILE exists and is a block of special files. [-c FILE] True if FILE exists and is a word-specific file. [-d FILE] If FILE exists and is a directory, it is true. [-e FILE] If FILE exists, it is true. [-f FILE] True […]

  • How to restart the Linux desktop card? Two ways to restart and refresh the desktop

    Time:2019-5-15

    In deepin Linux sometimes encounter desktop card situation, this time can also adopt similar methods, specific reference to this experience. Method 1. Setting Shortcut Keys 1. Restarting desktop is similar to F5 refresh function on windows. It often operates very frequently. It is difficult to input commands every time. You can add a shortcut key […]

  • Use logrotate to complete automatic log segmentation and rotation

    Time:2019-5-14

    When deploying network applications, logs are saved for data analysis and troubleshooting. However, for servers with high concurrent requests, log files will grow rapidly and consume disk space rapidly. At the same time, it will be very slow to analyze a large file to troubleshoot problems. Therefore, we usually need to store the logs according […]

  • Server system optimization

    Time:2019-5-14

    1. Purchasing of Database Physical Machines CPU: 64-bit CPU, 2-16 CPUs per machine. At least 2-4, the larger the L2 (cache) is, the better Memory: 96-128G, MySQL 3-4 instances. 32-64G, 1-2 examples Hard Disk: Machinery: Select SAS, the more the better, the higher the speed, the better 15K Performance: SSD (High Concurrency) > SAS (General […]

  • Dockerfile reference

    Time:2019-5-14

    DockerCan fromDockerfileRead instructions to automatically build images.DockerfileIs a text file that contains commands that users can invoke in order to mirror. Users can use itdocker buildContinuous execution of command-line instructions to turn on an automatic build. This document describes the followingDockerfileCommands that can be used. When you have finished reading this document, please refer toDockfileBest […]

  • Len (x) defeats X. len (), and looks at Python’s design idea from the built-in function

    Time:2019-5-14

    Built-in functions are a major feature of Python, and many common operations are implemented with minimal grammar. They are predefined in the built-in namespace, ready-to-use, WYSIWYG. Python is recognized as a novice-friendly language, and this statement holds true. Built-in functions play a crucial role in it. For example, to find the length of string x, […]

  • Detailed Common Usages of Linux Command Head and Tail

    Time:2019-5-14

    Head and tail are a set of commands that you want to correspond to. By default, 10 rows of records are displayed at the beginning and the end of the file, respectively. head The head command can output the beginning of a paragraph of text to standard output. The head command can handle both text […]

  • Processing method of MySQL 5.7.20 password change back under Linux CentOS 7.4

    Time:2019-5-14

    After the upgrade of Mysql to version 5.7, the security has increased greatly. But… I can’t remember with complexity. Forehead. Originally the brain is not easy to make, but also remember that so complex, especially local is not necessary, or root is convenient. Enter MySQL mysql> SHOW VARIABLES LIKE ‘vali%’; +————————————–+——–+ | Variable_name | Value […]

  • How do Ctrl and capslock keys exchange in Linux system?

    Time:2019-5-14

    In linux, you want to exchange the capslock and Ctrl keys on the keyboard to facilitate normal input. How to set them? Now let’s take a look at the detailed tutorial. 1. First, click on the taskbar“starter”。 2.starter” Find the terminal and run it. 3. Create a home directory for the current user in the […]