`
Tzhennan
  • 浏览: 55257 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
#【教程】5分钟在以太坊上发行自己的代币 http://wangmengqi.logdown.com/posts/2473648-tutorial-workshop-on-smart-contracts-issued-tokens   # How to get on Rinkeby Testnet in less than 10 minutes https://gist.github.com/cryptogoth/10a98e8078cfd69f7ca892ddbdcf26bc   # download geth  https://geth.ethereum.org/downl ...
内存要求: To run Hyperledger Composer and Hyperledger Fabric, we recommend you have at least 4Gb of memory.   开发工具: Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12 Docker Engine: Version 17.03 or higher Docker-Compose: Version 1.8 or higher Node: 8.9 or higher (n ...
错误1: ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.   Is your docker engine running ? $ sudo service docker status   Is your user in docker user ...
Linux下的任务调度分为两类,系统任务调度和用户任务调度。 系统任务调度:系统周期性所要执行的工作,比如写缓存数据到硬盘、日志清理等。在/etc目录下有一个crontab文件,这个就是系统任务调度的配置文件。 /etc/cron.deny 该文件中所列用户不允许使用crontab命令 /etc/cron.allow 该文件中所列用户允许使用crontab命令   用户任务调度:用户定期要执行的工作,比如用户数据备份、定时邮件提醒等。用户可以使用 crontab 工具来定制自己的计划任务。所有用户定义的crontab 文件都被保存在 /var/spool/cron目录中。其文件名与 ...
root: location /request_path/image/ {     root /local_path/image/; } root 会根据完整的 URI 请求来映射,也就是/path/uri。 当客户端请求 /request_path/image/cat.png 的时候,Nginx把请求映射为/local_path/image/request_path/image/cat.png   alias: location /request_path/image/ {     alias /local_path/image/; } alias 会把 locati ...
Nginx用来处理FastCGI的模块。FastCGI是什么?现在LNMP架构里面,PHP一般是以PHP-CGI的形式在运行,它就是一种FastCGI,我们在进程中看到的PHP-FPM是PHP-CGI的管理调度器。   四个常见、重要的配置项 fastcgi_pass 设置FastCGI服务,其值可以是一个域名、IP地址:端口、或者是一个Unix的Socket文件。 同时,它也只支持一个FastCGI服务集群。   # TCP形式传递 fastcgi_pass localhost:9000;   # Socket形式传递 fastcgi_pass unix:/tmp/fa ...
主要涉及3个文件,nginx.h、ngx_http_header_filter_module.c和ngx_http_special_response.c   scr/core/nginx.conf #define NGINX_VERSION "1.12.2" #define NGINX_VER "nginx/" NGINX_VERSION 修改成 #define NGINX_VERSION "1.12.2" #define NGINX_VER "quexing/" NGINX_VERSION   ...
Nginx服务器会首先会检查多个location中是否有普通的uri匹配,如果有多个匹配,会先记住匹配度最高的那个。然后再检查正则匹配,这里切记正则匹配是有顺序的,从上到下依次匹配,一旦匹配成功,则结束检查,并就会使用这个location块处理此请求。如果正则匹配全部失败,就会使用刚才记录普通uri匹配度最高的那个location块处理此请求。   = URI的定位必须与指定的模式精确匹配。该模式在这里限定为一个简单的文本字符串,不能使用正则表达式: location = /abcd 这个配置语句: 能匹配上 https://xxx/abcd (严格匹配) 能匹配上 https ...
#定义Nginx运行的用户和用户组 user www www;   #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8;   #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /var/log/nginx/error.log info;   #进程文件 pid /var/ru ...
systemctl is-enabled *.service #查询服务是否开机启动 systemctl enable *.service #开机运行服务 systemctl disable *.service #取消开机运行 systemctl start *.service #启动服务 systemctl stop *.service #停止服务 systemctl restart *.service #重启服务 systemctl reload *.service #重新加载服务配置文件 systemctl status *.service #查询服务运行状态 syst ...
查询端口号80 是否开启:firewall-cmd --query-port=80/tcp   永久开放80端口号:firewall-cmd --permanent --zone=public --add-port=80/tcp   移除80端口号:firewall-cmd --permanent --zone=public --remove-port=80/tcp   --zone #作用域 --add-port=80/tcp  #添加端口,格式为:端口/通讯协议 --permanent   #永久生效,没有此参数重启后失效   查看防火墙状态 firewall-cm ...
 create_time timestamp格式(如:2016-06-28 11:03:28)         SELECT DATE_FORMAT(create_time,'%Y%u')  AS  weeks,COUNT(id)   AS  count FROM role GROUP BY weeks;         SELECT DATE_FORMAT(create_time,'%Y%m%d')   AS  days,COUNT(id)   AS  
#配置使用git仓库的人员姓名   $ git config --global user.name "Your Name Comes Here"      #配置使用git仓库的人员email   $ git config --global user.email you@yourdomain.example.com   $ git show            # 显示某次提交的内容 $ git show $id $ ...
1、什么是PV值   PV(page view)即页面浏览量或点击量,是衡量一个网站或网页用户访问量。具体的说,PV值就是所有访问者在24小时(0点到24点)内看了某个网站多少个页面或某个网页多少次。PV是指页面刷新的次数,每一次页面刷新,就算做一次PV流量。   度量方法就是从浏览器发出一个对网络服务器的请求(Request),网络服务器接到这个请求后,会将该请求对应的一个网页(Page)发送给浏览器,从而产生了一个PV。那么在这里只要是这个请求发送给了浏览器,无论这个页面是否完全打开(下载完成),那么都是应当计为1个PV。 2、什么是UV值   UV(unique visitor)即独立访 ...
<?php       //php 不同系统的换行      //不同系统之间换行的实现是不一样的      //linux 与unix中用 /n      //MAC 用 /r      //window 为了体现与linux不同 则是 /r/n      //所以在不同平台上 实现方法就不一样     //这样就用你写的程序在不同的平台上运行有着不少的麻烦     //php 有三种方法来解决     //1、使用str_replace 来替换换行      $str = str_replace(array("/r/n", "/r" ...
Global site tag (gtag.js) - Google Analytics