摘要:
1. 设置好清华镜像 export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup 2. 下载rustup-init wget 'https://mirrors.tuna.tsinghua.edu.cn/rustup/ru 阅读全文
摘要:
0.介绍 自己开发的使用了SSL协议的软件,通常没必要从证书签发机构那里来获取证书,自签证书成了必要的选择。自签证书还可以用来实现客户端登录认证。 1.创建CA 创建CA的私钥 openssl genrsa -des3 -out rootCA.key 4096 创建CA的自签证书 openssl r 阅读全文
摘要:
使用Nginx转发 stream { upstream backends { server 10.0.0.10:80; server 10.0.0.11:80; server 10.0.0.12:80 backup; } server { listen 80; proxy_pass backends 阅读全文
摘要:
此处脚本用途:Tomcat的JKS转换成Nginx的PEM格式。 #!/bin/bash export JKS=$1 export PASS=$2 NAME=$(basename "$JKS") TODIR="$PWD/$NAME-pem" mkdir -p "$TODIR" set -x keyt 阅读全文
摘要:
1.主配置/etc/nginx.conf #/etc/nginx/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic 阅读全文
摘要:
1. 安装miniconda 下载并安装miniconda到$HOME/.miniconda/ #从官网下载 wget -c "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O 'Miniconda3- 阅读全文
摘要:
本来要写一个检测手机的温度的小应用,学习一下传感器的api,可结果怎么写不行。经检测,发现取得的Sensor为NULL,这才明白,我手机没有TYPE_AMBIENT_TEMPERATURE传感器。于是写了一个APP列出所有的可用的Sensors。(附编译后的APK:http://pan.baidu.... 阅读全文
摘要:
最近新买一笔记本,神州战神K650D-i5 D1。仍旧安装双系统,WIndows7+Fedora20。磁盘分区是这样的: 第一主分区 /boot ext4 20G 第二主分区 / ext4 70G 第三主分区 widows7 系统盘C: ntfs 80G 第四主分区 数据盘D: ntfs 300G 阅读全文