Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

"actual combat" open source project dockerized operation and maintenance deployment-linux and docker basic commands (3)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!

Original link address: "actual combat" open source project dockerized operation and maintenance deployment-linux and docker basic commands (3)

The graphical interface for long-term use of windows,windows is very easy to use, and the threshold for entry is very low. The disadvantage is that the graphical interface sometimes stutters, some software needs to be installed and the system needs to be restarted, and the blue screen may crash when the hardware system is not very good. These shortcomings prevent windows from entering the server market. Linux does not have these shortcomings.

Linux

Advantages of the system

Cross-platform hardware support

As large as the hardware equipment of the server, it is so small that it can only be a watch, and the interior of the TV can only be linux. It is very procedural when watching TV, and it will not often crash.

Rich software support

All kinds of software are easy to find. For example, centos can use yum when installing software. Ubuntu uses apt-get. Both instructions install the software very intelligently and smoothly.

Linux supports multi-user and multi-task

To establish roles for different users, some roles have larger rights, and some roles have relatively small permissions, which is relatively safe.

Reliable security

The most viruses are windows, the mac os,linux systems with relatively few viruses, the main mac os and linus systems, their permissions are relatively sound. Even if the virus is placed on the linux system, it cannot be started without permission.

Good stability

When some critical applications of windows system security, you need to be prompted to restart to take effect. Feel very bad, linux claimed that 20 years do not restart, do not crash.

Perfect network function

Linux's network firewall is perfect, and its own firewall is already very powerful.

Directory structure

Command introduction

List contents of the directory

Ls

Create a directory

Mkdir

Create a file

Touch file.txtecho idig8.com > file.txtcat file.txt

Copy a file or directory.-r is a directory.

Cp myfile newfilecp-r myfile newfile

Delete files or directories,-r directory,-f do not need to prompt

Rm-rf myfile

Change permissions

Chmod 700newfilelinux7 Firewall

Centos7 default installation of the firewalld firewall, can control access from the Internet to restrict the transmission of data through.

# status firewall-cmd-- state# start service firewall start# shutdown service firewall stop# restart service firewall restart# add port segment firewall-cmd-- permanent-- add-port=8080-8085/tcp# port effective firewall-cmd-- reload# delete port segment firewall-cmd-- permanent-- remove-port=8080-8085/tcp# view open port firewall-cmd-- permanent-- list-ports# view open service firewall-cmd-- permanent-- list-servicesdocker

There is no end to installing applications directly on linux, so why do you have to do such a complex containerization? in fact, it is to solve the problem of isolation, it is more convenient to use virtual machines to deploy the environment. If it is directly within the linux, maybe I uninstall the A program, which directly affects the B program because they have interrelated software packages. Vmware is a heavyweight virtual machine, and docker is a lightweight virtual machine.

The relationship between docker virtual machine and cloud computing

If we want to deploy our own project to the server, it is not cost-effective for us to set up the server locally, such as fixed ip, server hardware, broadband application and so on. Often do things to the cloud space to apply for a virtual space, generally in the cloud space manufacturers where to buy a few cores cpu, how much memory of the machine to pay good money for your use. In fact, this method can also be achieved with docker, because the space of the docker itself is the container. When creating the container, the docker virtual machine can set how much memory the virtual space creates, what the configuration of cpu is, and what the network usage looks like. This is actually the aas cloud. After applying for the virtual cloud, there is nothing installed in the operating system, so it is more troublesome to install some software. Later, the manufacturer remembered some pre-installed features, some software needed by nginx and redis. Actually, this is the paas platform. But some users say that you install mysql,tomcat and all kinds of software for me, but I don't have the development ability, so I will give you the oa,erp project, which has off-the-shelf oa and erp systems. Just use it. This is the saas platform.

Mirrors are used to create containers. A container is an instance created from an image

Install docker

Yum-y updateyum install-y docker

Docker starts and shuts down, restarts

Serivce docker startservice docker stopservice docker restart

Search for installation images. It is slow to pull images in China. It is recommended to use DaoCloud.

Docker search javadocker pull java

Export Import Mirror

# Export docker save java > / home/java.tar.gz# Import docker load

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report