生成证书:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /cert/nginxselfsigned.key -out /cert/nginxselfsigned.crt
配置 Nginx:
server {
listen 127.0.0.1:80;
listen 127.0.0.1:443 ssl;
#!/usr/bin/env bash | |
# Download metadata, modify these as your needs. | |
## The directory to save the downloaded files. | |
download_directory="/volume1/Download/EPUB" | |
## The website you want to visit. | |
calibre_site="http://soulseeker.myds.me:25788" | |
## The formats you want to download. We only download the first present format. | |
## All the formats should be upper case. | |
allow_formats=( EPUB MOBI AZW3 ) |
<?php | |
namespace App\Model; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Facades\DB; | |
/** | |
* 分表关联数据加载 | |
*/ |
Install and configure MySQL 5.7 with master-slave replication. The benefits of this include high availability, backups, disaster recovery and reporting.
Enable MySQL repository
yum localinstall -y https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
#!/bin/bash | |
day=`date +%w` | |
dt=`date +%Y%m%d` | |
lastday=`date -d '1 days ago' +%Y%m%d` | |
user=root | |
pwd='6021c6e041b52921' | |
log=backuplog.`date +%Y%m%d` | |
case $day in | |
0) |
<?php | |
use Swoole\Process; | |
$filePaths = file_get_contents('./data/origin_url.txt'); | |
$pathArr = explode("\n", $filePaths); | |
$pathArrSplit = array_chunk($pathArr, 5000); | |
$processNum = count($pathArrSplit); | |
foreach ($pathArrSplit as $data) { |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* 删除指定目录,含子目录及目录下文件 | |
* | |
* @param string $path 路径 | |
* @return void | |
*/ | |
function deleteAll($path) | |
{ | |
$di = new DirectoryIterator($path); |
<?php | |
/** | |
* 异常处理类 | |
*/ | |
use \Illuminate\Contracts\Debug\ExceptionHandler; | |
class MyQueueException implements ExceptionHandler | |
{ | |
/** |