`
yhz61010
  • 浏览: 551188 次
  • 来自: -
博客专栏
63c13ecc-ef01-31cf-984e-de461c7dfde8
libgdx 游戏开发
浏览量:11977
社区版块
存档分类
最新评论
文章列表
持续更新中...... 序列生成及数字填充 $ for i in $(seq -f "%03g" 1 5);do echo $i;done 001 002 003 004 005 拷贝文件时忽略指定的目录 rsync -av --progress sourcefolder /destinationfolder --exclude="thefoldertoexclude"说明:thefoldertoexclude 是相 ...
系统环境: OS: CentOS7 64位 Python 2.7.5 安装 Python # yum -y install python 配置 Apache 编辑如下文件: vim /etc/httpd/conf/httpd.conf 在 /var/www/cgi-bin 下面追加如下内容: Options +ExecCGI AddHandler cgi-script .py 修改完结果如下: <Directory "/var/www/cgi-bin"> Options +ExecCGI AddHandler cgi-script .py ...
系统环境: OS: Ubuntu 16.04 LTS 64位   之前也遇到过这样的问题,使用有线网络上网时,有时会出现断网的现象,不过一般重新启用网络后就可以用了。但是这次断网后,却怎么也连不上网了。后来上网查了很久,终于找到原因了,是网卡的驱动问题导致的。 查找问题 首先,查看系统 Log: # cat /var/log/syslog | grep enp NetworkManager[1002]: <info> [1494831368.7343] device (enp3s0): state change: disconnected -> unmanaged ( ...
本文以 WildFly 10 为例(同样适用于 8,9),说明如何为 JBoss 开启 HTTPS。 系统环境说明: OS: Ubuntu 16.04 LTS 64位 Wilfdly 版本: 10.1.0 其它说明: 示例中的 HTTPS 证书,来自 Let's Encrypt。 申请方法,详见我的另一篇文章:“[原创] Let's Encrypt ...
原文地址:https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm Application server like Jetty, Glassfish or Tomcat need a keystore (.jks) in order to properly handling the certificates. These three simple steps will create a valid keystore file for your applic ...
*** 未完待续 *** https becoming http in case of sendRedirect - why? http://geekexplains.blogspot.jp/2008/06/https-becoming-http-in-case-of.html What is SSL/TLS offloading? http://help.fortinet.com/fadc/3-0-0/olh/index.html#page/FortiADC_Handbook/offloading_vs_inspection.html
为什么要发布开源项目?一是开源能够帮助他人更快地开发软件,促进世界创新,主要是社会价值层面的考虑。二是开源能够倒逼工程师写出更好的代码。三是开源能够更有效利用社区的力量,帮助企业一起解决难题。开源,让 ...
原文地址:http://stackoverflow.com/a/31950789 @SuppressWarnings("deprecation") public static void clearCookies(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { Log.d(C.TAG, "Using clearCookies code for API >=" + String.valueOf ...
仅显示如下列:PID,USER,%CPU,%MEM,CMD 并按照内存使用量降序,CPU 使用量降序排列,并且仅显示前 10 行数据: ps axo pid,user,pcpu,pmem,cmd --sort -pmem,-pcpu | head 模拟 top 命令,持续监视进程变化: watch -n 1 'ps axo pid,user,pcpu,pmem,cmd --sort -pmem,-pcpu | head -n 20'
最近在使用 wildfly 部署应用时出错,导致 wildfly 服务直接被 killed,感觉特别奇怪。代码肯定是没有问题的,但为什么放到服务器上就出错了呢。 部署时报错如下:Failed to add the deployment content to the repository: java.util.concurrent.CancellationException: Operation was cancelled wildfly 报错如下:./standalone.sh: line 307: 12526 Killed 一时还真看不出是什么毛病。 于是使用 dmesg 查找原因, ...
假设我们想读取 jboss home,配置文件中的写法如下: <bean id="wroProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="location" value="file:#{systemProperties['jboss.home.dir']}/standalone/configuration/wro.properties" /& ...
原文地址:http://blog.sina.com.cn/s/blog_9a0689090101amdk.html 第一步:修改 /etc/php.ini 文件 找到:max_execution_time = 30 ,这个是每个脚本运行的最长时间,单位秒,修改为:max_execution_time = 150 找到:max_input_time = 60,这是每个脚本可以消耗的时间,单位也是秒,修改为:max_input_time = 300 找到:memory_limit = 128M,这个是脚本运行最大消耗的内存,根据你的需求更改数值,这里修改为:memory_limit = 25 ...
以 CentOS7 Apache 为例,简述下如何为多个域名配置不同的SSL证书并访问同一VPS。 前提: 需要提前准备好 SSL 证书文件(自签名证书和认证的证书都可以,示例中的 SSL 证书,来自 Let's Encrypt)。 下面的示例实现了,以 HTTPS 方式,使用 ho1ho.com 和 50d.win 这两个域名,都可以访问相同的网站。 在 /etc/httpd/conf.d 下新建配置文件:50d.win.conf vim /etc/httpd/conf.d/50d.win.conf 内容如下: <VirtualHost *:443> Ser ...
原文地址: https://www.digicert.com/ssl-certificate-installation-apache.htm SSL Certificate Installation in Apache 1. Copy the Certificate files to your server. Download your Intermediate (DigiCertCA.crt) and Primary Certificate (your_domain_name.crt) files from your Customer Area, then copy them to th ...
Let's Encrypt 这个来头超大的,免费推广 HTTPS 的项目,实在是利国利民的大好事。现在就让我们开启自己的 HTTPS 之旅吧。 官网介绍:https://letsencrypt.org/ 前提:需要有域名解析到自己的服务器,否则无法申请到证书。虽然网上有说最好使用海外的 DNS, 但是实测 DNSPod 是可以的。 下面来具体说一下 Ubuntu 下 Apache 如何使用 Let's Encrypt 开启 HTTPS。 申请 Let's Encrypt 免费 SSL 证书 首先,先停止 Apache 服务:systemctl stop apache2然后执行如下命令: ...
Global site tag (gtag.js) - Google Analytics