[operating system Linux] solutions without iptables
I. check iptables service status
First check the status of iptables service
[root@woxplife ~]# service iptables status
iptables: Firewall is not running.
The iptables service is installed, but the service is not started.
You can install it directly if it is not installed.
yum install -y iptables
...
Added by Flukey on Thu, 31 Oct 2019 13:33:03 +0200
Common Docker container operation commands
!!!!! Container can only be created with image!!!!! , write it down, take the test!Download a centos image before you talk about the container operation command (this command is available in the previous "common Docker image operation command". Students who don't know can go to see it)
//First check centos.
[root@iz Two ze0lvzs71710m0 ...
Added by LTJason on Fri, 25 Oct 2019 06:33:01 +0300
Linux Firewall basic instance
This is a basic operation example of Firewalld, using the Firewalld graphical operation interface for access control operation.
Experimental topology
requirement analysis
First, the topology involves two regions. Here, work and public regions are used to make corresponding rules.
1. icmp is forbidden in the work area. 192.168.100.101 is allo ...
Added by EdN on Wed, 23 Oct 2019 07:40:07 +0300
cisco switch configuration ssh Remote Login
Preface:
Recently, I have sorted out some previous study notes (some of them are missing, some of them will be disordered, and I will make up later).
In the past, it was stored locally, and this time it was transferred to the network for standby.
cisco SSH Remote Login configuration
0. Configure ip, start port
Switch>enable ...
Added by TaosBill on Thu, 17 Oct 2019 23:59:25 +0300
Dynamic Tree and Data Table of SPA Project
Catalog
Tree menu
Data tables and paging
This is my project hierarchy.
Tree menu
Today is based on the last improvement, access to background data, dynamic display of the tree menu, and then the menu can click to jump to different pages.
The data used the code of the last SSH tree menu and Book ...
Added by dyconsulting on Mon, 07 Oct 2019 20:25:09 +0300
centos7 installs hadoop pseudo-distributed learning environment
A hadoop pseudo-distributed environment is built using virtual machines to simulate a small-scale cluster for learning.
Install a centos7 system in the virtual machine
ip
host name
192.168.158.30
hadoop.master
1. Installing the java environment I installed JDK 1.8
Installation method: https://blo ...
Added by weaselandalf on Sun, 06 Oct 2019 19:14:29 +0300
Initialize saltstack minion
Many people will struggle between saltstack and ansible. Whether saltstack is good or ansible is good. First of all, we should realize the advantages and disadvantages between them.Saltstack is based on zero mq messaging system, which can achieve high concurrency (theoretically, a salt-master can concurrently run 1000 minions in a short time), ...
Added by php_blob on Sun, 06 Oct 2019 05:54:39 +0300
ssh Secret Login_Cluster Distribution Script xsync
1. ssh Secret-Free Login
ssh ip address
[root@192 ~]# ssh 192.168.1.102
root@192.168.1.102's password:
Last login: Mon Feb 18 20:40:28 2019 from 192.168.1.101
Secret-free login configuration
Generating public and private keys
[root@192 ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which t ...
Added by SammyP on Sat, 05 Oct 2019 23:30:59 +0300
shell project-distribution system
Distribution System-expect
yum install -y expect
//Automatic remote login
#! /usr/bin/expect
set host "192.168.133.132"
set passwd "123456"
spawn ssh root@$host
expect {
"yes/no" { send "yes\r"; exp_continue}
"assword:" { send "$passwd\r" }
}
interact
After automatic remote login, execute commands and exit
#!/usr/bin/expect
set user "roo ...
Added by svan_rv on Sat, 05 Oct 2019 03:26:09 +0300
Centos Foundation and Installation
Centos Foundation and Installation
Centos installation
1. Linux version derivation
|- AT&T Unix: AT&T was originally developed, and later set up Bell Laboratory with Western Electric Company to continue to develop Unix from UNIX to UNICS (UNiplexed Information and Computing Service), while ...
Added by tc1 on Wed, 25 Sep 2019 15:18:46 +0300