服务器
-
Cloudflare加速网站
1 Cloudflare简介Cloudflare 是一个全球性的互联网安全和性能公司,提供内容分发网络(CDN)、DDoS攻击防护、互联网应用安全、DNS服务等服务。它的主要目标是帮助网站提升速度、增强安全性,并减少服务器负载。2 Cloudflare网址网址:https://dash.cloudflare.com3 Cloudflare作用1) CDN服务:通过分布在全球的数据中心,加速网站访问速度,减少页面加载时间,提高用户体验。2) DDoS攻击防护:提供强大的分布式拒绝服务(DDoS)攻击防护,保护网站免受大规模攻击的影响。3) SSL/TLS加密:提供免费的SSL/TLS证书,帮助网
-
使用宝塔的Let's Encrypt 免费证书
1)首先,点击站点的【设置】按钮2)接着,点击【SSL】,然后再点击【Let‘s Encrypt】,接着点击【文件验证】,然后勾选域名,并点击【申请】,操作如下:3)接着,等待一段时间,让其自动生成证书,如下:4)接着,一段时间之后,得到的结果如下,然后直接点击保存按钮即可5)接着,返回站点列表,如下:6)接着,访问域名,结果如下:注意:一般这个证书是3个月(即90天),到期之后,需要手动续签,也可以在宝塔设置自动续签
-
lamp站点配置
1 httpd.conf主配置文件## This is the main Apache HTTP server configuration file. It contains the# configuration directives that give the server its instructions.# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.# In particular, see # <URL:http://httpd.apache.org/docs/2.4/mod
-
LNMP站点配置文件2
1 nginx.conf主配置文件worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; # 引入/usr/local/nginx/conf/extra目录下的所有虚拟主机文件 include /usr/local/nginx/conf/extra/*.conf; server { # 端口号 listen 80; # 域名,可以写真实域名,也可
-
LNMP站点配置文件1
1 nginx.conf主配置文件worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; # 引入/usr/local/nginx/conf/extra目录下的所有虚拟主机文件 include /usr/local/nginx/conf/extra/*.conf; server { # 端口号 listen 80; # 域名,可以写真实域名,也可
-
使用Navicat连接阿里云服务器上的MySQL数据库
1 开放阿里云服务器的3306端口:在安全组配置处开放3306端口2 mysql授权# 默认情况下,mysql用户不允许从远程登录,只能在localhost登录。需要我们进入mysql进行授权# 步骤1:切换到mysql数据库use mysql;# 步骤2:通过如下查询语句来显示所有的用户select user,host from user;# 步骤3:修改root 的host值,将host设置为%表示任何ip都能连接mysqlupdate user set host='%' where user='root' and host='localhost';# 步骤4:再次通过以下查询语句来显示所