腾讯云

(参考:https://blog.csdn.net/qq_36038987/article/details/80773655)
ubuntu安装lamp

(参考:https://zhidao.baidu.com/question/489371912.html)
使用root权限的方法
①su root(enter)
输入密码
②sudo+命令

(参考:https://cloud.tencent.com/developer/article/1434564)
①据说默认每次root密码是随机的
②sudo passwd root(enter)
输入密码

(参考:https://www.cnblogs.com/lanbosm/p/9130211.html)
ubuntu和centos的软件管理区别

(参考:https://blog.csdn.net/zhangxinrun/article/details/7683368)
ubuntu的乱码
export LANG=zh_CN.UTF-8

(参考:https://blog.csdn.net/c_dreams/article/details/78790105)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
是apt还在运行

E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.
sudo apt-get update # 获取最新资源包
sudo apt-get upgrade # 本机软件全部更新
然后按默认选项来了一波,然后就莫名其妙好了,呵.

(参考:https://zhidao.baidu.com/question/425919271.html)
我的服务器告诉我只能下载php7.0(除非我理解错了…)
把第一个参考页面中对应php的7.2都改成7.0就好了.

以下为舍弃部分,仅作为日志---------------------------------
ubuntu@VM-0-15-ubuntu:~$ sudo apt install yum

用了root权限下载的方式后,提示:
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
You can enable repos with yum-config-manager --enable

(参考:https://www.cnblogs.com/lanbosm/p/9130211.html)
我不知道前面有没有安装yum,反正之后把yum都改成对应的apt就好了…

apt-get install httpd php php-fpm php-mysql mariadb mariadb-server -y

提示了一大串:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package httpd is a virtual package provided by:
nginx-light 1.10.3-0ubuntu0.16.04.3
nginx-full 1.10.3-0ubuntu0.16.04.3
nginx-extras 1.10.3-0ubuntu0.16.04.3
lighttpd 1.4.35-4ubuntu2.1
nginx-core 1.10.3-0ubuntu0.16.04.3
apache2 2.4.18-2ubuntu3.10
yaws 2.0.2-1
webfs 1.21+ds1-11
tntnet 2.2.1-2
ocsigenserver 2.6-1build2
mini-httpd 1.23-1
micro-httpd 20051212-15
ebhttpd 1:1.0.dfsg.1-4.3
aolserver4-daemon 4.5.1-18
aolserver4-core 4.5.1-18
You should explicitly select one to install.

E: Package ‘httpd’ has no installation candidate
E: Unable to locate package mariadb
ubuntu@VM-0-15-ubuntu:~$ You should explicitly select one to install.

E: Package ‘httpd’ has no installation candidate
You: command not found

问题好多啊,亲…
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start ‘httpd.service’.
Authenticating as: ubuntu, (ubuntu)
Password: Failed to start httpd.service: Connection timed out
See system logs and ‘systemctl status httpd.service’ for details.
ubuntu@VM-0-15-ubuntu:~$ polkit-agent-helper-1: pam_authenticate failed: Authentication failure

root方法
(参考:https://cloud.tencent.com/developer/article/1434461)
su(然后回车)
输入密码即可
参考:http://www.xiaomseo.com/7546.html

https://cloud.tencent.com/developer/article/1405735

There are no enabled repos.
Run “yum repolist all” to see the repos you have.
You can enable repos with yum-config-manager --enable

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值