Django + Vue 部署服务器nginx + uwsgi_nginx部署django和vue项目
为了做好运维面试路上的助攻手,特整理了上百道。
STATIC_URL = ‘static/’
STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
STATICFILES_DIRS = [
os.path.join(BASE_DIR, “vue_template/dist/static”),
]
4.3
## 二.**nginx配置**
#### 1.web前端监听端口82
**服务器下载nginx /etc/nginx 路径下编辑nginx.conf文件**
proxy\_pass 和 uwsgi\_pass(Django后端运行)两种方式监听
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/.conf;
include /etc/nginx/sites-enabled/;
index index.php index.html index.htm;
autoindex off;
autoindex_exact_size off;
autoindex_localtime off;
upstream VueTest { #定义被uwsgi_pass引用的服务器组
server 127.0.0.1:83; # for a web port socket
}
server {
listen 80;
root /var/www/html;
location /lastest_report/ {
index index.php index.html index.htm;
}
}
server{
listen 82; #监听端口
server_name 10.138.8.51; #域名地址
charset utf-8;
location /static { #请求的url
alias /data/zkos/comm/libzkos_comm/tools/performance_test/django_project/static/;
}
location ^~/django/{
proxy_pass https://127.0.0.1:80; #请求转向服务器
add_header Content-Type “text/plain;charset=utf-8”;
add_header ‘Access-Control-Allow-Origin’ ‘’ always;
add_header ‘Access-Control-Allow-Credentials’ ‘true’;
add_header ‘Access-Control-Allow-Methods’ ‘GET, POST’;
}
location / {
root /data/zkos/comm/libzkos_comm/tools/performance_test/django_project/vue_template/dist/; #根目录
index index.html index.htm; #默认页面,入口文件
try_files $uri KaTeX parse error: Expected 'EOF', got '}' at position 67: …75M; }̲ locati… /index.html last;
}
location /user/{
proxy_pass http://127.0.0.1:80; #请求转向服务器
add_header Content-Type “text/plain;charset=utf-8”;
add_header ‘Access-Control-Allow-Origin’ '’ always;
add_header ‘Access-Control-Allow-Credentials’ ‘true’;
add_header ‘Access-Control-Allow-Methods’ ‘GET, POST’;
}
}
server {
listen 81;
server_name 10.138.8.51;
charset utf-8;
access_log /var/log/nginx/Zkos_Comm_Vue_access.log;
error_log /var/log/nginx/Zkos_Comm_Vue_error.log;
client_max_body_size 75M;
location / {
uwsgi_pass VueTest;
include /etc/nginx/uwsgi_params;
}
}
}
#### 2.Dango运行在83端口
vue访问Django后端数据接口ngnix监听81端口,Dango运行在83端口。
##### 1. uWSGI 部署 Django 程序,运行在83端口
下载uwsgi
>
> WSGI\_APPLICATION = 'django\_project.wsgi.application'
>
>
>
创建,编译项目根目录下uwsg.ini文件.
**注意:**
module= django\_project.wsgi
wsgi-file= /django\_project/wsgi.py
module必须找到,module名字和项目名字一致
[uwsgi]
socket=:83 # 用于和 nginx 进行数据交互的端口
#http= 127.0.0.1:83
the base directory (full path) django 程序的主目录
chdir = /data/zkos/comm/libzkos_comm/tools/performance_test/django_project/
Django s wsgi file
module= django_project.wsgi
wsgi-file= /django_project/wsgi.py
static
static-map = /static=%(chdir)/vue_template/dist/static
master
master = true
maximum number of worker processes
processes = 1
clear environment on exit
vacuum = true
#监控python模块mtime来触发重载 (只在开发时使用)
py-autoreload=1
#在每个worker而不是master中加载应用
lazy-apps=true
#允许用内嵌的语言启动线程。这将允许你在app程序中产生一个子线程
enable-threads = true
#设置在平滑的重启(直到接收到的请求处理完才重启)一个工作子进程中,等待这个工作结束的最长秒数。这个配置会使在平滑地重启工作子进程中,如果工作进程结束时间超过了8秒就会被强行结束(忽略之前已经接收到的请求而直接结束)
reload-mercy = 8
#设置最大日志文件大小
log-maxsize = 5000000
daemonize = /data/uwsgi_ini/zkos_comm_test/uwsgi.log
pidfile = /data/uwsgi_ini/zkos_comm_test/uwsgi.pid
##### 2 使用uwsg分发前端项目访问,指向后端运行端口
>
> server {
> listen 81;
> server\_name 10.138.8.51;
> charset utf-8;
>
>
> access\_log /var/log/nginx/Zkos\_Comm\_Vue\_access.log;
> error\_log /var/log/nginx/Zkos\_Comm\_Vue\_error.log;
>
>
> client\_max\_body\_size 75M;
> location / {
> uwsgi\_pass VueTest;
> include /etc/nginx/uwsgi\_params;
> }
> }
>
>
>
[http://\*\*\*\*\*:82/protal]( ) web页面访问
:81 后端交互数据访问
##### 3 遇到的问题
###### 3.1 uwsgi.ini 怎么启动
>
> `uwsgi``-``-``ini uwsgi.ini`
>
>
>
如果想查看启动是否成功:
>
> `ps aux | grep uwsgi`
>
>
>
**重新启动**
>
> uwsgi --reload uwsgi.pid
>
>
>
或
>
> sudo systemctl reload nginx
>
>
>
测试
>
> nginx -t
>
>
>
>
> lsof -i :81; lsof -i :82; lsof -i :83
>
>
>
**停止**
>
> `uwsgi``-``-``stop uwsgi.pid`
>
>
>
报错信息:
/usr/lib/python3/dist-packages/requests/\_\_init\_\_.py:89: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ModuleNotFoundError: No module named 'ZKOS\_COMM\_TEST'
unable to load app 0 (mountpoint='') (callable not found or import error)
重启:
uwsgi --reload uwsgi.pid
**启动uwsgi出现!!! no internal routing support, rebuild with pcre support !!!**
pip uninstall uwsgi
sudo apt-get install libpcre3 libpcre3-dev
pip install uwsgi --no-cache-dir
###### **3.2 查看日志**
**查看是否成功运行 ps aux | grep uwsgi**
确保Django程序成功运行在83端口
:/data/uwsgi_ini/zkos_comm_test# touch uwsgi.log
root@zeekr-Precision-5820-Tower:/data/uwsgi_ini/zkos_comm_test# ls
uwsgi.log uwsgi.pid
root@zeekr-Precision-5820-Tower:/data/uwsgi_ini/zkos_comm_test# cat uwsgi.log
*** Starting uWSGI 2.0.22 (64bit) on [Mon Aug 14 16:58:38 2023] ***
compiled with version: 9.4.0 on 14 August 2023 08:45:07
os: Linux-5.15.0-78-generic #85~20.04.1-Ubuntu SMP Mon Jul 17 09:42:39 UTC 2023
nodename: zeekr-Precision-5820-Tower
machine: x86_64
clock source: unix
detected number of CPU cores: 20
current working directory: /data/zkos/comm/libzkos_comm/tools/performance_test/django_project
writing pidfile to /data/uwsgi_ini/zkos_comm_test/uwsgi.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
chdir() to /data/zkos/comm/libzkos_comm/tools/performance_test/django_project/
your processes number limit is 255622
your memory page size is 4096 bytes
detected max file descriptor number: 1024
building mime-types dictionary from file /etc/mime.types…567 entry found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :83 # 用于和 nginx 进行数据交互的端口 fd 6
uWSGI running as root, you can use --uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0]
Python main interpreter initialized at 0x5639e6a00b40
uWSGI running as root, you can use --uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145840 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
uWSGI running as root, you can use --uid/–gid/–chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 22538)
spawned uWSGI worker 1 (pid: 22539, cores: 1)
Python auto-reloader enabled
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (3.0.4) doesn’t match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn’t match a supported "
ModuleNotFoundError: No module named ‘ZKOS_COMM_TEST’
unable to load app 0 (mountpoint=‘’) (callable not found or import error)
failed to open python file /ZKOS_COMM_TEST/wsgi.py
unable to load app 0 (mountpoint=‘’) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
###### 3.3 报错信息:
root@zeekr-Precision-5820-Tower:/data/uwsgi\_ini/zkos\_comm\_test# uwsgi --reload uwsgi.pid
signal\_pidfile()/kill(): No such process [core/uwsgi.c line 1698]
报错信息:
/usr/lib/python3/dist-packages/requests/\_\_init\_\_.py:89: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ModuleNotFoundError: No module named 'ZKOS\_COMM\_TEST'
unable to load app 0 (mountpoint='') (callable not found or import error)
重启:
uwsgi --reload uwsgi.pid
**启动uwsgi出现!!! no internal routing support, rebuild with pcre support !!!**
pip uninstall uwsgi
sudo apt-get install libpcre3 libpcre3-dev
pip install uwsgi --no-cache-dir
no python application found, check your startup logs for errors及ModuleNotFoundError: No module named ‘django’问题解决
Tower:/data/uwsgi\_ini/zkos\_comm\_test# uwsgi --reload uwsgi.pid
signal\_pidfile()/kill(): No such process [core/uwsgi.c line 1698]
1083 python --version
1084 $ uwsgi --reload uwsgi.pid
1085 uwsgi --reload uwsgi.pid
1086 ls -l
1087 cat uwsgi.pid
1088 kill -HUP 319464
1089 ps -ef | grep 319464
1090 ps -ef | grep uwsgi
1091 kill -HUP 103815
1092 kill -HUP 1672294
1093 ps -ef | grep uwsgi
1094 cat uwsgi.log
1095 ps -ef | grep uwsgi
1096 history
root@zeekr-Precision-5820-Tower:/data/uwsgi\_ini/zkos\_comm\_test#
## 四.每一次部署
1. 生成dist文件夹:
cd /vue\_template
npm install
npm run build
2. 收集静态资源,在settings.py中设置的静态文件夹
cd /django/
python3 manage.py collectstatic
3.重启
**修改代码重启uwsgi服务** uwsgi --ini uwsgi.ini
root@zeekr-Precision-5820-Tower:/data/zkos/comm/libzkos\_comm/tools/performance\_test/django\_project# uwsgi --ini uwsgi.ini
[uWSGI] getting INI configuration from uwsgi.ini
[uwsgi-static] added mapping for /static => /data/zkos/comm/libzkos\_comm/tools/performance\_test/django\_project//vue\_template/dist/static
测试启动成功 nginx -t
root@zeekr-Precision-5820-Tower:/data/zkos/comm/libzkos\_comm/tools/performance\_test/django\_project# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
关机重启nginx 服务 sudo systemctl reload nginx
root@zeekr-Precision-5820-Tower:/var/log/nginx# sudo systemctl reload nginx
## 五.开发环境生产环境分离
开发环境与生产环境的使用不同的配置
配置文件设置
import os
获取环境数值
ENV_PROFILE = os.getenv(“ENV”)
判断是否为生产环境
if ENV_PROFILE == “production”:
DEBUG = False #生产环境下关闭debug模式
else:
DEBUG = True #开发环境下开启debug模式
if DEBUG:
db_url = “mysql://127.0.0.1:3306/demo”
else:
db_url = “mysql://192.168.0.24:3306/demo”
在运行时,通过输入环境变量来区分
在生产环境下启动服务,终端输入命令:
$ ENV=production python manage.py runserver
在开发环境下启动服务,输入命令:
$ python manage.py runserver
## 六.发送邮件
setting设置信息
“”"
Django settings for django_project project.
Generated by ‘django-admin startproject’ using Django 4.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
“”"
from pathlib import Path
import os
import sys
Build paths inside the project like this: BASE_DIR / ‘subdir’.
BASE_DIR = Path(file).resolve().parent.parent
sys.path.insert(0, os.path.join(BASE_DIR,“Apps”))
Quick-start development settings - unsuitable for production
See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ‘django-insecure-q%my-l@=a_hghghg(((uklbyse_pb)i5u+@hmwg6_2rh5v+&-%u@’
SECURITY WARNING: don’t run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = [‘*’]
Application definition
INSTALLED_APPS = [
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
'corsheaders', #跨域
'django_crontab', #定时任务
'PerformanceTest',
'UserInfo'
]
MIDDLEWARE = [
‘django.middleware.security.SecurityMiddleware’,
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘corsheaders.middleware.CorsMiddleware’,
‘django.middleware.common.CommonMiddleware’,
# ‘django.middleware.csrf.CsrfViewMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘django.middleware.clickjacking.XFrameOptionsMiddleware’,
]
CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_ALLOW_ALL = True
CORS_ORIGIN_WHITELIST = (
‘http://127.0.0.1:8080’,
)
CORS_ALLOWED_ORIGINS = [
‘http://127.0.0.1:8080’, # 前端地址
‘http://127.0.0.1:8000’, # 后端地址
‘http://10.138.8.51:81’, # 后端地址
]
CORS_ALLOW_METHODS = (
‘DELETE’,
‘GET’,
‘OPTIONS’,
‘PATCH’,
‘POST’,
‘PUT’,
‘VIEW’,
)
CORS_ALLOW_HEADERS = (
‘accept’,
‘accept-encoding’,
‘authorization’,
‘content-type’,
‘dnt’,
‘origin’,
‘user-agent’,
‘x-csrftoken’,
‘x-requested-with’,
)
ROOT_URLCONF = ‘django_project.urls’
TEMPLATES = [
{
‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’,
‘DIRS’: [‘vue_template/dist’],
‘APP_DIRS’: True,
‘OPTIONS’: {
‘context_processors’: [
‘django.template.context_processors.debug’,
‘django.template.context_processors.request’,
‘django.contrib.auth.context_processors.auth’,
‘django.contrib.messages.context_processors.messages’,
],
},
},
]
WSGI_APPLICATION = ‘django_project.wsgi.application’
Database
https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.sqlite3’,
‘NAME’: BASE_DIR / ‘db.sqlite3’
}
}
Password validation
https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
‘NAME’: ‘django.contrib.auth.password_validation.UserAttributeSimilarityValidator’,
},
{
‘NAME’: ‘django.contrib.auth.password_validation.MinimumLengthValidator’,
},
{
‘NAME’: ‘django.contrib.auth.password_validation.CommonPasswordValidator’,
},
{
‘NAME’: ‘django.contrib.auth.password_validation.NumericPasswordValidator’,
},
]
Internationalization
https://docs.djangoproject.com/en/4.2/topics/i18n/
LANGUAGE_CODE = ‘zh-Hans’
TIME_ZONE = ‘Asia/Shanghai’
USE_I18N = True
USE_TZ = True
USE_TZ = False
Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = ‘static/’
STATIC_ROOT = os.path.join(BASE_DIR, ‘static’)
STATICFILES_DIRS = [
os.path.join(BASE_DIR, “vue_template/dist/static”),
]
数据库信息
DATABASE_IP=“127.0.0.1”
DATABASE_IP_APACHE=“10.138.8.51”
DATABASE_USER=“auto_test”
DATABASE_PASSWD=“1”
APACHE_IP=“10.138.8.51”
板子IP信息
IP_44 = “10.204.0.44”
IP_33 = “10.204.0.33”
管理员信息
ADMIN_LIST = [
“e-ruirui.zhu@geely.com”,
“ningyi.gu@geely.com”,
“Hailin.Zhu1@zeekrlife.com”,
“Weiye.Yuan@zeekrlife.com”,
“wenqiang.bao@geely.com”
]
#使用默认的认证后端
AUTHENTICATION_BACKENDS = (
“django.contrib.auth.backends.ModelBackend”,
)
EMAIL_USE_TLS = False
EMAIL_HOST = ‘outlook.geely.com’
EMAIL_PORT = 25
EMAIL_HOST_USER = ‘e-Ruirui.Zhu’
EMAIL_HOST_PASSWORD = ‘1303228Qwe1’
DEFAULT_FROM_EMAIL = ‘e-Ruirui.Zhu@geely.com’
CRONTAB_COMMAND_PREFIX = ‘LANG_ALL=zh_cn.UTF-8’
CRONJOBS_DIR = “/data/cronjobs_log/”
CRONJOBS_FILE_NAME = “zkso_comm_test.log”
CRONJOBS_FILE_NAME_EMAIL = “email.log”
CRONJOBS = [
(‘*/1 * * * ‘, ‘PerformanceTest.auto_task.auto_performance_test’, ‘>>’+CRONJOBS_DIR+CRONJOBS_FILE_NAME + ’ 2>&1’),
('/2 * * * *’, ‘PerformanceTest.auto_task.auto_send_test_email’, ‘>>’+CRONJOBS_DIR+CRONJOBS_FILE_NAME_EMAIL + ’ 2>&1’),
]
Default primary key field type
https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = ‘django.db.models.BigAutoField’
DEFAULT_URL_DEV = “http://127.0.0.1:8000”
DEFAULT_URL_PRO = “http://10.138.8.51:81”
from django.shortcuts import render
from django.http import JsonResponse, QueryDict
from django.views.generic.base import View
from django.conf import settings
from django.core.mail import send_mail, send_mass_mail, get_connection , EmailMultiAlternatives
from pathlib import Path
import smtplib
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
import json
import os
import shutil
import subprocess
import datetime
import psycopg2
import psycopg2.extras
import traceback
log size
logPath = settings.CRONJOBS_DIR
fileName = settings.CRONJOBS_FILE_NAME
数据库信息
database_ip=settings.DATABASE_IP
database_ip_apache=settings.DATABASE_IP_APACHE
database_user=settings.DATABASE_USER
database_passwd=settings.DATABASE_PASSWD
apache_ip=settings.APACHE_IP
板子IP信息
ip_44=settings.IP_44
ip_33=settings.IP_33
管理员信息
admin_list = settings.ADMIN_LIST
Create your views here.
def sendEmailByServer(**kw):
# subject(邮件主题),email_body(邮件内容),mail_body_html(html类型邮件内容),email_from(发信人),to(收件人list),cc(抄送人list)
print(‘**kw’, kw)
subject = kw[‘subject’]
email_body_html = kw[‘email_body_html’]
email_from = kw[‘email_from’]
to = kw[‘to’]
cc = kw[‘cc’]
if email_from =="" :
email_from = settings.DEFAULT_FROM_EMAIL
print('~~~~~~~~~~~~~~~~~')
if email_body_html !="":
try:
msg = EmailMultiAlternatives(subject = subject,body = email_body_html, from_email = email_from, to = to, cc = cc)
html_content = email_body_html
print('~~~~~~~~~~~~~~~~~11111')
msg.attach_alternative(html_content, "text/html")
print('~~~~~~~~~~~~~~~~~2222')
msg.send()
print('~~~~~~~~~~~~~~~~~3333')
return True
except Exception as e:
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Linux运维工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)
为了做好运维面试路上的助攻手,特整理了上百道 【运维技术栈面试题集锦】 ,让你面试不慌心不跳,高薪offer怀里抱!
这次整理的面试题,小到shell、MySQL,大到K8s等云原生技术栈,不仅适合运维新人入行面试需要,还适用于想提升进阶跳槽加薪的运维朋友。
本份面试集锦涵盖了
- 174 道运维工程师面试题
- 128道k8s面试题
- 108道shell脚本面试题
- 200道Linux面试题
- 51道docker面试题
- 35道Jenkis面试题
- 78道MongoDB面试题
- 17道ansible面试题
- 60道dubbo面试题
- 53道kafka面试
- 18道mysql面试题
- 40道nginx面试题
- 77道redis面试题
- 28道zookeeper
总计 1000+ 道面试题, 内容 又全含金量又高
- 174道运维工程师面试题
1、什么是运维?
2、在工作中,运维人员经常需要跟运营人员打交道,请问运营人员是做什么工作的?
3、现在给你三百台服务器,你怎么对他们进行管理?
4、简述raid0 raid1raid5二种工作模式的工作原理及特点
5、LVS、Nginx、HAproxy有什么区别?工作中你怎么选择?
6、Squid、Varinsh和Nginx有什么区别,工作中你怎么选择?
7、Tomcat和Resin有什么区别,工作中你怎么选择?
8、什么是中间件?什么是jdk?
9、讲述一下Tomcat8005、8009、8080三个端口的含义?
10、什么叫CDN?
11、什么叫网站灰度发布?
12、简述DNS进行域名解析的过程?
13、RabbitMQ是什么东西?
14、讲一下Keepalived的工作原理?
15、讲述一下LVS三种模式的工作过程?
16、mysql的innodb如何定位锁问题,mysql如何减少主从复制延迟?
17、如何重置mysql root密码?
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
74 道运维工程师面试题**
- 128道k8s面试题
- 108道shell脚本面试题
- 200道Linux面试题
- 51道docker面试题
- 35道Jenkis面试题
- 78道MongoDB面试题
- 17道ansible面试题
- 60道dubbo面试题
- 53道kafka面试
- 18道mysql面试题
- 40道nginx面试题
- 77道redis面试题
- 28道zookeeper
总计 1000+ 道面试题, 内容 又全含金量又高
- 174道运维工程师面试题
1、什么是运维?
2、在工作中,运维人员经常需要跟运营人员打交道,请问运营人员是做什么工作的?
3、现在给你三百台服务器,你怎么对他们进行管理?
4、简述raid0 raid1raid5二种工作模式的工作原理及特点
5、LVS、Nginx、HAproxy有什么区别?工作中你怎么选择?
6、Squid、Varinsh和Nginx有什么区别,工作中你怎么选择?
7、Tomcat和Resin有什么区别,工作中你怎么选择?
8、什么是中间件?什么是jdk?
9、讲述一下Tomcat8005、8009、8080三个端口的含义?
10、什么叫CDN?
11、什么叫网站灰度发布?
12、简述DNS进行域名解析的过程?
13、RabbitMQ是什么东西?
14、讲一下Keepalived的工作原理?
15、讲述一下LVS三种模式的工作过程?
16、mysql的innodb如何定位锁问题,mysql如何减少主从复制延迟?
17、如何重置mysql root密码?
一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
[外链图片转存中…(img-a1VqSkep-1712829506882)]
更多推荐
所有评论(0)