centos7+nginx部署asp.net core mvc网站
1. 安装 .net core 可参见官网安装教程。 选择Linux发行版本为Centos/Oracle 添加dotnet的yum仓库配置 $ sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm 安装.net SDK #更新系统软件
sudo yum update
#安装dotnet sdk
sudo yum install dotnet-sdk-2.1 使用dotnet
Flask-WTF表单的使用
使用flask的WTF表单 1 #! /usr/bin/env python
2 # *-* coding: utf-8 *-*
3
4 from flask import Flask, render_template, request, flash, make_response
5 from flask_wtf import FlaskForm
6 from wtforms.fields import *
7 from wtforms.validators import Da
39、count_rpkm_fpkm_TPM
参考:https://f1000research.com/articles/4-1521/v1 https://www.biostars.org/p/171766/ http://www.rna-seqblog.com/rpkm-fpkm-and-tpm-clearly-explained/ It used to be when you did RNA-seq, you reported your results in RPKM (Reads Per Kilobase Million) or
Java分页算法dome
/** * 分页算法 * @author Administrator * */ public class FenYe { public static void main(String[] args) { int totalRows =120;//总条数据 int pageSize =20;//每页条数 int totalPage;//总页数 if((totalRows%pageSize)==0){ totalPage = totalRows/pageSize; }else{ totalPage
jsp数据交互(一) getRequestDispatcher()与sendRedirect()的区别
jsp内置对象这里看别人的总结http://www.cnblogs.com/xiaotangtang/p/4943610.html 一、jsp中java小脚本 1.<% java代码段%> 2.<% =java表达式%>不能有分号 3.<%!成员变量和函数声明%> 二、注释 1.<!--html注释-->客户端可以看到 2.<%--jsp注释--%>客户端不能看到 三、jsp页面的的执行过程 1.客户端请求(输入URL) 2.服务器 (1)现将jsp翻译成.java文件(第一次请求) 如果
服务器病了吗? Linux 服务器的那些性能参数指标
一个基于 Linux 操作系统的服务器运行的同时,也会表征出各种各样参数信息。通常来说运维人员、系统管理员会对这些数据会极为敏感,但是这些参数对于开发者来说也十分重要,尤其当你的程序非正常工作的时候,这些蛛丝马迹往往会帮助快速定位跟踪问题。 这里只是一些简单的工具查看系统的相关参数,当然很多工具也是通过分析加工 /proc、/sys 下的数据来工作的,而那些更加细致、专业的性能监测和调优,可能还需要更加专业的工具(perf、systemtap 等)和技术才能完成哦。毕竟来说,系统性能监控本身就
【ElasticSearch故障处理】OpenJDK 64-Bit Server VM warning
【故障描述】 VM虚拟机安装ElasticSearch集群,有三台Linux,完成安装后,执行启动命令:bin/elasticsearch -d 。 运行结果报错: OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropri
SpringMVC中@PathVariable(value="id")
@Controller
@RequestMapping(value="/hello") // 在类上加[@RequestMapping("/hello")]注解,请求路径就会变成
// [http://localhost:8080/SpringHelloWorld/hello/world]
public class Helloworld {
@RequestMapping(value="/world/{id}")
font类 字体显示效果常用方法
font类用于显示字体的效果 int BOLD 常量 文字显示为粗体 int ITALIC 常量 文字显示为风格斜体 int PLAIN 常量 文字显示风格为普通样式 Font(String name,int style,int size) 构造 实例化对象,指定显示风格及大小 getFontName() 普通 得到字体的名称
Linux常用shell种类
不同的shell具备不同的功能,shell还决定了Linux中默认的shell是/bin/bash,流行的shell有ash、bash、ksh、csh、zsh等,不同的shell都有自己的特点以及用途。 bash 大多数Linux系统默认使用的shell,bash shell是Bourne shell 的一个免费版本,它是最早的Unix shell,bash还有一个特点,可以通过help命令 来查看帮助。包含的功能几乎可以涵盖shell所具有的功能,所以一般的shell脚本都会指定它为执行
nginx hello模块代码
// ngx_http_mytest_module.c
#include "ngx_core.h"
#include "ngx_string.h"
#include "ngx_buf.h"
#include "ngx_conf_file.h"
#include "ngx_http.h" // 必须在ngx_http_request.h之前包含该文件
#include "ngx_http_request.h"
#include "ngx_http_config.h"
#include "ngx
手把手教你整合最优雅SSM框架:SpringMVC + Spring + MyBatis
在写代码之前我们先了解一下这三个框架分别是干什么的? 相信大以前也看过不少这些概念,我这就用大白话来讲,如果之前有了解过可以跳过这一大段,直接看代码! SpringMVC:它用于web层,相当于controller(等价于传统的servlet和struts的action),用来处理用户请求。举个例子,用户在地址栏输入http://网站域名/login,那么springmvc就会拦截到这个请求,并且调用controller层中相应的方法,(中间可能包含验证用户名和密码的业务逻辑,以及查询数据库操
HTTP 协议(详解)
HTTP协议简介:HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于万维网(www.world wide web) 服务器与本地浏览器之间传输文本的传输协议。 HTTP是一个属于应用层的面向对象的协议,由于其简捷。快速的方式,适用于分布式超媒体信息系统。HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。we服务器根据接收到的请求后,向客户端发送所有请求。web服务器根据接收
[javascript]编码&i字符串格式化&nput历史记录&清空模态框
js中编码问题 https://www.haorooms.com/post/js_escape_encodeURIComponent 我在前端js添加时候创建dom时候,有汉字,发现是乱码就研究了下 针对字符编码 javascript:escape("\u6625\u8282");
//输出 "%u6625%u8282"
javascript:unescape("%u6625%u8282");
//输出 "春节"
javascript:unescape("\u6625\u8282")
leetcode_11. Container With Most Water
leetcode_11. Container With Most Water 一,问题: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two line
django部署到linux上不显示.svg图标处理方法
在setting文件的最开始添加如下内容: import mimetypes mimetypes.add_type("image/svg+xml", ".svg", True) mimetypes.add_type("image/svg+xml", ".svgz", True)
今日推荐
周排行