ubuntu 20.04

(6)

ubuntu 20.04 禁止 apache 开机自启动

ubuntu 20.04 server 重启之后,发现 nginx 没有自启动。 而手动启动 nginx,报错,显示 80 端口被占用。 ``` $ sudo nginx [sudo] password for xxx:

wordpress MySQL 8.0 报错:Error establishing a database connection

迁移了旧有的一套 wordpress 网站到新的服务器上,更改域名解析之后,报错: > Error establishing a database connection ## 系统环境 - Ubuntu 20.04 - PH

ubuntu 20.04 apt 安装 php 7.0

由于 ubuntu 20.04 默认源里没有 php 7.0,需要手动添加源。 ## Unable to locate package php7.0 ``` $ sudo apt install php7.0 Reading p

ubuntu 20.04 添加新用户,并赋予 sudo 权限

避免所有操作和部署都使用 root 用户,以免被利用漏洞被入侵系统。 所以在新购的 Ubuntu 20.04 服务器上,部署服务之前,我需要先新建一个用户, 并赋予 sudo 权限。 然后禁用 root 用户远程登录服务器。

ubuntu 20.04 apt 安装 mysql 8.0

在 Ubuntu 22.04 LTS 上验证过,安装方式是一样的。 ## ubuntu 20.04 apt 安装 mysql 8.0 ``` sudo apt update sudo apt install mysql-se

ubuntu 20.04 apt install nginx-core/light/full 的区别

在新购的服务器系统 Ubuntu 20.04 上部署生产环境。想通过 apt 安装 nginx,发现提示中有N个选项: ``` $ nginx Command 'nginx' not found, but can be ins