wordpress 后台无法修改邮箱,提示There is a pending change of your email to 1http://t.zoukankan.com/ytkah-p-12792019.html 有时候我们在用wordpress建网站时需要修改管理员的邮箱,但是会提示 1There is a pending change of your email to **@**.com,This address is used for admin purposes. If you change this, we will send you an email at your new address to confirm it. The new address will not become active until confirmed. 如何不用验证邮箱就直接改呢? […]
Author Archives: Administrator
备注: 一开始用的是插件,设置起来非常麻烦.后来改用代码,直接申请个专用密码就可以,非常简单. 这两种方法都不需要启用 postfix ,也无需启用任何端口. 1. 用代码代替如下 Gmail Smtp 插件 12https://www.bndstone.com/458.html https://www.91wordpress.com/408.html 1-1. 切换到主题目录,打开 functions.php 文件, 12cd /home/wwwroot/default/bndstone/wp-content/themes/flatsome/ vi functions.php 1-2. 添加如下代码: 123456789101112function mail_smtp($phpmailer) { $phpmailer->isSMTP(); $phpmailer->SMTPAuth = true; //不用改, 启用SMTPAuth服务 $phpmailer->Port = 465; //不用改, SMTP邮件发送端口,常用端口有:25,安全链接端口:465、587 […]
gitlab汉化———禁止汉化,以免出现502错误,以及出现后续维护问题. 12https://www.cnblogs.com/wangxu01/articles/11056888.html https://www.crisen.org/archives/170 gitlab(一):gitlab的汉化 1https://gitlab.com/xhang/gitlab/wikis/home 很明显安装完成的gitlab,如果你的英文真的很烂,你懂得。 如果汉化中出现问题,请重新安装 GitLab( 注意备份数据 )。 1. 停止gitlab服务 1sudo gitlab-ctl stop 2. 下载汉化版本 1234mkdir /home/admin/soft cd /home/admin/soft yum install -y git //安装git git clone https://gitlab.com/xhang/gitlab.git clone的时候可能时间会很长,我是在hk vps windows 上 连接的. 3. 查看已安装版本 1head -1 […]
Gitlab 开启 GOOGLE-AUTHENTICATOR 两步验证. 一. 服务器 root 开启 GOOGLE-AUTHENTICATOR 两步验证. 1https://www.bndstone.com/1170.html ================================================== 二. web页面管理员root,开启 GOOGLE-AUTHENTICATOR 两步验证 12https://www.cnblogs.com/wangxu01/articles/11057507.html http://t.zoukankan.com/hujinzhong-p-12199712.html 2-1、代码对于一个互联网或者技术型公司有多重要我就不多说了,安全问题有多重要我也不想说,启用MFA/2FA多因子认证,成为诸多软件趋势。说白了就是多一个随机验证码验证 登陆,显得黑科技一点。 2-2、扫码之后获取随机码 出现如下页面就说明已经成功了 2-3、注销再次登陆,除了用户密码外还需要随机码 2-4、令牌-这个很重要 开始双因子认证之后,git clone等等 就会验证你的令牌了。这个时候你要创建令牌,密码就是你的令牌 三、web页面管理员root ,禁用 两步验证 3-1、思路分析 进入postgresql数据库,修改user表,将otp_required_for_login 、 require_two_factor_authentication_from_group 这两个字段,都改为false(数据库中用f表示) 3-2、操作步骤 1cat /var/opt/gitlab/gitlab-rails/etc/database.yml 会弹出如下: 123456789101112131415161718192021222324252627production: main: adapter: postgresql encoding: unicode collation: […]
一. admin@example.com 修改为 info@bndstone.com 1-1. root登陆后台 , administrator > root 1-2. 邮箱改为 info@bndstone.com 1-3. update profile settings 1-4. info@bndstone.com 收到 确认邮件 1-5. 再登陆,就发现 邮箱已经完全改成 info@bndstone.com 了 ================================================================= 二. gitlab取消用户注册时需要管理员认证功能 1https://docs.gitlab.com/ee/user/admin_area/settings/sign_up_restrictions.html#require-administrator-approval-for-new-sign-ups 步骤: 2-1.后台 root 登陆, administrator > root 2-2. View user in admin area 2-3. Settings > General 2-4. Sign-up restrictions > Expand 2-5. Require admin […]
Nginx禁用缓存的配置 1https://www.cnblogs.com/xiohao/p/14691517.html 在网站程序调试的时候,经常会遇到浏览器的缓存问题导致修改过的前端代码无效果。每次通过Ctrl+F5强制刷新后才能清掉缓存。这时如果禁用掉nginx缓存,可以减少一些小麻烦,让浏览器每次到服务器去请求文件,而不是在浏览器中读取缓存文件。 当程序调试好上线后,可以开启nginx缓存,节省服务器的带宽流量,减少一些请求,降低服务器的压力。 通过配置nginx的配置文件/usr/local/nginx/conf/nginx.conf实现开关效果 1. 启用缓存 1234location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ { #设置缓存上面定义的后缀文件缓存到浏览器的生存时间 expires 3d; } 2. 禁用缓存 1234location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ { #禁止缓存,每次都从服务器请求 add_header Cache-Control no-store; } 3. 查看本机的位置 123cd /usr/local/nginx/conf/vhost vi www.vermax.cn.conf vi www.huajunstone.com.conf 123456789 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { […]
Docker 建立私有仓库 1https://yeasy.gitbook.io/docker_practice/repository/registry 1. 安装运行 docker-registry 1-1. 你可以使用官方 registry 镜像来运行 1docker run -d -p 5000:5000 –restart=always –name registry registry 这将使用官方的 registry 镜像来启动私有仓库。默认情况下,仓库会被创建在容器的 /var/lib/registry 目录下。你可以通过 -v 参数来将镜像文件存放在本地的指定路径。 例如下面的例子将上传的镜像放到本地的 /opt/data/registry 目录 1234$ docker run -d \ -p 5000:5000 \ -v /opt/data/registry:/var/lib/registry \ registry 在私有仓库上传、搜索、下载镜像 创建好私有仓库之后,就可以使用 docker tag 来标记一个镜像,然后推送它到仓库。例如私有仓库地址为 127.0.0.1:5000 2. 先在本机查看已有的镜像 […]
为gitlab 10.x 配置SSL访问 12https://docs.gitlab.com/omnibus/settings/ssl.html#automatic-renewal https://george.betterde.com/20190518.html 使用 HTTPS 自带 Let’s Encrypt Gitlab 10.7 版本内置了 Let’s Encrypt,你只需要配置 /etc/gitlab/config/gitlab.rb 如下几个参数就可以,自动启用 HTTPS 了 1. 查看是否开启了端口 1234firewall-cmd –zone=public –permanent –add-port=443/tcp firewall-cmd –zone=public –permanent –add-port=443/udp firewall-cmd –reload firewall-cmd –list-all //看到有放行443端口了 2. 阿里网页防火墙也有开 […]
Gitlab服务器配置gmail企业邮箱,实现自动为用户发送邮件 12345https://www.bilibili.com/read/cv12458883 https://www.cnblogs.com/yoyoketang/p/10272544.html https://www.cnblogs.com/yoyoketang/p/10287345.html https://docs.gitlab.com/omnibus/settings/smtp.html https://blog.csdn.net/qianghaohao/article/details/79331895?utm_source=blogxgwz5 本文介绍如何为Gitlab服务配置邮箱,实现服务器向用户自动发送邮件。发邮件的使用场景有很多,比如,用户忘记密码后申请密码重置,用户自行注册账户时,接受邮件用于验 证账户等。 一. 配置前准备工作及说明 1. 服务器系统版本:CentOS 7 2. postfix,并在终端运行systemctl status postfix检查服务是否已在运行状态,如果显示activate则表示正在运行 123rpm -qa | grep postfix //查看下是否已经安装好 systemctl restart postfix.service //重启postfix服务 systemctl status postfix.service //查看是否已经在线 2-2. 解决报错问题. 12启动过程中如果报错: Job for postfix.service failed because the control process exited with […]
HK VPS搭建gitlab 12https://www.vermax.cn/1295.html] https://blog.csdn.net/weixin_33795743/article/details/92725862 1. 阿里云新开了一台香港vps , IP是: 8.210.232.250 .centos 7.3 纯净系统 2. gitlab.vermax.cn A记录 指向 8.210.232.250 3-1. 搭建GitLab前提工作 环境配置 1. 系统:Red-Hat系列CentOS 7.x-x86_64(笔者采用的是CentOS7.3) 2. CPU:建议双核以上 3. 内存:4GB(官方建议4GB以上) 1234567yum install -y curl policycoreutils-python openssh-server openssh-clients //安装 curl policycoreutils-python openssh-server openssh-clients systemctl enable sshd.service […]