Shell command - pwd, rm for file and directory operations
File and directory operations - pwd, rm
1. pwd: display the current location information
Function description of pwd command
The pwd command displays the absolute path of the current working directory to switch back and forth between directories.
Syntax format of pwd command
pwd [OPTION]... pwd [parameter options]
Option description of ...
Posted by gemmerz on Fri, 29 Nov 2019 20:15:32 +0100
Build gitlab and deploy gitlab runner
1. Build gitlab. Before installing gitlab from yum, 502 errors were reported all the time after installation. Baidu tried online but still couldn't use it;
So this time, it is deployed in docker, as follows:
docker run --detach --hostname gitlab.forebix.com --publish 4433:443 --publish 10080:80 --publish 8022:22 --name gitlab --rest ...
Posted by Lashiec on Sat, 09 Nov 2019 16:11:42 +0100
SSH blasting emergency response
Problem finding
Log in to the virtual machine, and according to the prompt message, it is found that it is suffering from SSH explosion attack, with IP address of 159.65.230.189.
Check the log in related security logs: tail -f /var/log/secure, and find other attempts to blow up IP106.12.183.6, 182.61.166.179, 220.88.40.41.
Baidu search IP add ...
Posted by gtibok on Sat, 02 Nov 2019 08:06:32 +0100
[CentOS 7LAMP Architecture 3], Apache installation and configuration#
shallow A kind of ove
Install Apache
Apache is the name of a foundation. httpd is the package we want to install. In the early days, its name was Apache.
Apache official website www.apache.org
wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.4.29.tar.gz
wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
wget http://mirrors.cnnic.cn ...
Posted by onicsoft on Fri, 01 Nov 2019 11:11:16 +0100
CVE-2019-14287 (Linux sudo vulnerability) analysis
Author: lu4nx @ know Chuangyu 404 active defense laboratory
Author blog: CVE-2019-14287 (Linux sudo vulnerability) analysis
Original link:https://paper.seebug.org/1057/
Recently sudo was exposed a vulnerability, unauthorized privileged users can bypass the restrictions to obtain privileges. For the official repair notice, please refer to: ...
Posted by shmick25 on Tue, 22 Oct 2019 09:49:46 +0200
Establishment of redis cluster + redis replication
Environmental Science
Deployment and construction
192.168.255.250
[root@vt-manager 3010]# grep -vE "^#|^$" redis.conf
bind 192.168.255.250 ##Be sure to write the local ip and use this ip to set up the cluster.
port 3010
daemonize yes #Daemons mode (background start)
pidfile /etc/redis-cluster/3010/redis_3010.pid #pid file
logfile "/etc/re ...
Posted by NikLP on Tue, 22 Oct 2019 09:31:21 +0200
Nginx reverse proxy / load balancing / SSL configuration
Source: https://blog.csdn.net/Powerful_Fy
What is reverse proxy?
1. Two servers A and B belong to the same internal network segment, but A is not connected to the external network, B is connected to the external network, and client C has only the external network.
2. If C wants to access A through B, it needs to do reverse proxy on server B.
3. ...
Posted by Domhnall on Tue, 22 Oct 2019 02:50:00 +0200
zabbix4.0 performance tuning
##Performance tuningOverview
It's important to get the Zabbix system tuned for optimal performance.
Hardware
- use the fastest processor
- SCSI or SAS is better than IDE (by using the utility hdparm you can significantly improve the performance of IDE disks) and SATA
- 15K RPM better than 10K RPM, better than 7200 RPM
- use fast RAID storage
- ...
Posted by Darkpower on Fri, 18 Oct 2019 10:53:37 +0200
Operations and Maintenance Layout Series - Update the scaling configuration mirror automatically after updating the mirror
Scene introduction
Each time a new image is generated from the operations arrangement, the mirror inside the elastic stretch is directly replaced.
Solution
The scaling configuration source image is the public image aliyun_2_1903_64_20G_alibase_20190829.vhd.Sign in Operations and Maintenance Layout Console .If you have never opened an OOS serv ...
Posted by portaloo on Sun, 29 Sep 2019 04:33:53 +0200
No secret: teach you how to build your own GitLab library by hand
01 Preface
In this article, Gitlab is installed as the host mode. For more installation methods, Click https://git.lug.ustc.edu.cn/help/install/README.md
02 Architecture
Architecture overview:
Unicorn: Handles requests for the web interface and API, general gitlab site, mostly due to problems with this service
Sidekiq: Background jobs proce ...
Posted by vynsane on Wed, 18 Sep 2019 04:40:42 +0200