上一页 1 ··· 43 44 45 46 47
摘要: 安装cerbot apt install certbot 执行 you.cn 换成对应的域名 certbot certonly -d *.you.cn --manual --preferred-challenges dns --server https://acme-v02.api.letsencr 阅读全文
posted @ 2023-10-19 17:58 朝阳1 阅读(92) 评论(0) 推荐(0)
摘要: 安装htpassed工具 yum -y install httpd-tools 或者 apt install apache2-utils 创建用户名和密码 htpasswd -c /etc/nginx/.htpasswd username 修改nginx配置文件 server { listen ; 阅读全文
posted @ 2023-10-19 15:15 朝阳1 阅读(264) 评论(0) 推荐(0)
摘要: 创建服务器证书秘钥文件 [root@Nginx ~]# openssl genrsa -des3 -out server.key 1024 ... Enter pass phrase for server.key: # 输入密码 Verifying - Enter pass phrase for s 阅读全文
posted @ 2023-10-19 14:47 朝阳1 阅读(309) 评论(0) 推荐(0)
摘要: 1,借助linux系统命令 /usr/bin/uuidgen 1.1 代码 package main import ( "fmt" "log" "os/exec" ) func main(){ out,err := exec.Command("uuidgen").Output() if err!=n 阅读全文
posted @ 2023-10-19 10:45 朝阳1 阅读(343) 评论(0) 推荐(0)
摘要: 创建账号 CREATE USER '账号'@'%' IDENTIFIED BY '密码'; mysql8的话需要改一下加密方式 ALTER USER '账号'@'%' IDENTIFIED WITH mysql_native_password BY '密码'; 创建数据库,必须要有库,不然无法绑定 阅读全文
posted @ 2023-10-19 10:27 朝阳1 阅读(150) 评论(0) 推荐(0)
摘要: UPDATE user SET age = CASE id WHEN 1 THEN 3 WHEN 2 THEN 4 WHEN 3 THEN 5 END WHERE id IN (1,2,3) php示例 $display_order = array( 1 => 4, 2 => 1, 3 => 2, 阅读全文
posted @ 2023-10-19 10:13 朝阳1 阅读(125) 评论(0) 推荐(0)
摘要: pecl安装 apt-get install libevent-dev -y # 如果无法安装,请尝试以下命令 # apt-get install libevent2-dev -y pecl install event 注意提示:Include libevent OpenSSL support [y 阅读全文
posted @ 2023-10-17 14:54 朝阳1 阅读(13) 评论(0) 推荐(0)
摘要: 更新,加入源 apt-get update apt -y install software-properties-common 安装存储库 ppa:ondrej/php,它提供所有 PHP 版本 add-apt-repository ppa:ondrej/php apt-get update 开始安 阅读全文
posted @ 2023-10-17 14:49 朝阳1 阅读(115) 评论(0) 推荐(0)
摘要: 生产者 package main import ( "fmt" "github.com/streadway/amqp" "strconv" "time" ) // 启动生产者,n秒之内,如果consume没有消费,那么就会被die-死信队列消费 func main() { // # 1.创建连接 m 阅读全文
posted @ 2023-10-16 16:55 朝阳1 阅读(162) 评论(0) 推荐(1)
摘要: 如果您已将公钥添加到GitLab,并且仍然每次都要求输入用户名和密码,这可能是由于使用了HTTPS URL而非SSH URL来访问GitLab仓库。 当使用HTTPS URL时,GitLab将要求输入用户名和密码来进行身份验证,即使您已将SSH公钥添加到GitLab中。要解决这个问题,您需要将仓库的 阅读全文
posted @ 2023-10-16 16:04 朝阳1 阅读(666) 评论(0) 推荐(1)
上一页 1 ··· 43 44 45 46 47