Articles under category Linux

Direct use is not recommended here. Sudo Yum install -y docker-ce To install docker, the docker version of CentOS's own source will be relatively old, or it may not exist at all.

Here I am talking about CentOS Linux release 7.4.1708 (Core) Operating in an environment, theoretically. Centos7 currency

0. preparatory operation

The official recommendation is to delete the old docker related software in the computer.

 Sudo Yum remove docker \
docker-common \
docker-selinux \
docker-engine

Install necessary tools.

 Sudo Yum install -y yum-utils \
device-mapper-persistent-data \
lvm2

Add docker's own official source

 Sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

Of course, you can use it at this time. Sudo Yum install docker-ce Install the latest docker community version. If you have special requests or do not want to use the latest version of edge, you can continue to see it.

1. start

The operation here is for you to install docker for the first time.

Use Yum list docker-ce --showduplicates sort -r View the version number of the current docker community version and choose to install it.

 This is the related version information I wrote when I wrote this article 
docker-ce.x86_64 17.11.0.ce-1.el7.centos @docker-ce-edge
docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.0.ce-1.el7.centos

The first list is Package name
The second column is Version name
The third column is Marking stability or testing

Of course, we can't install the first row of the guys today. At least we can install the following ones in the first row.

When we install, we need to make up the package information.

For example, select second lines.

 Docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable

Package name = first column number first part + '' + second column

Intermediate use - Connect

The package name is purple. Docker-ce-17.09.0.ce-1.el7.centos

Now you can start installing.

 Sudo Yum install docker-ce-17.09.0.ce-1.el7.centos

. Waiting for the installation to complete, the long installation process (depending on the machine performance configuration, the installation time will change).

After installation, you can perform the following actions.

 To open docker
sudo systemctl start docker

#, add boot booting (optional) 
sudo systemctl enable docker

Try docker?

 Do you see whether version information matches 
docker version?

Normal execution has output OK.

PS: if you are not using it Root To log in, you also need to add docker group to add the current user to docker group.

 The docker user group 
sudo groupadd docker
# is created to add the current user to the docker group. $USER is the user's environment variable 
sudo gpasswd -a $USER docker
#. At this time, it is necessary for the user to restart the application.

2. install docker-compose (optional)

What can I do about it? I can't tell you now. After all, it took two days to see it.

Here I will intercept it from unknown places and introduce it to you.

Docker Compose is the last part of Docker orchestration service. The Machine mentioned earlier allows users to install Docker quickly on other platforms, Swarm enables Docker containers to run efficiently in clusters, and Compose allows users to deploy distributed applications in clusters. To put it simply, Docker Compose belongs to an application layer service. Users can define which container group runs which application, which supports dynamic change of application and expands when needed.

Official installation order, version number 1.17.0 can replace the latest. GitHub page view

 Sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

Modify command permissions

 Sudo Chmod +x /usr/local/bin/docker-compose

View version information

 Docker-compose version

The next one is impossible to be spicy. This generation is not likely to be spicy and spicy. The game on steam is spicy and fun. How beautiful is it? How beautiful is it? It can't be spicy.

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...

Solve

 Sudo Yum provides /usr/bin/ab
 Loading mirror speeds from cached hostfile
* base: mirror.fileplanet.com
* elrepo: ftp.yz.yamagata-u.ac.jp
* epel: epel:, "Dan" and "Wei": the source is: matching source:

Use Httpd-tools-2.4.6-67.el7.centos.x86_64 This package name

implement

 Sudo Yum install -y httpd-tools-2.4.6-67.el7.centos.x86_64

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).

Setp0

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

 PHP -v

Setp1

First, get ready for composer-setup.php.

 PHP -r "copy ('https://getcomposer.org/installer','composer-setup.php')";

Setp2

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

Setp3

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

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

Setp4

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.

IP, SS

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

 SS

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

 SS -ant

Netstat -anu

 SS -anu

Traceroute/traceroute6 replacement

 Tracepath

Route replacement (-6 = IPv6)

 IP route

Ifconfig eth0 up/down replacement

 IP l set eth0 up/down

Foundation: installation

server information :
1.System

CentOS release 6.9 (Final)
Kernel r on an M

2.Configuration

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://npm.taobao.org/mirrors/node/v6.10.2/node-v6.10.2-linux-x86.tar.gz 
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 
pwd
# 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_64

  1. Configuration

1h1g
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 -

This page loaded in 0.000941 seconds