Articles under category Linux

Today, I installed a docker yo, hanging the service to try stress test.

Try to use it on your own server. AB Orders appear Zsh: command not found: ab

All right, we need to install it. Sudo Yum search ab It's strange to tell me that there are no packages available.

Search for documents...


 Sudo Yum provides /usr/bin/ab
 Loading mirror speeds from cached hostfile
* base:
* elrepo:
* epel:
* 64: Tools for use with the Apache HTTP Server
 source: base
 matching source: File Name: /usr/bin/ab

Use Httpd-tools-2.4.6-67.el7.centos.x86_ Sixty-four This package name


 Sudo Yum install -y httpd-tools-2.4.6-67.el7.centos.x86_ Sixty-four

The installation is complete.

Update at night Docker , Mastodon , Gitlab Related articles

Composer is PHP's dependency management tool, which is similar to the NPM package in the front end.

Today is how to install composer on Linux (Windows's next step, nothing wrong).


Check the PHP version number and display the version number to continue the following operation.

 PHP -v


First, get ready for composer-setup.php.

 PHP -r "copy ('','composer-setup.php')";


Input at shell interface. For global installation, please add --install-dir=bin --filename=composer. Global installation can ignore all subsequent operations.

 PHP composer-setup.php


This step is effective for ordinary users. Of course, root can also be used.

 MV composer.phar /usr/local/bin/composer


You can check your composer version number at this time.

 Composer -v

Lu Tai hostker, installed. Centos7.3 The system is put in use. Netstat -antp Meow the Internet connection.

find Netstat output -bash: netstat: command not found

After checking it out, it was discovered that RHEL7 was going to scrap these orders and discard them. Let me see what the new order is.


This is to remember the rhythm of parameters.

OK, it's quite simple. It will be used sooner or later.

Ifconfig replacement

 IP addr

Transmission status (-s for detailed display)

 IP link

Netstat replacement


Netstat -ant (-antp's output is unfriendly to the individual)

 SS -ant

Netstat -anu

 SS -anu

Traceroute/traceroute6 replacement


Route replacement (-6 = IPv6)

 IP route

Ifconfig eth0 up/down replacement

 IP l set eth0 up/down

Foundation: installation

server information :

CentOS release 6.9 (Final)
Kernel r on an M


Intel (R) Xeon (R) CPU E5-2650 V2 @ 2.60GHz
1G, 1 core (ALI lackey cloud)

Step 1

Here I use my big Taobao source.

 When you enter the storage directory, I put it under /home/nodejs, where do I see you like spicy 
cd /home/nodejs
# download nodejs binary package 
wget Https:// 
tar -xzvf node-v6.10.2-linux-x86.tar.gz
# extract a folder node-v6.10.2-linux-x86, enter the directory bin directory 
cd node-v6.10.2-linux-x86/bin
# confirm the download nodejs version is correct 
./node -v

Step 2

Now you can only operate node in this directory, so we have to add it to the user environment.

 Look at the directory where 
# is currently added, add a soft connection to /usr/local/bin
ln -s /home/nodejs/node-v6.10.2-linux-x86/bin/node /usr/local/bin/node
ln -s /home/nodejs/node-v6.10.2-linux-x86/bin/npm /usr/local/bin/npm

- reading the remainder part -

 Did not find a good map, P with a survival Road 2

Server configuration: Alibaba is not used in Ali.

  1. System

CentOS 6.5 x86_ Sixty-four

  1. Configuration

Disk 40G
Peak 100Mbps (on demand bandwidth), I haven't seen the run up yet, and there are still a few hundred volumes.

0x1. preoperation

Before installing SteamCMD, you need to install the following. Yum update Upgrade the system

CentOS x86_ 64 ( 64bit )

 Yum install mailx postfix curl WGet bzip2 gzip unzip Python TMUX Python

CentOS x64 ( 32bit )

 Yum install mailx postfix curl WGet bzip2 gzip unzip Python TMUX Python

Steam tutorial

Create a user account named steam to run SteamCMD safely, isolating, isolating, "Dan", ",", ",", "and"

It is best not to use root users to run steamCMD.

- reading the remainder part -