In this guide, we are going to explain the steps in installing Lighttpd, PHP, and MySQL on Debian 11 Deploying your cloud server If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cl
分类目录归档:网站建设
DirectAdmin将用户目录修改为数据盘
一、修改新增用户主目录 Edit /etc/defaut/useradd and set HOME=/home to HOME=/home2. DA itself doesn’t care where the new home is. The useradd program is the one who decides where it goes, so by changing the default path for useradd, DA will follow without complaint vi /etc/defaut/useradd
解决MySQL8.0报错:Unknown system variable 'validate_password_policy'
一、问题描述 1、在安装MySQL8.0时,修改临时密码,因密码过于简单(如:123456),不符合MySQL密码规范,会触发一个报错信息: ERROR 1819 (HY000): Your password does not satisfy the current policy requirements。 二、遇到问题 1、解决办法调整MySQL密码验证规则,修改 policy 和 length 的值。 2、MySQL 5.7
Docker修改为国内镜像仓库
修改镜像仓库配置,修改/etc/docker/daemon.json文件,如果没有新建一个即可 # vi /etc/docker/daemon.json { "registry-mirrors":[ "https://registry.docker-cn.com" ] } 国内常用的docker镜像仓库 Docker官方中国区: https://registry.docker-cn.com 网易:http://hub-mirror.c.163.com 中国科学技术大学:http
解决 Proxmox VE升级 apt-get update 报错的问题
使用 Proxmox VE 默认的 apt 更新源,在 WEB 管理面板 更新 点击 刷新 后,会显示错误: TASK ERROR: command ‘apt-get update’ failed: exit code 100 这时因为默认的更新源为 Proxmox VE 企业版的订阅,如果我们没有购买订阅,就会提示签名错误,从而使得 apt 更新失败。 解决的办法很简单,就是更换软件
ubuntu重装apache出现Can’t open /etc/apache2/envvars的解决
不小心误删了 apache.conf ,然后重装apache2后遇到安装后无法启动的错误信息 Apr 09 23:07:03 u02 systemd[1]: Starting LSB: Apache2 web server… Apr 09 23:07:03 u02 apache2[29736]: /etc/init.d/apache2: 46: .: Can’t open /etc/apache2/envvars Apr 09 23:07:03 u02 apache2[29736]: /etc/init.d/apache2: 5
通过.htaccess实现全站http链接301重定向到https
很多已经安装ssl安全协议证书的网站会发现,http的链接和https的链接都有效,如果要用户访问任何链接的时候都强制跳转到https协议的url上,linux主机用户可以通过修改根目录下的.htaccess文件来设置。方法如下: 在.htaccess中 RewriteEngine on RewriteBase / 代码下添加如下两行代码: RewriteCond %{SERVER_PORT
Owncloud提示Directory “/” not found
重新安装Owncloud之后提示错误 Directory “/” not found。 无意发现清理掉Cloudflare缓存之后,错误 Directory “/” not found没有再次出现, 猜测是否由于Cloudflare的缓存造成,记录一下。
Ubuntu使用nginx搭建webdav文件服务器的详细过程
安装nginx apt install nginx-extras 注意: 必须安装nginx-full 和 nginx-extras, 需要用到http_dav_module 和 http-dav-ext模块 默认的nginx里面并不包含webdav模块 $ sudo apt install -y nginx-full 创建相关文件夹 # 用来保存共享文件的位置 $ sudo mkdir -p /home/dav $ sudo chown -R www-data:www-data /home
重启服务器后Docker服务及容器自动启动设置
重启服务器后,我们知道如何重启docker服务(将启动命令加入到/etc/rc.d/rc.local配置文件中),但是docker容器确没有自动启动,还需要我们手动去启动容器。如何能做到重启docker服务后,能自动重启docker容器呢。 两条主要的命令: systemctl enable docker.service docker update –restart=always [container_n