我已经signal-xenial sources.list
安装了,不知道有什么作用。我可以看到它是xenial
并且我正在运行jammy
,所以我想知道删除它是否安全?
谢谢
我已经signal-xenial sources.list
安装了,不知道有什么作用。我可以看到它是xenial
并且我正在运行jammy
,所以我想知道删除它是否安全?
谢谢
sudo apt-get purge mysql-client-8.0 mysql-server-8.0 mysql-server-core-8.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'mysql-client-8.0' is not installed, so not removed
Package 'mysql-server-8.0' is not installed, so not removed
Package 'mysql-server-core-8.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get autoremove sudo apt-get autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Del thermald 2.4.9-1ubuntu0.3 [222 kB]
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-common : Conflicts: mysql-server-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
mysql-server-8.0 : Depends: mysql-client-8.0 (>= 8.0.34-0ubuntu0.22.04.1) but it is not installable
Depends: mysql-server-core-8.0 (= 8.0.34-0ubuntu0.22.04.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
我有未满足的依赖项,即使它们已被删除。我不明白。
谢谢!
编辑:
我已重新安装旧快照以保持我的网站在线。于是又安装了旧版本的mysql8.0。我得到了未满足的依赖关系。
apt policy mysql-common
mysql-common:
Installed: 8.0.33-1ubuntu18.04
Candidate: 8.0.33-1ubuntu18.04
Version table:
*** 8.0.33-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-8.0 amd64 Packages
100 /var/lib/dpkg/status
5.8+1.0.8 500
500 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 Packages
dpkg -l | grep mysql
ii dbconfig-mysql 2.0.21 all dbconfig-common MySQL/MariaDB support
ii mysql-apt-config 0.8.24-1 all Auto configuration for MySQL APT Repo.
ii mysql-client 8.0.33-1ubuntu18.04 amd64 MySQL Client meta package depending on latest version
ii mysql-common 8.0.33-1ubuntu18.04 amd64 Common files shared between packages
ii mysql-community-client 8.0.33-1ubuntu18.04 amd64 MySQL Client
ii mysql-community-client-core 8.0.33-1ubuntu18.04 amd64 MySQL Client Core Binaries
ii mysql-community-client-plugins 8.0.33-1ubuntu18.04 amd64 MySQL Client plugin
ii mysql-community-server 8.0.33-1ubuntu18.04 amd64 MySQL Server
ii mysql-community-server-core 8.0.33-1ubuntu18.04 amd64 MySQL Server Core Binaires
ii mysql-server 8.0.33-1ubuntu18.04 amd64 MySQL Server meta package depending on latest version
rc mysql-server-5.7 5.7.33-0ubuntu0.18.04.1 amd64 MySQL database server binaries and system database setup
ii php-mariadb-mysql-kbs 1.2.12-1 all Knowledge base about MariaDB and MySQL server variables
ii php-mysql 2:8.1+92ubuntu1 all MySQL module for PHP [default]
ii php8.1-mysql 8.1.2-1ubuntu2.13 amd64 MySQL module for PHP
sudo apt update
Hit:1 http://repo.mysql.com/apt/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:3 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:4 http://mirrors.digitalocean.com/ubuntu jammy InRelease [270 kB]
Hit:5 https://updates.signal.org/desktop/apt xenial InRelease
Hit:6 http://mirrors.digitalocean.com/ubuntu jammy-updates InRelease
Hit:7 http://mirrors.digitalocean.com/ubuntu jammy-backports InRelease
Fetched 270 kB in 1s (390 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt list --upgradable
Listing... Done
mysql-client/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.33-1ubuntu18.04]
mysql-server/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.33-1ubuntu18.04]
apt install mysql-client mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-common : Conflicts: mysql-client-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
Conflicts: mysql-client-core-8.0 but 8.0.34-0ubuntu0.22.04.1 is to be installed
mysql-server : Depends: mysql-server-8.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
谢谢!
Ubuntu 22.04 在 Digital Ocean LAMP 堆栈液滴上更新后,我收到 3 条警告。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://pkg.cloudflare.com/dists/trusty/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
如何将钥匙移动到正确的位置并删除旧钥匙?
编辑
sudo apt-key 列表
pub rsa2048 2016-02-17 [SC]
9FE3 B226 BD77 5196 D8C2 E599 DE88 104A A4C6 383F
uid [ unknown] DigitalOcean Insights Engineering <[email protected]>
sub rsa2048 2016-02-17 [E]
pub rsa2048 2015-01-28 [SC]
FBA8 C0EE 6361 7C5E ED69 5C43 254B 391D 8CAC CBF8
uid [ unknown] CloudFlare Software Packaging <[email protected]>
pub dsa1024 2003-02-03 [SCA] [expired: 2022-02-16]
A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5
uid [ expired] MySQL Release Engineering <[email protected]>
pub rsa4096 2021-12-14 [SC] [expires: 2023-12-14]
859B E8D7 C586 F538 430B 19C2 467B 942D 3A79 BD29
uid [ unknown] MySQL Release Engineering <[email protected]>
sub rsa4096 2021-12-14 [E] [expires: 2023-12-14]
/etc/apt/trusted.gpg.d/certbot_ubuntu_certbot.gpg
-------------------------------------------------
pub rsa4096 2016-11-02 [SC]
7BF5 7606 6ADA 6572 8FC7 E70A 8C47 BE8E 75BC A694
uid [ unknown] Launchpad PPA for certbot
/etc/apt/trusted.gpg.d/ondrej-ubuntu-apache2.gpg
------------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg
--------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub rsa4096 2012-05-11 [SC]
8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092
uid [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>
/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub rsa4096 2018-09-17 [SC]
F6EC B376 2474 EDA9 D21B 7022 8719 20D1 991B C93C
uid [ unknown] Ubuntu Archive Automatic Signing Key (2018) <[email protected]>
ls -l /etc/apt/sources.list.d
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list.distUpgrade
-rw-r--r-- 1 root root 274 Mar 13 2020 certbot-ubuntu-certbot-xenial.list.save
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list.distUpgrade
-rw-r--r-- 1 root root 43 Mar 13 2020 cloudflare-main.list.save
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list.distUpgrade
-rw-r--r-- 1 root root 67 Mar 13 2020 digitalocean-agent.list.save
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list.distUpgrade
-rw-r--r-- 1 root root 137 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list
-rw-r--r-- 1 root root 135 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list.distUpgrade
-rw-r--r-- 1 root root 123 Apr 8 15:51 ondrej-ubuntu-php-xenial.list
-rw-r--r-- 1 root root 124 Apr 8 15:51 ondrej-ubuntu-php-xenial.list.distUpgrade
-rw-r--r-- 1 root root 125 Apr 8 19:11 signal-xenial.list
我有:
操作系统:Ubuntu 21.04 KDE Plasma 版本:5.21.4 KDE Frameworks 版本:5.80.0 Qt 版本:5.15.2 内核版本:5.11.0-37-generic 操作系统类型:64 位图形平台:X11 处理器:4 × Intel ® Pentium® CPU 4415U @ 2.30GHz 内存:3.6 GiB RAM 图形处理器:Mesa Intel® HD Graphics 610
我的联想笔记本电脑中有 8GB 的额外 RAM,并且在升级之前它们已被检测到并正常工作。
sudo lshw -C 内存
description: BIOS
vendor: LENOVO
physical id: 0
version: 4WCN40WW
date: 04/13/2018
size: 128KiB
capacity: 6080KiB
capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
*-cache:0
description: L1 cache
physical id: 5
slot: L1 Cache
size: 128KiB
capacity: 128KiB
capabilities: synchronous internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2 Cache
size: 512KiB
capacity: 512KiB
capabilities: synchronous internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7
slot: L3 Cache
size: 2MiB
capacity: 2MiB
capabilities: synchronous internal write-back unified
configuration: level=3
*-memory
description: System Memory
physical id: 24
slot: System board or motherboard
size: 4GiB
*-bank:0
description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
product: M471A5244CB0-CRC
vendor: Samsung
physical id: 0
serial: 00000000
slot: ChannelA-DIMM0
size: 4GiB
width: 64 bits
clock: 2133MHz (0.5ns)
*-bank:1
description: [empty]
physical id: 1
slot: ChannelB-DIMM0
*-memory UNCLAIMED
description: Memory controller
product: Sunrise Point-LP PMC
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 21
width: 32 bits
clock: 33MHz (30.3ns)
capabilities: bus_master
configuration: latency=0
resources: memory:a1324000-a1327fff
sudo dmidecode -t 内存
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.
Handle 0x0024, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: No Error
Number Of Devices: 2
Handle 0x0025, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0024
Error Information Handle: No Error
Total Width: 64 bits
Data Width: 64 bits
Size: 4 GB
Form Factor: SODIMM
Set: None
Locator: ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous Unbuffered (Unregistered)
Speed: 2133 MT/s
Manufacturer: Samsung
Serial Number: 00000000
Asset Tag: 9876543210
Part Number: M471A5244CB0-CRC
Rank: 1
Configured Memory Speed: 2133 MT/s
Minimum Voltage: 1.5 V
Maximum Voltage: 1.5 V
Configured Voltage: 1.2 V
Handle 0x0026, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0024
Error Information Handle: No Error
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: ChannelB-DIMM0
Bank Locator: BANK 2
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown
sudo swapon --show
NAME TYPE SIZE USED PRIO
/swapfile file 15G 2.8M -2
我有:
操作系统:Kubuntu 20.04 KDE Plasma 版本:5.18.5 KDE Frameworks 版本:5.68.0 Qt 版本:5.12.8 内核版本:5.4.0-33-generic 操作系统类型:64 位处理器:4 × Intel® Pentium® CPU 4415U @ 2.30GHz 内存:11.5 GiB RAM
E: 子进程/usr/bin/dpkg 从19.10 do-release-upgrade 到20.04 后返回错误码(1)
我努力了:
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt autoremove
sudo apt-get update && sudo apt-get upgrade -y
ls -l /var/lib/dpkg/info | grep -i polar-bookshelf
sudo mv /var/lib/dpkg/info/polar-bookshelf.* /tmp
sudo rm /var/lib/dpkg/available
sudo touch /var/lib/dpkg/available
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'
sudo apt-get clean
没有运气。
编辑:我的图标包也有问题,我安装了它,现在我得到:
package failed to install error while instaling package: tying to overwrite'/usr/lib/gnome-initial-setup/vendor.conf', which is also in package gnome-initial-setup 3.36.2-0ubuntu1
我有:
操作系统:Kubuntu 19.10 KDE Plasma 版本:5.18.3 KDE Frameworks 版本:5.67.0 Qt 版本:5.12.4 内核版本:5.3.0-53-generic 操作系统类型:64 位处理器:4 × Intel® Pentium® CPU 4415U @ 2.30GHz 内存:11.5 GiB RAM
还有一个Logitech G900
我非常喜欢的。通常我在装有 Win10 的游戏机 PC 上使用它。但我也想在我的 Kubuntu 笔记本电脑上使用它。光标移动得非常快。该软件具有 PSI 设置以调整特定速度。任何有关如何设置 PSI 速度的帮助将不胜感激,谢谢!
我有:
操作系统:Kubuntu 19.10 KDE Plasma 版本:5.18.3 KDE Frameworks 版本:5.67.0 Qt 版本:5.12.4 内核版本:5.3.0-51-generic 操作系统类型:64 位处理器:4 × Intel® Pentium® CPU 4415U @ 2.30GHz 内存:11.5 GiB RAM
删除所有未在其他软件中检查的 ppa 是否安全?
谢谢!
Wordpress 无法识别来自 repos 的 Ubuntu 18.04 droplet 和 PHP 7.4.3 上的 PHP 更新。
它说我有 PHP 版本 7。
如何让 WP 接受更新?
我的 .htaccess 中有这个
# END WordPress
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180
# Wordfence WAF
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/html/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
WP_DEBUG true 没有错误
root@benja2:~# a2enmod php7.4
Considering dependency mpm_prefork for php7.4:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.4:
Enabling module php7.4.
To activate the new configuration, you need to run:
systemctl restart apache2
root@benja2:~# systemctl restart apache2
root@benja2:~#
我的 wordfence-waf.php 中有这个
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('/var/www/html/wp-content/plugins/wordfence /waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", '/var/www/html/wp-content/wflogs/');
include_once '/var/www/html/wp-content/plugins/wordfence /waf/bootstrap.php';
}
?>
谢谢
我有:
$ sudo apt-get install pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
pulseaudio : Depends: libpulse0 (= 1:12.2-0ubuntu4) but 1:12.2-5~bionic1 is to be installed
Depends: pulseaudio-utils but it is not going to be installed
Recommends: rtkit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ apt-cache policy libpulse0
libpulse0:
Installed: 1:12.2-5~bionic1
Candidate: 1:12.2-5~bionic1
Version table:
*** 1:12.2-5~bionic1 100
100 /var/lib/dpkg/status
1:12.2-0ubuntu4 500
500 http://dk.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
我无法在 Kubuntu 18.10 上更新。我有 20 个包,从 GUI 更新时我得到: PackageKit 守护进程已崩溃
从终端: sudo apt-get update && sudo apt-get upgrade -y 我得到:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
我试过这个没有运气:https ://itsfoss.com/could-not-get-lock-error/comment-page-5/
我得到后的第二天:
E: dpkg 被中断,您必须手动运行 'sudo dpkg --configure -a' 来纠正问题。
运行: sudo dpkg --configure -a
Setting up snapd (2.37.1+18.10) ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
systemctl 状态 snapd.service
● snapd.service - Snappy daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; v
Active: deactivating (stop-sigterm) (Result: timeout)
Main PID: 22246 (snapd)
Tasks: 12 (limit: 4915)
Memory: 268.4M
CGroup: /system.slice/snapd.service
├─22246 /usr/lib/snapd/snapd
├─22319 apparmor_parser --replace --write-cache -O no
└─22320 apparmor_parser --replace --write-cache -O no
Feb 13 11:46:58 xxxx systemd[1]: Starting Snappy daemon...
Feb 13 11:46:58 xxxx snapd[22246]: AppArmor status: apparmor is
Feb 13 11:46:59 xxxx snapd[22246]: helpers.go:145: error trying
Feb 13 11:46:59 xxxx systemd[1]: snapd.service: Start operation
journalctl -xe
-- Subject: Unit snapd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit snapd.service has finished shutting down.
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: snapd.service: Found left-over
Feb 13 11:47:47 xxxx systemd[1]: This usually indicates unclean
Feb 13 11:47:47 xxxx systemd[1]: Starting Snappy daemon...
我不能跑:sudo dpkg --configure -a
我得到:dpkg: error: dpkg frontend is locked by another process
lsof /var/lib/dpkg/lock
一切都死了。
我相信我必须重新安装新锁,我不知道该怎么做?
sudo touch /var/lib/dpkg/lock
不工作。
当我输入我的域时,我得到:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.29 (Ubuntu) Server at www.mywebsite.net Port 443
在我的错误日志中,我发现了这个:
/var/www/html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer: https://www.google.lv/
我的 PHP 版本运行 php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
我的 .htaccess 中有这个
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^165\.227\.175\.218$
RewriteRule ^(.*)$ http://www.mywebsite.net/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<IfModule mod_php7.c>
php_value auto_prepend_file '/var/www/html/mywebsite/public_html/wordfence-waf.php'
在 /var/www/html/mywebsite/public_html/wordfence-waf.php 我有这个:
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('/var/www/html/mywebsite/public_html/wp-content/plugins /wordfence/waf/bootstrap.php')) {
define("WFWAF_LOG_PATH", '/var/www/html/mywebsite/public_html/wp-content /wflogs/');
include_once '/var/www/html/mywebsite/public_html/wp-content/plugins/wordfence/waf/bootstrap.php';
}
?>
我试过了:
sudo a2enmod rewrite && sudo service apache2 restart
/etc/host.conf: line 3: bad command `nospoof on'
Module rewrite already enabled
/etc/host.conf: line 3: bad command `nospoof on'
/usr/sbin/apache2 -V | grep MPM
[Tue Jan 08 12:05:13.506757 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOCK_DIR} is not defined
[Tue Jan 08 12:05:13.506990 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_PID_FILE} is not defined
[Tue Jan 08 12:05:13.507254 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_USER} is not defined
[Tue Jan 08 12:05:13.507358 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_GROUP} is not defined
[Tue Jan 08 12:05:13.507469 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOG_DIR} is not defined
[Tue Jan 08 12:05:13.514596 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_RUN_DIR} is not defined
[Tue Jan 08 12:05:13.515068 2019] [core:warn] [pid 6361] AH00111: Config variabl e ${APACHE_LOG_DIR} is not defined
Server MPM: prefork
试图看看这个链接是否可以帮助我。
我跑了:sudo apachectl -t
得到了syntax ok
。我无法运行sudo apache2 -X -f /etc/apache2/httpd.conf
,因为我没有httpd.conf
文件。如果我跑:service apachectl start
我得到Failed to start apachectl.service: Unit apachectl.service not found.
这是我的/etc/apache2/envvars
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
# temporary state file location. This might be changed to /run in Wheezy 1
export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale
export LANG
## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'
## If you need a higher file descriptor limit, uncomment and adjust the
## following line (default is 8192):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
## If you would like to pass arguments to the web server, add them below
## to the APACHE_ARGUMENTS environment.
#export APACHE_ARGUMENTS=''
## Enable the debug mode for maintainer scripts.
## This will produce a verbose output on package installations of web server modules and web application
## installations which interact with Apache
#export APACHE2_MAINTSCRIPT_DEBUG=1
任何有关如何再次访问我的网站的帮助将不胜感激。我可以通过 WinSCP 和 Putty 进行 SSH 访问。
我在联想笔记本电脑上有 Kubuntu 18.10 和 KDE Plasma 5.14.4。
是否有 CPU 监视器小部件以 GHz 显示 CPU 频率?
我想要以 GHz 为单位从系统托盘中的小部件进行实时监控。
如果可能,如何使 Psensor 以 GHz 或类似的方式显示 CPU 频率?
我想从系统托盘监视 CPU 频率(以 GHz 为单位),并且不想像副本那样以百分比监视 CPU 使用率。
我有带有 KDE Plasma 环境的 Ubuntu 18.10。
安装新程序时:
首先它安装程序,然后我收到此消息:
2018/10/30 14:18:34.231310 main.go:150: description of advise-snap's
"from-apt" is lowercase: "advise-snap vil tale med apt via en apt-hook"
“vil tale med”是丹麦语,意思是“想要交谈/联系”。
在网上找不到任何东西。
任何解决此问题的帮助将不胜感激,谢谢!
联想ideapad 320。
我更愿意通过 GUI 解决此问题,但也可以接受来自终端的修复。
xinput --list --short
我有罗技 USB 接收器
xinput --set-prop "Logitech USB Receiver" "Device Accel Constant Deceleration" 1.5
Warning: There are multiple devices matching 'Logitech USB Receiver'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.
“id9”的正确代码是什么?还是图形用户界面修复?
谢谢