linux privilege maintenance (partial)
Modify permissions:
Add Account:
Add normal users:
useradd guest;echo 'guest:123456'|chpasswd
Add root user (mentioned above)
echo "test:advwtv/9yU5yQ:0:0:,,,:/root:/bin/bash" >>/etc/passwd
Account: test
Password: password@123
It's easy to add an account to maintain permissions.
Defense method:
Query Privileged User Privi ...
Posted by bubbadawg on Fri, 19 Nov 2021 12:48:45 -0800
docker introduction notes
Docker
Basic composition of Docker
Docker installation
uname -r view system kernel
Cat / etc / OS release to view the system configuration
[root@palmer docker]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o ...
Posted by OLG on Fri, 19 Nov 2021 00:37:55 -0800
Prometheus data storage, clustering and high availability
1. Prometheus storage bottleneck
It can be seen from the architecture diagram of prometheus that prometheus provides local storage, that is, tsdb timing database.
Advantages of local storage
Using local storage can reduce the complexity of Prometheus deployment and management, and reduce the complexity caused by high availability (HA). ...
Posted by phpsharma on Tue, 16 Nov 2021 19:34:55 -0800
Linux operating system disk partitions, instructions
1. Linux Disk Partitions
Total: 20G
Linux Disk Partition
Partition nameCatalogcapacityPrimary partition/>2Gboot partition/boot500M or soSwap partition/swap500~600MUser Partition/homeRemaining All
/boot: Used to store files necessary for Linux startup, that is, the contents of the boot partition we built/home:Home directory for ...
Posted by danelkayam on Fri, 12 Nov 2021 09:43:46 -0800
NGINX optimization and anti-theft chain
Operation steps
1. Install nginx
[root@localhost ~]# yum -y install pcre-devel zlib-devel gcc gcc-c++ make
[root@localhost ~]# useradd -M -s /sbin/nologin nginx
[root@localhost opt]# cd nginx-1.12.0/
[root@localhost nginx-1.12.0]# ./configure \
> --prefix=/usr/local/nginx \
> --user=nginx \
> --group=nginx \
> --with-http_stub ...
Posted by benyamin on Fri, 12 Nov 2021 04:39:37 -0800
Can't build a station? Let's build one from scratch (super detailed)
Double eleven is coming. Do you plan to buy a cloud server and build a website, such as a personal blog? This paper starts from scratch. The software is WordPress, which is relatively mature, and the operating system is CentOS
1. Environmental preparation
Official website address: https://cn.wordpress.org
PHP 7.4 or laterMySQL 5.6 or later, ...
Posted by hismightiness on Mon, 08 Nov 2021 20:34:01 -0800
docker of Linux system
The main contents of this chapter are as follows:
1, Install docker
Docker is an open source application container engine, which is based on Go language and complies with Apache 2.0 protocol. Docker allows developers to package their applications and dependency packages into a lightweight and portable container, and then publish them to ...
Posted by techiefreak05 on Sun, 07 Nov 2021 14:57:22 -0800
SRE operation and maintenance engineer's notes - Linux user group and permission management
Users, groups, and permissions
Content overview
Security model of LinuxUser and group related filesUser and group management commandsUnderstand and set file permissionsDefault permissionsspecial competenciesFile access control permissions
1. Linux Security Model
Resource allocation:
Authentication: authentication to verify the user's i ...
Posted by cerin on Sun, 07 Nov 2021 13:54:44 -0800
Explanation of reserved word instruction in Dockerfile
I learned Docker briefly before. At that time, it was to quickly deploy a project. It passed quickly. I was a little unfamiliar with the writing of Dockerfile files.
So I wrote this article. I hope I can help you!!!
1, What is Dockerfile?
Concept:
Dockerfile is a build file used to build Docker images. It is a script composed of a series ...
Posted by tomlei on Tue, 02 Nov 2021 03:42:41 -0700
centos7 builds LNMP and deploys wordpress
**WordPress is a commonly used software for building personal blog websites, which is developed in PHP language.
Build nginx By default, CentOS 7.6 does not have the source of nginx. You need to configure the official website of nginx to provide the source address of Gentos. Configure nginx source
[root@hl-web lnmp-wordpress]# rpm -Uvh h ...
Posted by bUcKl3 on Sat, 30 Oct 2021 01:56:20 -0700