# Install the public key for the repository (if not done previously): sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add # Create the repository configuration file: sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update' # Install for desktop mode only: sudo apt install pgadmin4-desktop参考: 官网
Ubuntu安装PgAdmin

Ubuntu安装PgAdmin

基于arxiv-sanity-preserver订阅最新论文当前环境:Debian10, Python3安装Python包apt-get install pyhon3-pip apt-get install imagemagick poppler-utils安装Mongodbwget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list apt-get update apt-get install -y mongodb-org systemctl enable mongod systemctl start mongod安装git clone https://github.com/karpathy/arxiv...
arxiv订阅

arxiv订阅

# 监听80端口,http请求转发到https监听的443端口 server { listen 80; server_name localhost; return 301 https://$server_name$request_uri; } # 监听443端口,https请求 server { listen 443 ssl; root /var/www/html; index index.php index.html index.htm; server_name localhost; ssl on; ssl_certificate /etc/nginx/ssl/cert.crt; # 证书路径 ssl_certificate_key /etc/nginx/ssl/cert.key; # 证书路径 ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1....
nginx服务器配置https

nginx服务器配置https

SAPISAPI指的是Server Application Programming Interface服务端应用编程端口,它是PHP与其他应用交互的接口。PHP脚本要执行有许多方式,直接在命令行下运行,或通过Web服务器,也可以嵌入其他程序中。SAPI提供了一个和外部通信的接口,常见的SAPI有:Cli, CGI,FastCGI。CliPHP的命令行运行模式。CGICGI即通用网关接口(common gatewag interface),它是一段程序,通俗的讲CGI就象是一座桥,把网页和Web服务器中的执行程序连接起来,它把客户端请求传递给服务器的执行程序(PHP-CGI),再把服务器执行程序的结果返还给客户端。CGI方式在遇到客户端连接请求时先要创建CGI的子进程,激活一个CGI进程,然后处理请求,处理完后结束这个子进程。这就是fork-and-execute模式。所以用CGI方式的服务器有多少连接请求就会有多少CGI子进程,子进程反复加载是CGI性能低下的主要原因。当用户请求数量非常多时,会大量挤占系统的资源如内存和CPU等,造成效能低下。FastCGIFastCGI是CGI...
SAPI运行生命周期

SAPI运行生命周期

定义编译tasktasks.json文件:{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "cmake build", "type": "shell", "command": "cmake --build ${workspaceFolder}\\build", "args": [], "presentation": { ...
vscode+cmake下qt调试配置

vscode+cmake下qt调试配置