linux学习lesson49

MongoDB实战避坑指南:从日志系统到电商建模的落地经验 NoSQL数据库核心解决的是高写入、无固定模式、低关联性数据的存储难题,其本质在于以数据自然形态匹配访问模式。MongoDB作为典型文档型数据库,依托BSON结构、嵌套文档、动态Schema和分片能力,在用户行为日志、商品页聚合、IoT时序数据等场景中展现出显著优势;但误用嵌套、忽视分片键设计、混淆集合生命周期或忽略索引原理,极易引发16MB文档限制、慢查询、写冲突与连接池耗尽等生产事故。本文结合12个真实NoSQL项目经验,聚焦文档建模逻辑、CRUD性能陷阱与副本集/分片落地要点,为开发者提供可验证、可复 阅读详情



1 nginx安装

下载nginx包:

[root@linux01 ~]# cd /usr/local/src
[root@linux01 src]# wget http://nginx.org/download/nginx-1.15.5.tar.gz

解压nginx包

[root@linux01 src]# tar zxf nginx-1.15.5.tar.gz

configure编译:

[root@linux01 src]# cd nginx-1.15.5
[root@linux01 nginx-1.15.5]# ./configure --prefix=/usr/local/nginx
[root@linux01 nginx-1.15.5]# echo $?
0

编译成功

make和make install编译

[root@linux01 nginx-1.15.5]# make -j2 && make install
[root@linux01 nginx-1.15.5]# echo $?
0

编译成功

编辑启动脚本:

[root@linux01 nginx-1.15.5]# vim /etc/init.d/nginx //复制如下内容(参考https://coding.net/u/aminglinux/p/aminglinux-book/git/blob/master/D15Z/etc_init.d_nginx )
#!/bin/bash
# chkconfig: - 30 21
# description: http service.
# Source Function Library
. /etc/init.d/functions
# Nginx Settings

NGINX_SBIN="/usr/local/nginx/sbin/nginx"
NGINX_CONF="/usr/local/nginx/conf/nginx.conf"
NGINX_PID="/usr/local/nginx/logs/nginx.pid"
RETVAL=0
prog="Nginx"

start()
{
echo -n $"Starting $prog: "
mkdir -p /dev/shm/nginx_temp
daemon $NGINX_SBIN -c $NGINX_CONF
RETVAL=$?
echo
return $RETVAL
}

stop()
{
echo -n $"Stopping $prog: "
killproc -p $NGINX_PID $NGINX_SBIN -TERM
rm -rf /dev/shm/nginx_temp
RETVAL=$?
echo
return $RETVAL
}

reload()
{
echo -n $"Reloading $prog: "
killproc -p $NGINX_PID $NGINX_SBIN -HUP
RETVAL=$?
echo
return $RETVAL
}

restart()
{
stop
start
}

configtest()
{
$NGINX_SBIN -c $NGINX_CONF -t
return 0
}

case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
configtest)
configtest
;;
*)
echo $"Usage: $0 {start|stop|reload|restart|configtest}"
RETVAL=1
esac
exit $RETVAL

设置启动权限:

[root@linux01 nginx-1.15.5]# chmod 755 /etc/init.d/nginx

添加到系统服务管理:

[root@linux01 nginx-1.15.5]# chkconfig --add nginx

开启开机启动:

[root@linux01 nginx-1.15.5]# chkconfig nginx on

修改配置文件:

[root@linux01 nginx-1.15.5]# cd /usr/local/nginx/conf/; mv nginx.conf nginx.conf.bak
[root@linux01 nginx]# vim nginx.conf //写入如下内容(参考https://coding.net/u/aminglinux/p/aminglinux-book/git/blob/master/D15Z/nginx.conf)
user nobody nobody;
worker_processes 2;
error_log /usr/local/nginx/logs/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;

events
{
use epoll;
worker_connections 6000;
}

http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 3526;
server_names_hash_max_size 4096;
log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]'
' $host "$request_uri" $status'
' "$http_referer" "$http_user_agent"';
sendfile on;
tcp_nopush on;
keepalive_timeout 30;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 8 4k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
client_max_body_size 10m;
client_body_buffer_size 256k;
client_body_temp_path /usr/local/nginx/client_body_temp;
proxy_temp_path /usr/local/nginx/proxy_temp;
fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
fastcgi_intercept_errors on;
tcp_nodelay on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 8k;
gzip_comp_level 5;
gzip_http_version 1.1;
gzip_types text/plain application/x-javascript text/css text/htm
application/xml;

server
{
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /usr/local/nginx/html;

location ~ \.php$
{
include fastcgi_params;
fastcgi_pass unix:/tmp/php-fcgi.sock; //方式1:监听sock
#fastcgi_pass 127.0.0.1:9000; //方式2:监听ip
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
}
}
}

检查配置文件语法:

[root@linux01 conf]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

启动nginx的服务:

[root@linux01 conf]# /etc/init.d/nginx start
Starting nginx (via systemctl):                            [  OK  ]

查看nginx的服务端口:

[root@linux01 conf]# netstat -lntp | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      60930/ngin: master

查看nginx的进程:

[root@linux01 conf]# ps aux | grep nginx
root     60930  0.0  0.0  20552   624 ?        Ss   22:25   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   60931  0.0  0.1  23040  3212 ?        S    22:25   0:00 nginx: worker process
nobody   60932  0.0  0.1  23040  3212 ?        S    22:25   0:00 nginx: worker process
root     60937  0.0  0.0 112704   972 pts/0    S+   22:27   0:00 grep --color=auto nginx

curl测试:

[root@linux01 conf]# curl localhost
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

测试php网页:

[root@linux01 conf]# vim /usr/local/nginx/html/index.php
<?php
echo hello;
?>
[root@linux01 conf]# curl localhost/index.php
hello

出现问题:
编译./configure --prefix=/usr/local/nginx
./configure: error: the HTTP rewrite module requires the PCRE library.
解决办法:

yum install -y pcre-devel




2 默认虚拟主机

修改配置文件:

[root@linux01 ~]# vim /usr/local/nginx/conf/nginx.conf //增加
include vhost/*.conf;
同时去掉
server
{
   listen 80;
   server_name localhost;
   index index.html index.htm index.php;
   root /usr/local/nginx/html;

   location ~ \.php$
   {
      include fastcgi_params;
      fastcgi_pass unix:/tmp/php-fcgi.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name;
   }
}
这一部分配置

然后创建vhost目录:

[root@linux01 ~]# mkdir /usr/local/nginx/conf/vhost
[root@linux01 ~]# cd /usr/local/nginx/conf/vhost/
[root@linux01 vhost]# vim default.conf //加入如下内容
server
{
listen 80 default_server; // 有这个标记的就是默认虚拟主机
server_name aaa.com;
index index.html index.htm index.php;
root /data/wwwroot/default;
}

创建访问目录(注意创建的目录要和配置文件一致)

[root@linux01 vhost]# mkdir -p /data/wwwroot/default/
[root@linux01 vhost]# echo “This is a default site.”>/data/wwwroot/default/index.html

检查配置文件语法:

[root@linux01 vhost]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

重新加载配置文件:

[root@linux01 vhost]# /usr/local/nginx/sbin/nginx -s reload

curl测试:

[root@linux01 data]# curl localhost
this is a default site.
[root@linux01 data]# curl -x127.0.0.1:80 aaa.com
this is a default site.




3 nginx用户认证

创建配置文件:

[root@linux01 ~]# vim /usr/local/nginx/conf/vhost/test.com.conf//写入如下内容
server
{
listen 80;
server_name test.com;
index index.html index.htm index.php;
root /data/wwwroot/test.com;
location /
{
auth_basic "Auth";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
}
}

安装生成密码的工具:

[root@linux01 ~]# yum install -y httpd

生成密码

[root@linux01 wwwroot]# htpasswd -c /usr/local/nginx/conf/htpasswd aming
New password:
Re-type new password:
Adding password for user aming

重新加载-t && -s reload

[root@linux01 ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@linux01 ~]# /usr/local/nginx/sbin/nginx -s reload

创建访问目录:

[root@linux01 ~]# mkdir /data/wwwroot/test.com
[root@linux01 ~]# echo “test.com”>/data/wwwroot/test.com/index.html

curl测试:

[root@linux01 ~]# curl -x127.0.0.1:80 test.com -I
HTTP/1.1 401 Unauthorized
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:13:54 GMT
Content-Type: text/html
Content-Length: 179
Connection: keep-alive
WWW-Authenticate: Basic realm="Auth"

返回状态码401,访问权限受限

加上用户和密码访问:

[root@linux01 ~]# curl -uaming:123456 -x127.0.0.1:80 test.com -I
HTTP/1.1 200 OK
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:16:03 GMT
Content-Type: text/html
Content-Length: 15
Last-Modified: Sun, 18 Nov 2018 16:14:17 GMT
Connection: keep-alive
ETag: "5bf18fd9-f"
Accept-Ranges: bytes

返回状态码200,访问成功

修改配置文件:

[root@linux01 ~]# vim /usr/local/nginx/conf/vhost/test.com.conf
针对目录的用户认证
location /admin/
{
auth_basic "Auth";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
}

匹配目录认证:
server
{
listen 80;
server_name test.com;
index index.html index.htm index.php;
root /data/wwwroot/test.com;
location /admin/
{
auth_basic "Auth";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
}
}

重新加载配置文件:

[root@linux01 ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@linux01 ~]# /usr/local/nginx/sbin/nginx -s reload

创建访问目录:

[root@linux01 test.com]# mkdir admin
[root@linux01 test.com]# echo "hello world" > admin/index.html

curl测试:

[root@linux01 ~]# curl -x127.0.0.1:80 test.com/admin/ -I
HTTP/1.1 401 Unauthorized
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:22:34 GMT
Content-Type: text/html
Content-Length: 179
Connection: keep-alive
WWW-Authenticate: Basic realm="Auth"

返回状态码401,需要用户认证

加上用户和密码测试:

[root@linux01 ~]# curl -uaming:123456 -x127.0.0.1:80 test.com/admin/ -I
HTTP/1.1 200 OK
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:23:35 GMT
Content-Type: text/html
Content-Length: 12
Last-Modified: Sun, 18 Nov 2018 16:20:10 GMT
Connection: keep-alive
ETag: "5bf1913a-c"
Accept-Ranges: bytes

返回状态码200,成功访问

匹配单个网页认证,修改配置文件:

 [root@linux01 ~]# vim /usr/local/nginx/conf/vhost/test.com.conf
    server
    {
    listen 80;
    server_name test.com;
    index index.html index.htm index.php;
    root /data/wwwroot/test.com;
    location ~ admin.php
    {
    auth_basic "Auth";
    auth_basic_user_file /usr/local/nginx/conf/htpasswd;
    }
    }

重新加载配置文件:

[root@linux01 ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@linux01 ~]# /usr/local/nginx/sbin/nginx -s reload

创建访问文件:

[root@linux01 test.com]# vim admin.php
<?php
echo hello;
?>

curl测试:

[root@linux01 ~]# curl -x127.0.0.1:80 test.com/admin.php -I
HTTP/1.1 401 Unauthorized
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:28:03 GMT
Content-Type: text/html
Content-Length: 179
Connection: keep-alive
WWW-Authenticate: Basic realm="Auth"

返回状态码401,需要用户认证

加上用户和密码测试:

[root@linux01 ~]# curl -uaming:123456 -x127.0.0.1:80 test.com/admin.php -I
HTTP/1.1 200 OK
Server: nginx/1.15.5
Date: Sun, 18 Nov 2018 16:28:57 GMT
Content-Type: application/octet-stream
Content-Length: 21
Last-Modified: Sun, 18 Nov 2018 16:25:47 GMT
Connection: keep-alive
ETag: "5bf1928b-15"
Accept-Ranges: bytes

返回状态码200,成功访问



4 nginx域名重定向

更改test.com.conf配置文件:

[root@linux01 ~]# vim /usr/local/nginx/conf/vhost/test.com.conf
server
{
listen 80;
server_name test.comtest1.comtest2.com;
index index.html index.htm index.php;
root /data/wwwroot/test.com;
if ($host != 'test.com' ) {
rewrite ^/(.*)$ http://test.com/$1 permanent;  //permanent永久重定向
}

location ~ admin.php
{
auth_basic "Auth";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
}
}

server_name后面支持写多个域名,这里要和httpd的做一个对比,Apache不支持跟多个域名,不过servernamealias可以跟多个

permanent为永久重定向,状态码为301,如果写redirect则为302

重新加载配置文件:

[root@linux01 ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@linux01 ~]# /usr/local/nginx/sbin/nginx -s reload

curl测试:

[root@linux01 ~]# curl -x127.0.0.1:80 test1.com -I
HTTP/1.1 301 Moved Permanently
Server: nginx/1.15.5
Date: Mon, 19 Nov 2018 01:31:43 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: http://test.com/

状态码为301,表示永久重定向



扩展
nginx.conf 配置详解 http://www.ha97.com/5194.html http://my.oschina.net/duxuefeng/blog/34880
nginx rewrite四种flag http://www.netingcn.com/nginx-rewrite-flag.html http://unixman.blog.51cto.com/10163040/1711943

verilog学习——Verilog的行为建模/Behavioral modeling(2) 函数的用途是返回要在表达式中使用的值。函数定义始终以关键字function开始,后跟返回类型、名称和在参数中的端口列表。函数以关键字endfunction结束。函数至少有一个输入,如果不返回任何内容,则返回类型为void。由两种方法可以声明函数的输入;函数定义隐式地创建一个与函数同名的内部变量。通过将函数结果分配给内部变量来初始化返回值。函数调用是带有表达式的操作数。① 函数不能包含任何时间控制语句,如#、@、wait、posedge、negedge; 阅读详情

相关推荐

STM32F103C8T6键盘DIY全攻略:从电路设计到固件烧录(附避坑指南)

本文详细介绍了基于STM32F103C8T6微控制器的DIY键盘制作全流程,涵盖硬件电路设计、按键矩阵实现、USB HID通信及固件烧录等关键步骤。特别针对常见问题提供避坑指南,帮助开发者高效完成从电路设计到功能实现的完整过程,打造个性化瀚文键盘。

soda5的博客 770

CLI舞蹈网课项目解析:高级Jazz课程的技术实现与学习体验

在线教育平台通过技术架构实现个性化学习路径,其核心原理包括内容分层存储、智能推荐算法和实时反馈机制。这种技术方案在教育领域具有重要价值,能够根据学员水平动态调整教学内容,提升学习效率。在舞蹈教学场景中,系统通过动作识别技术分析学员表现,结合分层教学设计,为高级舞者提供针对性训练。CLI舞蹈网课项目正是基于这一理念,采用课程学习界面(CLI)和智能进度跟踪,为《Take My Hand》Jazz高级课程构建了完整的学习生态系统,解决了传统教学缺乏交互性和个性化的问题。

weixin_33787529的博客 307

微信小程序审核避坑指南:巧用 wx.getAccountInfoSync 实现审核与线上环境无感切换

本文详细介绍了如何利用`wx.getAccountInfoSync`API实现微信小程序审核与线上环境的无感切换。通过环境识别技术和动态渲染架构设计,开发者可以优雅解决审核资质门槛问题,同时保持生产环境的完整用户体验。文章包含组件化实现、全局状态管理等实用方案,帮助开发者提升审核通过率。

weixin_30527423的博客 260

每天一个linux命令(49):at命令

在windows系统中,windows提供了计划任务这一功能,在控制面板 -&gt; 性能与维护 -&gt; 任务计划, 它的功能就是安排自动运行的任务。 通过'添加任务计划'的一步步引导,则可建立一个定时执行的任务。在linux系统中你可能已经发现了为什么系统常常会自动的进行一些任务?这些任务到底是谁在支配他们工作的?在linux系统如果你想要让自己设计的备份程序可以自动在某个时间点开始在系统底...

weixin_33786077的博客 699

手把手教你用Matlab/Simulink搭建PMSM的SMO无感FOC仿真(附相位补偿与离散化代码)

本文详细介绍了基于滑模观测器(SMO)的永磁同步电机(PMSM)无传感器FOC控制方法,通过Matlab/Simulink平台实现从理论到实践的完整流程。内容涵盖SMO核心原理、离散化处理、转子位置估算与相位补偿技术,以及双闭环控制系统搭建,为工程师提供了一套完整的无传感器控制解决方案。

weixin_27038245的博客 253

VScode远程连接开发嵌入式开发板

VScode远程连接开发调试嵌入式开发板

qq_53221728的博客 5891

【lesson49】信号之信号产生

信号之信号产生

m0_67077469的博客 998

FANUC机器人_CRX协作机器人的开机和示教器的初始化设置基本步骤(二)

FANUC机器人_CRX协作机器人的开机和示教器的初始化设置基本步骤

Robot_PLC_HMI_Automation 2732

linux学习lesson18

目录 1 进入编辑模式 2 vim命令模式 3 vim实践 1 进入编辑模式 i            在当前字符前插入 I            在光标所在行的行首插入 a            在当前字符后插入 A            在光标所在行的行尾插入 o            在当前行的下一行插入新的一行 O            在当前行的上一行插入新的一行  ...

InfiniteIdea_Go的博客 341

【知识分享】CAN总线中终端网络的重要性

P沟道和N沟道晶体管的漏源通态电阻匹配良好时,形成的CANH和CANL信号匹配良好;如果驱动器的一半具有比另一半低得多的导通状态电阻,那么总线共模电压将从VCC/2的显性状态偏离,并回到VCC/2的隐性状态,这将导致每一次状态转换都会伴随着共模电压噪声,从而导致更高水平的传导和辐射能量发射。

一只豌豆象的博客 1543

Coze智能体开发:工作流教程之解析文件概述

大模型本身并不具备文件读取和解析的能力,无法直接处理文件字节流。对于支持工具调用(Function calling)的模型,扣子提供插件功能来帮助大模型调用外部工具 API,拓展大模型的能力边界。扣子插件商店提供海量官方插件和第三方插件,例如链接读取插件可以将链接对应的文件内容解析为纯文本传递给大模型。

王国平的博客 1793

Lesson 49-50 How to get promoted?

1 connection 联系,关系,连接部分,交通线 eg. Check all radiators for small leaks,especially round pipework connections.检查所有的暖气片,看有没有小裂缝,尤其是管道连接处附近。 eg. She used her connections to full advantage.她充分利用了自己的人...

weixin_30478757的博客 296

基于STM32、HAL库的IP5356M_DBZ_CA快充协议芯片简介及驱动程序设计

IP5356M_BATTERY_LEVEL_25 = 1, /* 电池电量25% */IP5356M_CHARGE_STATE_CHARGE_DONE = 4, /* 充电完成 */IP5356M_CHARGE_STATE_FAST = 2, /* 快速充电 */IP5356M_CHARGE_STATE_NONE = 0, /* 无充电 */IP5356M_CHARGE_STATE_PRE = 1, /* 预充电 *//* 延时1秒 */

corlin6688的博客 1417

linux中sln作用,linuxHighPerformanceServer.sln

Microsoft Visual Studio Solution File, Format Version 12.00# Visual Studio 15VisualStudioVersion = 15.0.28307.960MinimumVisualStudioVersion = 10.0.40219.1Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC94...

weixin_30068505的博客 411

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

Lesson_6 作业_2 ---- 银行账户模拟

一、作业描述   Account.java文件中定义了一个银行帐户类Account,其中包括了帐户名属性accountName、存款余额属性amount、存款方法deposit(doublemoney)。阅读并理解这个类,并为其增加一个“取款”方法withdraw():当存款余额大于取款金额时,执行取款修改余额;当存款余额小于取款金额时,不执行取款;以返回值0表示取款成功,返回值1表示取款...

weixin_30737363的博客 135

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

JP4-1-1-MyLesson项目简介

MyLesson项目简介,包括项目介绍,权限介绍,环境介绍,技术栈介绍,环境初始化操作,数据库表的创建等。

周航宇的博客 2957

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

工作中使用到的单词(软件开发)_第三版

====

sun0322 1万+

WebGoat2026年版本(全10个模块另附其他模块)通关教程

本文简要介绍了WebGoat安全测试平台的部署和使用方法。主要内容包括:1)环境配置(Java23+Maven3.9.11)和启动步骤;2)HTTP基础任务,通过BurpSuite抓包分析POST请求;3)HTTP代理任务,要求修改请求方法和添加特定头信息;4)开发者工具任务,使用控制台获取随机数和网络请求中的数值;5)CIA三要素测验题。文章提供了具体操作截图和Python请求示例,帮助读者完成各项安全测试任务,适合作为Web应用安全测试的实操参考手册。

csdnkazusa的博客 1360

EduRAG智能回答项目V1.0

本文介绍了基于企业私有数据构建RAG(检索增强生成)系统的完整流程。主要内容包括: 项目背景:针对大模型知识局限性和"幻觉"问题,提出两种解决方案——垂直领域微调和RAG问答系统,分析各自的优缺点及适用场景。 技术工具: 使用Ollama管理本地大模型 采用LangChain框架简化LLM应用开发 利用Milvus向量数据库存储和检索非结构化数据 系统实现: MySQL问答系统:基于BM25算法实现高频问答对检索 RAG系统:包含文档处理、向量存储、查询分类和策略选择等模块。

专注前端开发领域,深耕 Python AI Agent应用开发,热爱探索 Web 与人工智能的前沿技术。 267

linux学习lesson15

目录 1 磁盘格式化 2 磁盘挂载 3 手动增加swap空间 1 磁盘格式化 磁盘格式化命令:mke2fs、mkfs.ext2、mkfs.ext3、mkfs.ext4 和mkfs.xfs 现在以mke2fs为例:常用的参数 -b:表示分区时设定每个数据区块占用的空间大小。目前,每个数据块支持1024B、2048B以及4096B。 -i:表示设定inode的大小。 -N:表示...

InfiniteIdea_Go的博客 2716

linux学习lesson53

文章目录1 php-fpm的pool2 php-fpm慢执行日志3 open_basedir4 php-fpm进程管理 1 php-fpm的pool 支持多个pool的运行网站:隔离站点资源和独立配置 增加一个pool: [root@linux01 ~]# vim /usr/local/php/etc/php-fpm.conf [global] pid = /usr/local/php-fpm/...

InfiniteIdea_Go的博客 761

linux学习lesson38

目录 1 rsync通过服务同步 2 linux系统日志 3 screen工具 1 rsync通过服务同步 要编辑配置文件/etc/rsyncd.conf 启动服务rsync --daemon [root@linux01 ~]# rsync --daemon 启动后可以查看一下日志,并查看端口是否启动 [root@linux01 ~]# vim /etc/rsyncd.con...

InfiniteIdea_Go的博客 737

linux学习lesson36

目录 1 linux任务计划cron 2 chkconfig工具 3 systemd管理服务 4 unit介绍 1 linux任务计划cron Linux任务计划功能的操作都是通过crontab命令来完成的,常用的参数有: -u:表示指定某个用户,不加-u选项则为当前用户 -e:表示制定计划任务 -l:表示列出计划任务 -r:表示删除计划任务 编写任务计划的格式 [ro...

InfiniteIdea_Go的博客 729

linux学习lesson33

目录 1 linux网络相关 2 firewalld和netfilter 3 netfilter5表5链介绍 4 iptables语法 1 linux网络相关 ifconfig查看网卡ip(yum install net-tools) [root@worker1 ~]# yum install -y net-tools ip addr查看网卡ip [root@worker1 ~]...

InfiniteIdea_Go的博客 704

linux学习lesson35

目录 1 iptables规则备份和恢复 2 firewalld的9个zone 3 firewalld关于zone的操作 4 firewalld源于service的操作 1 iptables规则备份和恢复 保存和备份iptables规则 service iptables save //会把规则保存到/etc/sysconfig/iptables [root@worker1 ~]# ...

InfiniteIdea_Go的博客 593

linux学习lesson52

文章目录1 nginx负载均衡2 ssl原理3 生产ssl密钥对(yum install -y openssl)4 nginx配置ssl 1 nginx负载均衡 编辑配置文件: [root@linux01 ~]# vim /usr/local/nginx/conf/vhost/load.conf // 写入如下内容 upstream qq_com { ip_hash; server 111.16...

InfiniteIdea_Go的博客 544
上一篇: linux学习lesson48
下一篇: linux学习lesson50
InfiniteIdea_Go
博客等级 码龄8年 3粉丝 77原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值