CentOS7 -- Kickstart + PXE for unattended batch installation configuration
What is Kickstart Installations?
Kickstart Installations for unattended automatic installation
Kickstart files, which are ready before installation, can be used to automatically perform the installation. It can be saved on a single server system and supports one to many: that is, a single file installs CentOS on multiple computers
All Kickst ...
Posted by w.geoghegan on Wed, 13 May 2020 03:41:01 -0700
3-7. iptables (firewall) & selinux
I. iptables
1) Check the status of the firewall
The firewall service name in centos7 is firewalld, no longer iptables
[root@localhost ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since One 2017-12 ...
Posted by Adam W on Sun, 10 May 2020 09:00:35 -0700
Deploy ntp services
In the privatization platform, ntp server needs to be deployed. Because it is two physical servers, in order to avoid single point problem, two ntp servers need to be deployed here. Other clients in the same network segment need to calibrate and synchronize the clock with these two servers through ntp service.
Since it is a private platform, o ...
Posted by errtu on Sat, 09 May 2020 02:15:44 -0700
A note on the problem of non aware updating program of nginx+tomcat cluster users
Before, nginx+tomcat cluster configuration was a simple polling mechanism
upstream servers{
#server 172.25.67.29:9091 weight=1 max_fails=1 fail_timeout=50;
server 172.25.67.29:9091;
server 172.25.67.27:9091;
server 172.25.67.27:8380;
}
As shown above. In this way, it's OK to restart one of the t ...
Posted by w.geoghegan on Mon, 04 May 2020 19:49:02 -0700
iptables persistence under CentOS
iptables rule persistence
Set firewall rules
iptables -A INPUT -s 1.1.1.1/32 -p tcp -m tcp --dport 22 -j DROP
iptables -A INPUT -s 2.2.2.2/32 -p tcp -m tcp --dport 22 -j DROP
iptables -A INPUT -s 3.3.3.3/32 -p tcp -m tcp --dport 22 -j DROP
iptables -A INPUT -s 4.4.4.4/32 -p tcp -m tcp --dport 22 -j DROP
Save firewall rules
service iptabl ...
Posted by TechGuru on Sun, 03 May 2020 22:15:49 -0700
Redis installation + Remote Access + power on and self start under centos
1, Install redis
1. Download redis installation package
Go to the official website http://redis.io , you can also use the wget command
cd /usr/local/soft/
wget http://download.redis.io/releases/redis-4.0.6.tar.gz
2. Unzip
tar xzf redis-4.0.6.tar.gz
3. Compile and install
cd redis-4.0.6
make
2, Remote access
...
Posted by jonnym00 on Sun, 03 May 2020 17:08:40 -0700
CentOS 7.3 installation and configuration vsftp
1, Configure firewall and open the port required by FTP service
Turn off the firewall of the system
#Stop firewall
[root@localhost ~]# systemctl stop firewalld.service
#Disable startup of firewall
[root@localhost ~]# systemctl disable firewalld.service
Install iptables firewall
#install
[root@localhost ~]# yum in ...
Posted by Zangakat on Sun, 03 May 2020 14:51:12 -0700
Using upnp to configure router port mapping under ubuntu
Using the command line tool MiniUPnP client
Installation method:
Download the source code here and compile it as follows:
make
sudo checkinstall
This way, you can uninstall it later.
usage method:
Usage : upnpc [options] -a ip port external_port protocol [duration]
Add port redirection
upnpc [ ...
Posted by phpeanuts on Thu, 30 Apr 2020 19:39:27 -0700
Laravel v7.7 publishing container supports variable parameters
The Laravel team yesterday released v7.7.0, which includes container supported constructors supporting variable parameters, some new HTTP client functions, Blueprint's new rawIndex() method and all the latest functions in the 7.x branch. Repair and change:
HTTP client GET request support array
Daniel Mason contributed to the HTTP client's suppo ...
Posted by busyguy78 on Thu, 23 Apr 2020 00:00:00 -0700
Viewing and shutting down Selinux
Note: This article is not an original article, which is transferred from the following:
View and setup of Selinux
1. Check SELinux status
1.1 getenforce
The getenforce command is a combination of the words get (get) and enforceto view the selinux status, as opposed to the setenforce command.
The setenforce command is a combination of th ...
Posted by unixmiah on Wed, 15 Apr 2020 10:33:34 -0700