Linux部署lomp环境,安装typecho、WordPress博客

部署lomp环境,安装typecho、WordPress博客

  • 一、环境要求
    • 1.1.版本信息
    • 1.2.准备阿里云服务器【新用户免费使用三个月】
    • 1.3.准备远程工具【FinalShell】
  • 二、Linux下安装openresty
  • 三、Linux下安装Mysql
  • 四、安装Apache【此步骤可省略】
    • 4.1.安装Apache服务及其扩展包
    • 4.2.Apache服务相关命令
    • 4.3.检查Apache状态
    • 4.4.查看其配置文件位置
    • 4.5.如果想修改默认页面,可以修改指定目录中 index.html 内容
    • 4.6.开放centos7的80和3306端口,配置防火墙相关命令
    • 4.7.打开浏览器输入ECS服务器的公网IP,如果显示如下图的测试页面表示Apache服务安装成功。
  • 五、remi扩展源安装PHP
    • 5.1.PHP官网
    • 5.2.安装remi扩展源
    • 5.3.安装yum管理工具
    • 5.4.安装php7.4
    • 5.5.查看安装结果
    • 5.6.建立软连接
    • 5.7.启动PHP
    • 5.8.修改php-fpm的配置
    • 5.9.创建PHP测试页面
    • 5.10.修改nginx配置文件,使nginx支持php
    • 5.11.重启openresty服务
    • 5.12.查看openresty运行状态来判断是否成功
    • 5.13.打开浏览器,访问http://<ECS公网IP>:8080/info.php,显示如下页面表示PHP安装成功
    • 5.14.出现问题解决
      • 5.14.1.CentOS 64 编译PHP出现 error: Cannot find ldap libraries in /usr/lib
      • 5.14.2.编译安装PHP7.4时出现configure: error: Package requirements (oniguruma) were not met
      • 5.14.3.Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met
  • 六、搭建博客【WordPress】
    • 6.1.创建文件夹管理
    • 6.2.下载Wordpress安装包并解压
    • 6.3.修改WordPress配置文件wp-config.php
    • 6.4.创建存储博客网站内容的数据库
    • 6.5.配置MySQL的安全性
    • 6.6.输入exit退出数据库
    • 6.7.修改openresty配置文件并重启
    • 6.8.防火墙放行8080端口
    • 6.9.确保服务启动
    • 6.10.FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
    • 6.11.打开浏览器,访问http://<ECS公网IP>:8080
    • 6.12.博客页面进行相关设置
  • 七、安装typecho博客
    • 7.1.创建文件夹管理并下载
    • 7.2.修改openresty配置文件
    • 7.3.创建数据库typecho
    • 7.4.打开浏览器,访问http://<ECS公网IP>:8081
    • 7.5.博客页面进行相关设置
    • 7.6.Typecho点击前台链接或者后台登录时出现404的解决方法
    • 7.7.typecho只能打开主页,文章详细内容打不开
    • 7.8.配置Joe主题
    • 7.9.关闭【Bye Bye】
  • endl 本文章下载链接

一、环境要求

1.1.版本信息

CentOS 7.9
openresty 1.25.3.1
Mysql 5.7
PHP 7.4.33

在这里插入图片描述

1.2.准备阿里云服务器【新用户免费使用三个月】

阿里云服务器链接专享:https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=yu4fhct7

在这里插入图片描述

1.3.准备远程工具【FinalShell】

官网:http://www.hostbuf.com/
下载链接:http://www.hostbuf.com/t/988.html

在这里插入图片描述
在这里插入图片描述

二、Linux下安装openresty

参考链接:https://blog.csdn.net/qq_45740503/article/details/135887895

三、Linux下安装Mysql

参考链接:https://blog.csdn.net/qq_45740503/article/details/135617610

四、安装Apache【此步骤可省略】

4.1.安装Apache服务及其扩展包

yum -y install httpd httpd-manual httpd-devel mod_ssl mod_perl

4.2.Apache服务相关命令

#启动Apache服务
systemctl start httpd#重启Apache服务
systemctl restart httpd# 查看Apache状态
systemctl status httpd#停止Apache服务
systemctl stop httpd# 设置Apache服务开机自启动
systemctl enable httpd

4.3.检查Apache状态

# 查看Apache状态
systemctl status httpd# 检查apache软件版本
rpm -qa | grep httpd# 检查apache的进程
ps -ef | grep apache

在这里插入图片描述
在这里插入图片描述

4.4.查看其配置文件位置

rpm -qc httpd

在这里插入图片描述

配置文件主目录: /etc/httpd/conf/http.conf默认发布目录是:/var/www/html子配置文件目录 /etc/httpd/conf.d/*默认关联上下文的情况是 httpd_sys_content_t通找到index 进行添加默认访问目录,其访问顺序分先后次序apache 日志文件位置 :/etc/httpd/logs/*apache 的默认用户为apacheapache 有同步阻塞功能,使用的意义是在有多个文件时是顺序访问的

4.5.如果想修改默认页面,可以修改指定目录中 index.html 内容

# 目录地址
cd /usr/share/httpd/noindex

4.6.开放centos7的80和3306端口,配置防火墙相关命令

方法1 直接关闭防火墙,开启系统所有端口
systemctl stop firewalld方法2 防火墙放行80端口【推荐】
//放行80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
//让防火墙通过mysql的3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
//使能防火墙生效 
firewall-cmd --reload
//查看是否生效
firewall-cmd --list-ports

在这里插入图片描述
在这里插入图片描述

4.7.打开浏览器输入ECS服务器的公网IP,如果显示如下图的测试页面表示Apache服务安装成功。

说明:在实例页面可查看到ECS服务器的公网IP。
在这里插入图片描述

五、remi扩展源安装PHP

5.1.PHP官网

官网:https://www.php.net/
在这里插入图片描述

5.2.安装remi扩展源

yum install -y epel-releaseyum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm

5.3.安装yum管理工具

yum install -y yum-utils

5.4.安装php7.4

yum search php74yum install -y php74-php-cli php74-php-common php74-php-devel \
php74-php-embedded php74-php-fpm php74-php-gd php74-php-mbstring \
php74-php-mysqlnd php74-php-pdo php74-php-opcache php74-php-xml php74-php-soap php74-php-zip

在这里插入图片描述
在这里插入图片描述

5.5.查看安装结果

yum list installed | grep php

在这里插入图片描述

5.6.建立软连接

通过remi安装的php的指令是php74,建立一下软链接

find / -name php74ln -s /opt/remi/php74/root/usr/bin/php /usr/local/bin/php

在这里插入图片描述

5.7.启动PHP

start、stop、restart、enable、status、restart
php -v# 启动fpm
systemctl start php74-php-fpm# 开机自启
systemctl enable php74-php-fpm

在这里插入图片描述

5.8.修改php-fpm的配置

vim /etc/opt/remi/php74/php-fpm.d/www.conf
#创建 www的用户
useradd www
;把user = apache和group = apache 改成user = www
group = www;在这个配置文件中前面加上;就是注释
;user = apache
;group = apache
systemctl restart php74-php-fpm

在这里插入图片描述

在这里插入图片描述

5.9.创建PHP测试页面

mkdir -p /opt/www
echo "<?php phpinfo(); ?>" > /opt/www/info.php

在这里插入图片描述

5.10.修改nginx配置文件,使nginx支持php

# 备份文件
mv /usr/local/openresty/nginx/conf/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf.bakvi /usr/local/openresty/nginx/conf/nginx.conf

主要添加内容:

user www;server {listen 8080;server_name localhost;location / {#修改html路径root /opt/www;# 添加index.phpindex index.php index.html;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000location ~ \.php$ {root /opt/www;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_pass  127.0.0.1:9000;include fastcgi_params;}}

完整内容:

user www;
# 指令名	指令值;  #全局块,主要设置Nginx服务器整体运行的配置指令
worker_processes  1;  # 默认为1,表示开启一个业务进程error_log  logs/error.log;# events块,主要设置,Nginx服务器与用户的网络连接,这一部分对Nginx服务器的性能影响较大
events { # 事件驱动模块accept_mutex on; #设置Nginx网络连接序列化,防止多个进程对连接的争抢multi_accept on; #设置Nginx的worker进程是否可以同时接收多个网络请求worker_connections 1024; # 设置Nginx单个worker进程最大的连接数use epoll; #设置Nginx使用的事件驱动模型,使用epoll函数来优化Ngin
}# http块,是Nginx服务器配置中的重要部分,代理、缓存、日志记录、第三方模块配置...  
http {include       mime.types; # 引入http mime类型default_type  application/octet-stream; # 如果mime类型没有匹配上,默认使用二进制流的方式传输log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" "$http_x_forwarded_for"';access_log  logs/access.log  main;sendfile        on; # 使用limux的sendfile(socket,file,len)高效网络传输,也就是数据0拷贝tcp_nopush      on; # 主要是用来提升网络包的传输效率tcp_nodelay     on; # 提高网络包传输的实时性keepalive_timeout  65;# server块,是Nginx配置和虚拟主机vhost相关的内容server { # 虚拟主机配置listen       80; # 监听端口号80server_name  localhost; # 域名、主机名#  location块,基于Nginx服务器接收请求字符串与location后面的值进行匹配,对特定请求进行处理location / { # 匹配路径root   html; # 文件根目录index  index.html index.htm; # 默认页名称}error_page   500 502 503 504  /50x.html; # 报编码错误对应页面location = /50x.html {root   html;}}server {listen 8080;server_name localhost;location / {#修改html路径root /opt/www;# 添加index.phpindex index.php index.html;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000location ~ \.php$ {root /opt/www;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_pass  127.0.0.1:9000;include fastcgi_params;}}}

在这里插入图片描述
在这里插入图片描述

5.11.重启openresty服务

systemctl restart openresty

5.12.查看openresty运行状态来判断是否成功

systemctl status openresty

在这里插入图片描述

5.13.打开浏览器,访问http://<ECS公网IP>:8080/info.php,显示如下页面表示PHP安装成功

http://192.168.229.141:8080/info.php

在这里插入图片描述

5.14.出现问题解决

5.14.1.CentOS 64 编译PHP出现 error: Cannot find ldap libraries in /usr/lib

cp -frp /usr/lib64/libldap* /usr/lib/

5.14.2.编译安装PHP7.4时出现configure: error: Package requirements (oniguruma) were not met

网址: https://github.com/kkos/oniguruma

mkdir -p /php/modulescd /php/moduleswget https://github.com/kkos/oniguruma/releases/download/v6.9.9/onig-6.9.9.tar.gztar -zxf onig-6.9.9.tar.gz./configure --prefix=/usr --libdir=/lib64
#64位的系统一定要标识  --libdir=/lib64 否则还是不行make && make install

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

5.14.3.Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):CMake 3.5.0 or higher is required.  You are running version 2.8.12.2-- Configuring incomplete, errors occurred!
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:No package 'libzip' found
No package 'libzip' found
No package 'libzip' found

解决:

提示cmake版本过低,需新版本,则需要重新安装cmake
# 移除旧的cmake
yum remove cmake
# 安装cmake
cd /php/modules
wget https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.tar.gz
# 这个cmake压缩包不是源码包,解压后直接用
tar -zxf cmake-3.9.1-Linux-x86_64.tar.gz
mv cmake-3.9.1-Linux-x86_64 /opt/cmake-3.9.1
# 创建软链接
ln -sf /opt/cmake-3.9.1/bin/*  /usr/bin/
# 查看版本
cmake --version# libzip 编译生成静态库
# 移除旧的libzip
yum remove libzip
cd /php/moduleswget https://libzip.org/download/libzip-1.3.2.tar.gztar -zxf libzip-1.3.2.tar.gzcd libzip-1.3.2./configure --prefix=/usr/local/libzip-1.3.2
make && make installvim /etc/profileexport PKG_CONFIG_PATH='/usr/local/libzip-1.3.2/lib/pkgconfig'
source /etc/profilemkdir build
cd buildcmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/libzip-1.10.1 ..
cmake --build .
cmake --install .

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

六、搭建博客【WordPress】

WordPress官网:https://cn.wordpress.org/

6.1.创建文件夹管理

mkdir -p /wordpress/core
cd /wordpress/core

6.2.下载Wordpress安装包并解压

wget https://cn.wordpress.org/wordpress-6.4.2-zh_CN.tar.gztar -zxf wordpress-6.4.2-zh_CN.tar.gz

在这里插入图片描述

6.3.修改WordPress配置文件wp-config.php

  • database_name_here为之前步骤中创建的数据库名称,本示例为wordpress。
  • username_here为MySQL数据库的用户名,本示例为root。
  • password_here为MySQL数据库的登录密码,本示例为Mysql.123456。
cd /wordpress/core/wordpresscp wp-config-sample.php wp-config.phpvi wp-config.php# 设置wordpress的权限
chown -R www.www /wordpress/core/wordpresssystemctl restart php74-php-fpm
// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define( 'DB_NAME', 'wordpress' );/** MySQL数据库用户名 */
define( 'DB_USER', 'root' );/** MySQL数据库密码 */
define( 'DB_PASSWORD', '123456' );/** MySQL主机 */
define( 'DB_HOST', '192.168.229.141:3306' );/** 创建数据表时默认的文字编码 */
define( 'DB_CHARSET', 'utf8' );/** 数据库整理类型。如不确定请勿更改 */
define( 'DB_COLLATE', '' );

在这里插入图片描述

在这里插入图片描述

6.4.创建存储博客网站内容的数据库

systemctl start mysqldmysql -u root -pcreate database wordpress; show databases;

在这里插入图片描述
在这里插入图片描述

6.5.配置MySQL的安全性

mysql_secure_installation
[root@localhost mysql]# mysql_secure_installation
## 默认已用空密码登录
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.##是否安装密码强度验证模块,看自己需求
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: no## 设置root的密码
Please set the password for root here.
New password:
Re-enter new password:## 是否删除匿名用户,可删
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.## 默认情况下只允许本机访问,是否开启远程访问,按自己需求
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.## 是否删除测试数据库,可删
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y- Dropping test database...
Success.- Removing privileges on test database...
Success.## 是否立即重新加载刚才的配置,选择是
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
## 配置完毕
All done!

6.6.输入exit退出数据库

在这里插入图片描述

6.7.修改openresty配置文件并重启

vi /usr/local/openresty/nginx/conf/nginx.confsystemctl restart openresty

在这里插入图片描述

在这里插入图片描述

6.8.防火墙放行8080端口

//放行8080端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent
//使能防火墙生效 
firewall-cmd --reload
//查看是否生效
firewall-cmd --list-ports

6.9.确保服务启动

systemctl status php74-php-fpmsystemctl status openrestysystemctl status mysqld

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

6.10.FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

权限不足停用selinux

# 查看状态
sestatus# 如果查看不是disabled状态,我们可以通过修改配置文件来进行设置,修改SELINUX=disabled,然后重启下系统即可生效。
vim /etc/selinux/config# 重启系统
reboot

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

6.11.打开浏览器,访问http://<ECS公网IP>:8080

http://192.168.229.141:8080/

在这里插入图片描述

6.12.博客页面进行相关设置

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

七、安装typecho博客

7.1.创建文件夹管理并下载

typecho博客官网下载:https://typecho.org/download

mkdir -p /typechocd typechowget https://github.com/typecho/typecho/releases/latest/download/typecho.zipunzip typecho.zipchmod -R 777 /typecho	# 直接给 typecho 目录及子文件赋予所有权限,防止安装时出现其他问题

在这里插入图片描述
在这里插入图片描述

7.2.修改openresty配置文件

vi /usr/local/openresty/nginx/conf/nginx.confsystemctl reload openresty
server {listen 8081;server_name localhost;location / {#修改html路径为解压博客文件路径root /typecho;# 添加index.phpindex index.php index.html;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000location ~ .*\.php(\/.*)*$  {root /typecho;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_pass  127.0.0.1:9000;include fastcgi_params;}}

在这里插入图片描述

7.3.创建数据库typecho

# 进入数据库
mysql -u root -p
自己的密码# 创建数据库
create database typecho;

在这里插入图片描述

7.4.打开浏览器,访问http://<ECS公网IP>:8081

http://192.168.229.141:8081/

在这里插入图片描述

7.5.博客页面进行相关设置

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

7.6.Typecho点击前台链接或者后台登录时出现404的解决方法

官方给的解决方式是nginx.conf 里的 location 设置成这样

location ~ .*\.php$

要支持 pathinfo,需要改成

location ~ .*\.php(\/.*)*$
#location ~ [^/]\.php(/|$)

在某些老版本的php里面,可能还要打开php.ini里的cgi.fix_pathinfo

find / -name php.inivi /etc/opt/remi/php74/php.inicgi.fix_pathinfo = 1

在这里插入图片描述
在这里插入图片描述

7.7.typecho只能打开主页,文章详细内容打不开

问题原因:PHP这块不支持pathinfo
修改为:

    server {listen 8081; server_name localhost;location / {#修改html路径为解压博客文件路径root /typecho;# 添加index.phpindex index.php index.html;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000location ~ .*\.php(\/.*)*$ {root /typecho;fastcgi_pass  127.0.0.1:9000;fastcgi_index index.php;fastcgi_split_path_info ^(.+?.php)(/.*)$;set $path_info "";set $real_script_name $fastcgi_script_name;if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$"){set $real_script_name $1;set $path_info $2;}fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_param SCRIPT_NAME $real_script_name;fastcgi_param PATH_INFO $path_info;#fastcgi_pass  127.0.0.1:9000;include fastcgi_params;}}

在这里插入图片描述
完整版:nginx.conf

user www;
# 指令名        指令值;  #全局块,主要设置Nginx服务器整体运行的配置指令
worker_processes  1;  # 默认为1,表示开启一个业务进程error_log  logs/error.log;# events块,主要设置,Nginx服务器与用户的网络连接,这一部分对Nginx服务器的性能影响较大
events { # 事件驱动模块accept_mutex on; #设置Nginx网络连接序列化,防止多个进程对连接的争抢multi_accept on; #设置Nginx的worker进程是否可以同时接收多个网络请求worker_connections 1024; # 设置Nginx单个worker进程最大的连接数use epoll; #设置Nginx使用的事件驱动模型,使用epoll函数来优化Ngin
}# http块,是Nginx服务器配置中的重要部分,代理、缓存、日志记录、第三方模块配置...
http {include       mime.types; # 引入http mime类型default_type  application/octet-stream; # 如果mime类型没有匹配上,默认使用二进制流的方式传输log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" "$http_x_forwarded_for"';access_log  logs/access.log  main;sendfile        on; # 使用limux的sendfile(socket,file,len)高效网络传输,也就是数据0拷贝tcp_nopush      on; # 主要是用来提升网络包的传输效率tcp_nodelay     on; # 提高网络包传输的实时性keepalive_timeout  65;include nginx_gzip.conf;# server块,是Nginx配置和虚拟主机vhost相关的内容server { # 虚拟主机配置listen       80; # 监听端口号80server_name  localhost; # 域名、主机名#  location块,基于Nginx服务器接收请求字符串与location后面的值进行匹配,对特定请求进行处理location / { # 匹配路径root   html; # 文件根目录index  index.html index.htm; # 默认页名称}error_page   500 502 503 504  /50x.html; # 报编码错误对应页面location = /50x.html {root   html;}}server {listen 8081;server_name localhost;location / {#修改html路径为解压博客文件路径root /typecho;# 添加index.phpindex index.php index.html;}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000location ~ .*\.php(\/.*)*$ {root /typecho;fastcgi_pass  127.0.0.1:9000;fastcgi_index index.php;fastcgi_split_path_info ^(.+?.php)(/.*)$;set $path_info "";set $real_script_name $fastcgi_script_name;if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$"){set $real_script_name $1;set $path_info $2;}fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_param SCRIPT_NAME $real_script_name;fastcgi_param PATH_INFO $path_info;#fastcgi_pass  127.0.0.1:9000;include fastcgi_params;}}}

7.8.配置Joe主题

Joe主题网站:https://github.com/HaoOuBa/Joe.git

https://github.com/HaoOuBa/Joe.git

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

7.9.关闭【Bye Bye】

systemctl stop openrestysystemctl stop php74-php-fpmsystemctl stop mysqld# 关机
shutdown now

endl 本文章下载链接

本文章下载链接:https://www.lanzv.com/i25up1myinba 密码:44ks

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

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

相关文章

Git―基本操作

Git ⛅认识 Git⛅安装 GitCentos(7.6)Ubuntu ⛅Git―基本操作创建本地仓库&#x1f342;配置本地仓库&#x1f342;工作区, 暂存区, 版本库&#x1f342;版本库工作区 添加文件&#x1f342;查看文件&#x1f342;修改文件&#x1f342;版本回退&#x1f342;☃️案例 撤销修改…

2024年美赛 (D题ICM)| 湖流网络水位控制 |数学建模完整代码+建模过程全解全析

当大家面临着复杂的数学建模问题时&#xff0c;你是否曾经感到茫然无措&#xff1f;作为2022年美国大学生数学建模比赛的O奖得主&#xff0c;我为大家提供了一套优秀的解题思路&#xff0c;让你轻松应对各种难题。 让我们来看看美赛的D题&#xff01; 完整内容可以在文章末尾领…

SpringBoot security 安全认证(二)——登录拦截器

本节内容&#xff1a;实现登录拦截器&#xff0c;除了登录接口之外所有接口访问都要携带Token&#xff0c;并且对Token合法性进行验证&#xff0c;实现登录状态的保持。 核心内容&#xff1a; 1、要实现登录拦截器&#xff0c;从Request请求中获取token&#xff0c;从缓存中获…

STM32 1-5

目录 STM32简介 点亮PC13LED GPIO LED闪烁 LED流水灯 按键控制LED 光敏传感器控制蜂鸣器 OLED调试工具 OLED显示 EXTI外部中断 对射式红外传感器计次 旋转编码器计次 继续 STM32简介 点亮PC13LED main.c #include "stm32f10x.h" // D…

【前端模板】bootstrap5实现蓝色数码网站BigTech(电商适用,附带源码)

一、需求分析 数码电商网站是指专门销售数码产品的在线商城。它们提供了一个平台&#xff0c;供消费者浏览、选择和购买各种数码产品&#xff0c;如智能手机、电脑、相机、家电等。这些网站通常提供以下功能&#xff1a; 产品展示&#xff1a;数码电商网站展示各种数码产品的详…

从零开始:构建高效的 JMeter 集群压测环境

当面对大量用户模拟和性能测量需求时&#xff0c;单台计算机运行 JMeter 往往显得力不从心。因此&#xff0c;构建一个多节点的JMeter集群成为了一种提升测试性能的有效途径。接下来&#xff0c;本文将详细介绍如何组建和配置一个JMeter测试集群。 一、准备工作&#xff1a;服…

英伟达盯上了华为!特供版AI芯片价格首次曝光!起售价11万元低于华为

大家好我是二狗。 据《路透社》报道&#xff0c;英伟达最近几周已开始接受经销商对中国特供版AI芯片H20 的预订&#xff0c;英伟达给出每块显卡 12000 美元&#xff08;8.6 万元人民币&#xff09;至 15000 美元&#xff08;10.7 万元人民币&#xff09;之间的定价。 一些经销…

Django响应式图像库django-pictures

什么是响应式图像&#xff1f; 响应式设计是指网页在不同尺寸的设备上都有良好的显示效果。响应式设计的网页图像&#xff0c;就是响应式图像。 django-pictures是使用现代代码&#xff08;如 AVIF 和 WebP&#xff09;的响应式跨浏览器图像库。 特点 使用 Picture 标签的响应…

怎么去除图片中不需要的部分?这三种高效方法快来试一下

在数字图像处理的浩瀚世界中&#xff0c;去除图片中不必要部分的任务&#xff0c;宛如一幅细致的画卷&#xff0c;需精心描绘。这些不必要部分&#xff0c;可能是背景、水印、无关紧要物体或错误部分&#xff0c;它们如同图片中的瑕疵&#xff0c;需要被巧妙地修饰或去除。这不…

使用 Taro 开发鸿蒙原生应用 VOL1:当 Taro 遇到纯血鸿蒙

纯血鸿蒙即将到来 在23年 8 月的「2023年华为开发者大会&#xff08;HDC.Together&#xff09;」上&#xff0c;华为正式官宣「鸿蒙Next」&#xff0c;这个更新的版本将移除所有的 AOSP 代码&#xff0c;彻底与 Android 切割&#xff0c;使其成为一个完全自主研发的操作系统&a…

vue 适配大屏 页面 整体缩放

正常应该放在app.vue 里面。我这里因为用到element-ui 弹框无法缩放&#xff0c;所以加在body上面 (function (doc, win) {var docEl doc.documentElement,resizeEvt orientationchange in window ? orientationchange : resize,recalc function () {var clientWidth docE…

数据库运维工作量直接减少 50%,基于大模型构建智能问答系统的技术分享

本文源自百度智能云数据库运维团队的实践&#xff0c;深入探讨了基于大模型构建「知识库智能问答系统」的设计过程和应用。 全文包括了总体的技术方案选型、各个模块的设计实现、重点难点问题的突破、以及目前的落地场景应用等。 该系统自从内部上线以来&#xff0c;整体的回…