HTTP TO HTTPS (Centos 6.5 Final)
环境准备
因为 Certbot
的很多依赖并不在系统默认 Repo 中,需要先安装 EPEL Repo
,运行 yum install epel-release
,同时为了防止组件过旧导致的报错,建议运行一次 yum update
安装 Certbot
因为目前没有 CentOS 的预编译安装包,所以通过 certbot-auto
脚本来获得 Certbot
.
Hi, nice to meet you!
因为 Certbot
的很多依赖并不在系统默认 Repo 中,需要先安装 EPEL Repo
,运行 yum install epel-release
,同时为了防止组件过旧导致的报错,建议运行一次 yum update
Certbot
因为目前没有 CentOS 的预编译安装包,所以通过 certbot-auto
脚本来获得 Certbot
.
.env
文件中增加一行 HTTPS_PROXY=http://127.0.0.1:port_of_cow
~/.cow/rc
文件 1 | listen = http://127.0.0.1:7777 |
分享一个大家可能会踩到的坑,如果你在使用 Laravel,并且日志配置是按天记录的(daily),那么你千万不要用 root 角色来执行计划任务,请以你的 nginx 子进程用户(也就是我们平常说的 www 用户),比如我的机器 Ubuntu 默认 apt 安装 nginx 的话是 www-data,那么应该修改 crontab 配置像以下这样:
1 | * * * * * www-data php [项目目录]/artisan schedule:run >> /dev/null 2>&1 |
在 Android 自定义 View 时我们需要测量 View 的宽度和高度, 那么当自定义View的布局参数设置成 wrap_content
时时
一般的解决方案如下:
1 | $ docker run --name dao_testlaravel_3 --link laravel-mysql:mysql -d -p 80 daocloud.io/layoute/laravel-english |
由于本例中服务器需要使用 php 服务,所以之前安装了 WDCP
面板(自带LNAMP),所以此处不提如何安装Nginx
1 | server { |
Android 开发中,添加的依赖库多了以后,gradle build
时经常会碰到如下问题
Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:support-v13:26.1.0] AndroidManifest.xml:28:13-35
解决办法:
1 | $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
记录日志到 storage\logs\laravel.log
1 | $writer = app('log'); |
app
module 的 build.gradle 中向 dependencies
中添加 implementation ‘com.jcraft:jshc:0.1.54
后执行 gradle sync