20k interview questions with answers for a real game company in Shenzhen in 2021

I can think of writing about these few, mainly about these few can be seen in
1 script:
#!/bin/bash What does it do? It
refers to the use of bin/bash to explain and execute #!
How does zabbix , the identifier of the special envoy, implement monitoring?

Agentd is installed on the monitored host and is responsible for regularly collecting various CNCs and sending them to the zabbix server. Zabbix-server stores the data in the database, and then
displays and plots the data on the front-end through zabbix web. The
agentd collects the data into Active mode and passive mode
Active mode: The agent requests the server to obtain the active monitoring list, and actively submits the detected data to the server
Passive mode: The server requests the agent to obtain the data of the monitored item, and the agent returns the data

Ways of resource management:

Imperative object management: kubectl command management tool
kubectl get pod
Resource type: deployment pod service

Declarative management
(define status in yaml)

How to ensure database consistency:
write and delete mysql redis data and set redis expiration time,
what modules are used when writing database salt:
file cmd pkg module service user module

What does iptables do

accept: packet release
reject: reject the packet to pass
drop: discard the packet without processing
SNAT: rewrite the source ip of the packet, directly after the action is processed, the next hop rule is generally used for the internal network to use a public network ip to access the Internet.
DNAT: also rewrite the packet Destination ip, after this processing action is completed, it will directly jump to the next regulated destination address conversion

The most typical application is to allow internal network machines to access the external network:

Modify the source address of the intranet 192.168.0.0/24 to 1.1.1.1 (the IP of the machine that can access the Internet)

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to 1.1.1.1

How does the shell pass external parameters
such as name =$1
age=$2
echo $1 $2

sh 1.sh zhangkai 30
docker has several network models

The bridge default network docker startup will create a docker0 bridge by default. The container created by default will be added to this bridge. The
host container will not get an independent network namespace, and share a
none with the host to get independent network namesapce but will not container any Configure the
container mode to use the same network namespace as the specified container. The network card configuration is also the same.
The customization is the same as the default bridge network.
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39418469/article/details/114587260