基于Java代码进行GPG加解密

依赖

1
2
3
4
5
6
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpg-jdk15on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpg-jdk15on</artifactId>
<version>1.65</version>
</dependency>

systemctl命令介绍和使用

Systemd程序

Systemd其实是Linux系统用来管理系统的一个程序,用来代替原来的init进程(用来管理启动系统其它的服务进程),现在很多Linux发行版都已经自带Systemd程序。

systemctl命令

Windows下MySQL服务安装及启动脚本

Install MySQL Service.bat

1
2
3
4
5
6
7
8
@echo off
set mysql_home=D:/Server/MySQL/mysql-5.7.20-winx64

echo Installing MySQL5.7 Service...
%mysql_home%/bin/mysqld --install "MySQL5.7" --defaults-file="%mysql_home%/my.ini"
%mysql_home%/bin/mysqld --initialize --user=mysql --console

pause

Python Web框架Django模板标签

变量、列表及字典

(1)控制器

1
2
3
4
5
6
7
8
def appblog(request):
# context = {}
# context['hello'] = 'http://www.appblog.cn'
# return render(request, 'test.html', context)
views_var = 'http://www.appblog.cn' # 变量
views_list = ["AppBlog", "AliPay", "WeChat"] # 变量
views_dict = {"name": "APP开发技术博客"} # 字典
return render(request, 'test.html', {"hello": views_var, "views_list": views_list, "views_dict": views_dict})

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :