基于PHP的学生管理系统

前言

基于PHP的学生管理系统;

实现 登录、注册、学生信息、修改学生、删除学生、查询学生、添加学生等功能

环境准备

开发平台:PhpStrom2022.1.2 、Phpstudy_pro

数据库:MySQL5.7.26

技术架构

Bootstrap +PHP7.3.4+html5+css3

项目结构

页面展示

1.登录与注册页面

2.首页

3.学生信息

4.修改学生

5.查询学生

6.添加学生

7.管理员信息

8.修改管理员

9.添加管理员

10.查询管理员

11.数据库

注意

1.MySQL 版本5.0以上与8.0以上sql语句有差异,需要调整数据库语句

2.运行项目前提前配置好MySQL数据库

3.本系统实现功能仅供参考


学生信息管理统代码展示

  • 目录

  • 一、登录界面

  • 二、注册页面

  • 三、学生信息

  • 四、添加页面

  • 五、修改页面

  • 六、删除

  • 七、查询页面

  • 八、头部代码

一、登录界面

login.html

login.php

<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">* {margin: 0;padding: 0;}body {background: url(images/backgroud.png);background-repeat: no-repeat;background-size: cover;background-attachment: fixed;}.Login {width: 600px;height: 350px;background: rgb(168, 196, 213);position: fixed;top: 0;left: 0;right: 0;bottom: 0;margin: auto;border-radius: 10px;padding: 20px;box-shadow: 0 0 5px rgba(0,0,0,0.4);}label {display: block;margin-left: 10px;}form {margin: 25px 140px;}h2 {margin-top: 35px;text-align: center;font-size: 25px;color: #000000;}input {width: 220px;height: 30px;background: transparent;margin-top: 30px;border: none;border-bottom: 1px #a77a27 solid;outline: none;color: #000000;font-size: 17px;margin-left: 10px;}input::-webkit-input-placeholder {color: #c3cdd0;}button {width: 98px;height: 30px;border: none;margin-top: 55px;color: white;text-align: center;line-height: 15px;background-image: linear-gradient(to right, #7993d4, #ca71fa);border-radius: 15px;cursor: pointer;}button:hover {box-shadow: 0 0 5px rgba(0,0,0,0.4) inset;}img{width: 27px;height: 27px;position: relative;top: 9px;}</style>
</head>
<body>
<div class="Login"><h2 >学生管理系统</h2><form action="login.php" method="post"><label><img src="images/user.png"><input type="text" name="user" placeholder="请输入用户名" required></label><label><img src="images/password.png"><input type="password" name="pwd" placeholder="请输入密码" required></label><button type="submit" value="登录">登录</button><button type="button" id="btn" value="注册">注册</button><button type="button" id="btn0" value="超级管理员">超管登录</button></form>
</div>
<script>var b = document.getElementById("btn");b.onclick = function () {window.location.href="register.html"}var b0 = document.getElementById("btn0");b0.onclick = function () {window.location.href="超级管理员/adminlogin.html"}
</script>
</body>
</html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
header("Content-Type:text/html;charset=utf-8");
session_start();
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$user = $_POST['user'];
$pwd = $_POST['pwd'];
$sql = "SELECT * FROM `admin` WHERE `name` = '{$user}' and `pwd` = '{$pwd}' ";$stmt= $conn->query($sql);
$result = mysqli_fetch_array($stmt);if($stmt->num_rows > 0){$_SESSION['user'] = $result[0];echo "<script>alert(\"登录成功!\")</script>";echo "<script>window.location.href='index.php'</script>";}else{echo "<script>alert(\"账号或密码错误,请重新输入!\")</script>";echo "<script>window.location.href='login.html'</script>";
}

二、注册页面

register.html

register.php

<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">* {margin: 0;padding: 0;}body {background: url(images/backgroud.png) no-repeat;}.Login {width: 600px;height: 400px;background: rgb(232, 236, 223);position: fixed;top: 0;left: 0;right: 0;bottom: 0;margin: auto;border-radius: 10px;padding: 20px;box-shadow: 0 0 5px rgba(0,0,0,0.4);}label {display: block;margin-left: 10px;}form {margin: 25px 140px;}h2 {margin-top: 35px;text-align: center;font-size: 25px;color: #000000;}input {width: 220px;height: 30px;background: transparent;margin-top: 30px;border: none;border-bottom: 1px #a77a27 solid;outline: none;color: #000000;font-size: 17px;margin-left: 10px;}input::-webkit-input-placeholder {color: #c3cdd0;}button {width: 98px;height: 30px;border: none;margin-top: 50px;margin-left: 40px;color: white;text-align: center;line-height: 15px;background-image: linear-gradient(to right, #7993d4, #ca71fa);border-radius: 15px;cursor: pointer;}button:hover {box-shadow: 0 0 5px rgba(0,0,0,0.4) inset;}span {font-size: 15px;}#btn > a{text-decoration: none;}img{width: 27px;height: 27px;position: relative;top: 9px;}</style>
</head>
<body>
<div class="Login"><h2>管理员注册</h2><form action="register.php" method="post"><label><img src="images/user.png"><input type="text" class="put" name="user" placeholder="请输入用户名" required></label><label><img src="images/password.png"><input type="password" class="put" name="pwd1" placeholder="请输入密码" required></label><label><img src="images/password.png"><input type="password" class="put" name="pwd2" placeholder="确认密码" required></label><button type="submit" value="提交">提交</button><button type="button" id="btn" value="返回">返回</button></form>
</div>
<script>var b = document.getElementById("btn");b.onclick = function () {window.location.href="login.html"}
</script>
</body>
</html>
<?php
session_start();
header("Content-Type:text/html;charset=utf-8");
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$user = $_POST['user'];
$pwd1 = $_POST['pwd1'];
$pwd2 = $_POST['pwd2'];
$rows = "select `name` from `admin` where `name` = '{$user}'";
$stmt1= $conn->query($rows);
$row = mysqli_num_rows($stmt1);
if ($row == 1){echo "<script>alert('此用户已存在,请重新输入!')</script>";echo ("<script>window.location.href='register.html'</script>");
}
elseif ($pwd1 == $pwd2){$sql = "insert into `admin` (`name`, `pwd`) value ('{$user}','{$pwd1}')";$conn->query($sql);echo ("<script>alert('注册成功')</script>");echo ("<script>window.location.href='login.html'</script>");
}
else{echo "<script>alert('密码错误,请重新输入!')</script>";echo ("<script>window.location.href='register.html'</script>");
}
$conn->close();

三、学生信息

student.php

<?php
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
?><html>
<head>
<title>学生信息</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--    <link href="css/css1.css" rel="stylesheet">--><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><style>.btn-warning{background-color: #d0455a;}</style>
</head>
<body>
<?php include("header.php");?>
<div class="container"><br><h2 style="text-align: center;color: #3db077">学生信息展示</h2><br><table class="table table-bordered table-hover" style="text-align: center"><tr class="info"><th>姓名</th><th>学号</th><th>性别</th><th>手机号</th><th>班级</th><th>操作</th></tr><?php$sql = "select * from `student` order by `id`";$result = mysqli_query($conn,$sql);if (mysqli_num_rows($result)>0) {         // 若表中有数据$number = mysqli_num_rows($result);     // 取得数据笔数if(!isset($_GET['p'])){$p=0;}else {$p=$_GET['p'];}$check = $p + 8;                             // 每页抓取 8 笔数据for ($i = 0; $i < $number; $i++) {// 用来呈现多笔数据的循环$stu = mysqli_fetch_array($result);//选取第 $p 笔到 $check 笔数据if ($i >= $p && $i < $check) {echo "<tr>";echo "<td>{$stu['user']}</td>";echo "<td>{$stu['id']}</td>";echo "<td>{$stu['gender']}</td>";echo "<td>{$stu['phone']}</td>";echo "<td>{$stu['class']}</td>";echo "<td><a href='delete.php?id={$stu['id']}' class='btn btn-warning'>删除</a><a href='update3.php?id={$stu['id']}' class='btn btn-warning'>修改</a></td>";echo "</tr>";$j = $i+1;}}// for循环}?></table><ul class="row pager" style="font-size: 16px;line-height: 30px"><li class="col-xs-2 col-xs-push-3"><!--- 将 p 值设为 0, 让模块从第一笔数据开始 ----><a href="student.php?p=0">第一页</a></li><li class="col-xs-2 col-xs-push-2" style="margin-left: 20px"><?phpif ($p>7) { // 判断是否有上一页$last = (floor($p/8)*8)-8;echo "<a href='student.php?p=$last'>上一页</a>";}elseecho "<a class='disabled'>上一页</a>";?></li><li class="col-xs-2 col-xs-push-1" style="margin-left: 20px"><?phpif ($i>7 and $number>$check) // 判断是否有下一页echo "<a href='student.php?p=$j'>下一页</a>";elseecho "<a class='disabled'>下一页</a>";?></li><li class="col-xs-2" style="margin-left: 30px"><?phpif ($i>7) // 判断目前呈现的笔数之后是否还有页面{// 取得最后一页的第一笔数据$final = floor($number/8)*8;echo "<a href='student.php?p=$final'>最后一页</a>";}elseecho "<a class='disabled'>最后一页</a>";?></li></ul>
</div>
</body>
</html>

四、添加页面

add.php

add2.php

<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>主页</title><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><link href="css/css1.css" rel="stylesheet">
</head>
<body>
<?php include("header.php");?>
<div class="container"><br><h2 style="text-align: center;color: #3db077">添加学生</h2><br>
<div><form action="add2.php" method="post" class="form-horizontal" role="form"><div class="form-group"><label for="name" class="control-label col-xs-2">姓名</label><div class="col-xs-8"><input id="name" type="text" name="user" class="form-control" placeholder="请输入学生的姓名" required></div></div><br><div class="form-group"><label for="id" class="control-label col-xs-2">学号</label><div class="col-xs-8"><input id="id" type="text" name="id" class="form-control" placeholder="请输入学生的学号" required></div></div><br><div class="form-group"><label class="control-label col-xs-2">性别</label><div class="col-xs-8"><label class="radio-inline"><input type="radio" value="男" name="gender" required>男</label><label class="radio-inline"><input type="radio" value="女" name="gender" required>女</label></div></div><br><div class="form-group"><label for="phone" class="control-label col-xs-2">手机号</label><div class="col-xs-8"><input id="phone" type="text" name="phone" class="form-control" placeholder="请输入学生的手机号" required></div></div><br><div class="form-group"><label for="class" class="control-label col-xs-2">班级</label><div class="col-xs-8">
<!--                <input id="class" type="text" name="class" class="form-control" placeholder="请输入学生的班级" required>--><select name="class" class="form-control"><option value="1班">1班</option><option value="2班">2班</option><option value="3班">3班</option><option value="4班">4班</option><option value="5班">5班</option><option value="6班">6班</option><option value="7班">7班</option><option value="8班">8班</option><option value="9班">9班</option><option value="10班">10班</option></select></div></div><br><div class="form-group"><div class="col-xs-2 col-xs-offset-4"><input style="padding: 10px 50px" class="btn btn-success" type="submit" value="提交"></div><div class="col-xs-2"><input type="reset" style="padding: 10px 50px" class="btn btn-primary" value="重置"></div></div></form>
</div>
</div>
</body>
</html>
<?php
session_start();
//中文编码
header("Content-Type:text/html;charset=utf-8");
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$user = $_POST['user'];
$id = $_POST['id'];
$gender = $_POST['gender'];
$phone = $_POST['phone'];
$class = $_POST['class'];$rows = "select `id` from `student` where `id` = '{$id}'";
$stmt1= $conn->query($rows);
$row = mysqli_num_rows($stmt1);
if ($row == 1){echo "<script>alert('此学号已存在,请重新输入!')</script>";echo ("<script>window.location.href='add.php'</script>");
}else{$sql = "insert into `student` (`user`,`id`,`gender`,`phone`,`class`) value ('{$user}','{$id}','{$gender}','{$phone}','{$class}')";$stmt= $conn->query($sql);if ($stmt > 0){echo ("<script>alert('添加成功')</script>");echo ("<script>window.location.href='student.php'</script>");}else {echo ("<script>alert('添加失败')</script>");echo ("<script>window.location.href='student.php'</script>");}
}$conn->close();

五、修改页面

update.php

update2.php

update3.php

<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>主页</title><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><link href="css/css1.css" rel="stylesheet">
</head>
<body>
<?php include("header.php");?>
<div class="container"><br><h2 style="text-align: center;color: #3db077">学生信息修改</h2><br>
<div><form action="update2.php" method="post" class="form-horizontal" role="form"><div class="form-group"><label for="name" class="control-label col-xs-2">姓名</label><div class="col-xs-8"><input id="name" type="text" name="user" class="form-control" placeholder="请输入学生的姓名" required></div></div><br><div class="form-group"><label for="id" class="control-label col-xs-2">学号</label><div class="col-xs-8"><input id="id" type="text" name="id" class="form-control" placeholder="请输入学生的学号" required></div></div><br><div class="form-group"><label class="control-label col-xs-2">性别</label><div class="col-xs-8"><label class="radio-inline"><input type="radio" value="男" name="gender" required>男</label><label class="radio-inline"><input type="radio" value="女" name="gender" required>女</label></div></div><br><div class="form-group"><label for="phone" class="control-label col-xs-2">手机号</label><div class="col-xs-8"><input id="phone" type="text" name="phone" class="form-control" placeholder="请输入学生的手机号" required></div></div><br><div class="form-group"><label for="class" class="control-label col-xs-2">班级</label><div class="col-xs-8">
<!--                <input id="class" type="text" name="class" class="form-control" placeholder="请输入学生的班级" required>--><select name="class" class="form-control"><option value="1">1班</option><option value="2">2班</option><option value="3">3班</option><option value="4">4班</option><option value="5">5班</option><option value="6">6班</option><option value="7">7班</option><option value="8">8班</option><option value="9">9班</option><option value="10">10班</option></select></div></div><br><div class="form-group"><div class="col-xs-2 col-xs-offset-4"><input style="padding: 10px 50px" class="btn btn-success" type="submit" value="提交"></div><div class="col-xs-2"><input type="reset" style="padding: 10px 50px" class="btn btn-primary" value="重置"></div></div></form>
</div>
</div>
</body>
</html>
<?php
header("Content-Type:text/html;charset=utf-8");
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$user = $_POST['user'];
$id = $_POST['id'];
$gender = $_POST['gender'];
$phone = $_POST['phone'];
$class = $_POST['class'];
$rows = "select `id` from `student` where `id` = '{$id}' and `user` = '{$user}'";
$stmt1= $conn->query($rows);
$row = mysqli_num_rows($stmt1);
if ($row != 1){echo "<script>alert('学号不可改变,请重新输入!')</script>";echo ("<script>window.location.href='student.php'</script>");
}else{$sql = "update `student` set `user` = '{$user}',`gender` = '{$gender}',`phone` = '{$phone}',`class` = '{$class}' where `id` = '{$id}'";$stmt= $conn->query($sql);if ($stmt > 0){echo ("<script>alert('修改成功')</script>");echo ("<script>window.location.href='student.php'</script>");}else {echo ("<script>alert('修改失败')</script>");echo ("<script>window.location.href='student.php'</script>");}
}$conn->close();
<?php
header("Content-Type:text/html;charset=utf-8");
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$sql = "SELECT * FROM student WHERE id =".$_GET['id'];
$stmt = $conn->query($sql);//返回预处理对象
$stu = $stmt->fetch_array(MYSQLI_ASSOC);//返回结果集为数组
?>
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>主页</title><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><link href="css/css1.css" rel="stylesheet">
</head>
<body>
<?php include("header.php");?>
<div class="container"><br><h2 style="text-align: center">学生信息修改</h2><br><div><form action="update2.php" method="post" class="form-horizontal" role="form"><div class="form-group"><label for="user" class="control-label col-xs-2">姓名</label><div class="col-xs-8"><input id="user" type="text" name="user" class="form-control" value="<?php echo $stu['user']?>" placeholder="请输入学生的姓名" required></div></div><br><div class="form-group"><label for="id" class="control-label col-xs-2">学号</label><div class="col-xs-8"><input id="id" type="text" name="id" class="form-control" value="<?php echo $stu['id']?>" placeholder="请输入学生的学号" required></div></div><br><div class="form-group"><label class="control-label col-xs-2">性别</label><div class="col-xs-8"><label class="radio-inline"><input type="radio" value="男" name="gender" required>男</label><label class="radio-inline"><input type="radio" value="女" name="gender" required>女</label></div></div><br><div class="form-group"><label for="phone" class="control-label col-xs-2">手机号</label><div class="col-xs-8"><input id="phone" type="text" name="phone" class="form-control" value="<?php echo $stu['phone']?>" placeholder="请输入学生的手机号" required></div></div><br><div class="form-group"><label for="class" class="control-label col-xs-2">班级</label><div class="col-xs-8">
<!--                    <input id="class" type="text" name="class" class="form-control" value="--><?php //echo $stu['class']?><!--" placeholder="请输入学生的班级" required>--><select name="class" class="form-control"  value="<?php echo $stu['class']?>" ><option value="1班">1班</option><option value="2班">2班</option><option value="3班">3班</option><option value="4班">4班</option><option value="5班">5班</option><option value="6班">6班</option><option value="7班">7班</option><option value="8班">8班</option><option value="9班">9班</option><option value="10班">10班</option></select></div></div><br><div class="form-group"><div class="col-xs-2 col-xs-offset-4"><input style="padding: 10px 50px" class="btn btn-success" type="submit" value="提交"></div><div class="col-xs-2"><input type="reset" style="padding: 10px 50px" class="btn btn-primary" value="重置"></div></div></form></div>
</div>
</body>
</html>

六、删除

delete.php

<?php
header("Content-Type:text/html;charset=utf-8");
//连接数据库
$conn = new mysqli("localhost", "root", "123456", "php",3316)or die("连接失败");
//设置编码
$conn->query("set names utf8");
$id = $_GET['id'];
echo $id;
$sql = "delete from `student` where `id` = '{$id}'";
$stmt= $conn->query($sql);
if ($stmt > 0){echo "<script>alert('删除成功')</script>";echo "<script>window.location.href='student.php'</script>";
}else {echo ("<script>alert('删除失败')</script>");echo ("<script>window.location.href='student.php'</script>");
}
$conn->close();

七、查询页面

select.php

<?php
$conn = new mysqli("localhost", "root", "123456", "php", 3316) or die("连接失败");
?><html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link href="css/css1.css" rel="stylesheet"><title>主页</title><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><style type="text/css">th {text-align: center;}label {font-size: 17px;}</style>
</head>
<?php include("header.php");?>
<div class="container"><br><h2 style="text-align: center;color: #3db077">学生信息查询</h2><br><form method="get" action="#" class="form-horizontal" role="form"><div class="form-group"><label for="name" class="control-label col-xs-2 col-xs-offset-2">请输入要查询的姓名</label><div class="col-xs-4"><input id="name" type="text" name="user" class="form-control" placeholder="请输入姓名"></div><input style="padding: 7px 30px;border-radius: 5px;border: none" class="col-xs-1 btn-success" type="submit"name="select" value="查询"></div></form><table class="table table-bordered table-hover" style="margin-top: 30px; text-align: center"><tr class="info"><th>姓名</th><th>学号</th><th>性别</th><th>手机号</th><th>班级</th></tr><?php//名字模糊查询if (isset($_GET['select'])) {$user = $_GET['user'];$sql = "select * from student where student.user like '%$user%'";$result = $conn->query($sql);while ($row = $result->fetch_assoc()) {echo "<tr>";echo "<td>" . $row['user'] . "</td>";echo "<td>" . $row['id'] . "</td>";echo "<td>" . $row['gender'] . "</td>";echo "<td>" . $row['phone'] . "</td>";echo "<td>" . $row['class'] . "</td>";echo "</tr>";}}?></table>
</div>
</body>
</html>

八、头部代码

header.php

<?php
$conn = new mysqli("localhost", "root", "123456", "php", 3316) or die("连接失败");
session_start();
?><html>
<head><title>主页</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link href="css/css1.css" rel="stylesheet"><link href="bootstarp/dist/css/bootstrap.min.css" rel="stylesheet"><style>button {top: 7px;right: 15px;}th {text-align: center;}.container {width: 1200px;}.row {line-height: 50px;}.btn-warning {background-color: #d0455a;}body {background-image: url("images/backgroud.png");background-repeat: no-repeat;background-size: cover;background-attachment: fixed;}</style>
</head>
<body>
<div class="container"><div class="row" style="background-color: #2e7ad5;color: white"><div style="font-size: 20px" class="col-xs-3">学生管理系统</div><a href="index.php"><span class="col-xs-1">首页</span></a><a href="student.php"><span class="col-xs-1">学生信息</span></a><a href="update.php"><span class="col-xs-1">修改学生</span></a><a href="select.php"><span class="col-xs-1">查询学生</span></a><a href="add.php"><span class="col-xs-1">添加学生</span></a><span style="left: 60px" class="col-xs-2 col-xs-offset-1">管理员:<?php echo $_SESSION['user'] ?></span><a href="login.html"><button class="col-xs-1 btn btn-danger">退出</button></a></div>
</div>
</body>
</html>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/675172.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

系统架构21 - 统一建模语言UML(下)

UML图 UML中的图分类作用 视图用例视图逻辑视图进程视图实现视图部署视图 UML中的图 “图”是一组元素的图形表示&#xff0c;大多数情况下把图画成顶点&#xff08;代表事物&#xff09;和弧&#xff08;代表关系&#xff09;的连通图。为了对系统进行可视化&#xff0c;可以…

运维高级篇-分库分表(拆分策略详解)

分库分表 介绍 问题分析 随着互联网及移动互联网的发展&#xff0c;应用系统的数据量也是成指数式增长&#xff0c;若采用单数据库进行数据存 储&#xff0c;存在以下性能瓶颈&#xff1a; IO瓶颈&#xff1a;热点数据太多&#xff0c;数据库缓存不足&#xff0c;产生大量磁盘…

关节点检测

https://www.bilibili.com/video/BV19g4y1777q/?p2&spm_id_frompageDriver 关节点检测全流程 YOLO:单阶段&#xff0c;快&#xff1b; MMPose&#xff1a;双阶段&#xff0c;准&#xff1b; 标注工具Labelme 用Labelme标注样本数据集

电脑通电自启动设置

首先要进入BIOS&#xff0c;以华硕为例&#xff0c;按下电源键&#xff0c;在开机之前按下delete键&#xff0c;其他电脑可能是esc或者某个f键&#xff0c;请自行查找。 进入BIOS后要找到电源管理&#xff0c;可以在高级选项中找一找&#xff0c;如上图右下角选择高级模式。 …

PKI - 借助Nginx 实现Https 服务端单向认证、服务端客户端双向认证

文章目录 Openssl操系统默认的CA证书的公钥位置Nginx Https 自签证书Nginx Https 使用CA签发证书客户端使用自签证书供服务端验证客户端使用 根证书 签发客户端证书 供服务端验证 Openssl https://www.openssl.net.cn/ openssl是一个功能丰富且自包含的开源安全工具箱。 它提…

2024腾讯云游戏服务器租用多少钱一年?

2024年更新腾讯云游戏联机服务器配置价格表&#xff0c;可用于搭建幻兽帕鲁、雾锁王国等游戏服务器&#xff0c;游戏服务器配置可选4核16G12M、8核32G22M、4核32G10M、16核64G35M、4核16G14M等配置&#xff0c;可以选择轻量应用服务器和云服务器CVM内存型MA3或标准型SA2实例&am…

画出TCP三次握手和四次挥手的示意图,并且总结TCP和UDP的区别

三次握手 第一次握手&#xff1a;客户端发送SYN包&#xff08;SYN1, seq0&#xff09;给服务器&#xff0c;并进入SYN_SENT状态&#xff0c;等待服务器返回确认包。第二次握手&#xff1a;服务器接收到SYN包&#xff0c;确认客户端的SYN&#xff0c;发送ACK包&#xff08;ACK1 …

在虚拟机上搭建CentOS环境并配置静态IP

在虚拟机上搭建CentOS环境并配置静态IP 在进行Linux系统的学习和实践时&#xff0c;搭建一个本地的CentOS环境是一个非常好的方式。本文将介绍如何使用虚拟机&#xff08;VM&#xff09;搭建CentOS环境&#xff0c;并配置静态IP&#xff0c;以便更好地进行网络管理和测试。 步…

项目学习记录

项目开发 创建项目环境配置关联git新增模块项目启动打印地址日志使用httpclient进行idea内部控制台测试使用AOP拦截器打印日志 创建项目 创建一个空项目&#xff0c;并勾选下面选项 然后进入pom.xml中修改项目配置 根据这个链接选则&#xff0c;修改项目的支持版本 链接&#…

TCP和UDP相关问题(重点)——7.TCP的流量控制怎么实现的?

流量控制就是在双方通信时&#xff0c;发送方的速率和接收方的速率不一定是相等的&#xff0c;如果发送方发送的太快&#xff0c;接收方就只能把数据先放到接收缓冲区中&#xff0c;如果缓冲区都满了&#xff0c;那么处理不过来就只能丢弃&#xff0c;所以需要控制发送方的速率…

供应链|Managemeng Science 论文解读:数据驱动下联合定价和库存控制的近似方法 (一)

编者按 本次解读的文章发表于 Management Science&#xff0c;原文信息&#xff1a;Hanzhang Qin, David Simchi-Levi, Li Wang (2022) Data-Driven Approximation Schemes for Joint Pricing and Inventory Control Models. https://doi.org/10.1287/mnsc.2021.4212 文章在数…

测试管理_利用python连接禅道数据库并自动统计bug数据到钉钉群

测试管理_利用python连接禅道数据库并统计bug数据到钉钉 这篇不多赘述&#xff0c;直接上代码文件。 另文章基础参考博文&#xff1a;参考博文 加以我自己的需求优化而成。 统计的前提 以下代码统计的前提是禅道的提bug流程应规范化 bug未解决不删除bug未关闭不删除 db_…

闭区间上连续函数的性质【高数笔记】

1. 分几个性质 2. 每个性质的注意事项是什么 3. 每个性质适用什么类型的题型 4. 注意最值定理和正弦函数的不同 5. 做题步骤是什么

Web前端框架-Vue(初识)

文章目录 web前端三大主流框架**1.Angular****2.React****3.Vue**什么是Vue.js 为什么要学习流行框架框架和库和插件的区别一.简介指令v-cloakv-textv-htmlv-pre**v-once**v-onv-on事件函数中传入参数事件修饰符双向数据绑定v-model 按键修饰符自定义按键修饰符别名v-bind(属性…

Swift 使用 Combine 进行开发 从入门到精通七

Combine 系列 Swift Combine 从入门到精通一Swift Combine 发布者订阅者操作者 从入门到精通二Swift Combine 管道 从入门到精通三Swift Combine 发布者publisher的生命周期 从入门到精通四Swift Combine 操作符operations和Subjects发布者的生命周期 从入门到精通五Swift Com…

DMA直接内存访问,STM32实现高速数据传输使用配置

1、DMA运用场景 随着智能化、信息化的不断推进&#xff0c;嵌入式设备的数据处理量也呈现指数级增加&#xff0c;因此对于巨大的数据量处理的情况时&#xff0c;必须采取其它的方式去替CPU减负&#xff0c;以保证嵌入式设备性能。例如SD卡存储器和音视频、网络高速通信等其它情…

排序算法的时间复杂度存在下界问题

对于几种常用的排序算法&#xff0c;无论是归并排序、快速排序、以及更加常见的冒泡排序等&#xff0c;这些排序算法的时间复杂度都是大于等于O(n*lg(n))的&#xff0c;而这些排序算法存在一个共同的行为&#xff0c;那就是这些算法在对元素进行排序的时候&#xff0c;都会进行…

Visual Studio 2010+C#实现信源编码

1. 要求 本文设计了一套界面系统&#xff0c;该系统能够实现以下功能&#xff1a; 克劳夫特不等式的计算&#xff0c;并且能够根据计算结果给出相应的信息。可通过用户输入的初始条件然后给出哈夫曼编码以及LZ编码&#xff0c;结果均通过对话框来显示哈夫曼编码结果包含相应的…

Python小白:Python 编辑器那么多种,到底怎么选!!

前言 我在刚刚接触编程的时候很纠结于这个问题&#xff0c;因为我想找一个功能强大&#xff0c;免费&#xff0c;可多平台&#xff0c;支持多种语言的编辑器&#xff0c;所以我特意花费了一些时间对 Python 的编辑器进行了调研&#xff0c;我最终选择了 VScode 作为我的首选编…

Redis 基本认识

文章目录 Redis八个特性Redis应用场景Redis应用缺陷Redis使用流程 Redis八个特性 速度快 原因: ① 单线程&#xff0c;避免了多线程竞争(如加锁/解锁)的时间开销 ② redis的数据存放在内存中 ③ 使用C语言编写&#xff0c;C语言更方便操做硬件 ④ Redis 源码优秀 利用键值对存…