Tag: 服务器

我可以完全卸载UFW吗?

我需要手动配置iptables并使用iptables-persistent包保存和恢复规则。 所以我不再想要了。 我可以简单地禁用它。 但是iptables规则转储中存在很多链,我不想看到它们。 :INPUT ACCEPT [593:73026] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [449:94341] :ufw-after-forward – [0:0] :ufw-after-input – [0:0] :ufw-after-logging-forward – [0:0] :ufw-after-logging-input – [0:0] :ufw-after-logging-output – [0:0] :ufw-after-output – [0:0] :ufw-before-forward – [0:0] :ufw-before-input – [0:0] :ufw-before-logging-forward – [0:0] :ufw-before-logging-input – [0:0] :ufw-before-logging-output – [0:0] :ufw-before-output – [0:0] :ufw-reject-forward – [0:0] :ufw-reject-input – [0:0] […]

Ubuntu服务器16.04没有无线互联网连接

我安装了一个新的Ubuntu 16.04服务器,无法使用WIFI。 我的/etc/network/interfaces文件如下所示: auto lo iface lo inet loopback auto wlan0 iface wlan0 inet dhcp wpa-ssid lomboboo wpa-psk password 我也尝试了这个设置,因为在这个答案中建议: auto lo iface lo inet loopback auto wlan0 iface wlan0 inet static address 192.168.1.150 netmask 255.255.255.0 gateway 192.168.1.1 wpa-ssid lomboboo wpa-psk password dns-nameservers 8.8.8.8 192.168.1.1 但它们都不起作用。 这也是来自ifconfig的信息 PS不知道是否重要 – Ubuntu 16.04服务器正在Raspberry Pi 3上运行。 编辑 sudo […]

无法连接到http://changelogs.ubuntu.com/meta-release

当我登录到我的Ubuntu终端tty1时,我收到一条消息 failed to connect to http://changelogs.ubuntu.com/meta-release 我尝试了各种各样的东西,然后我收到一条错误消息告诉我 could not resolve us.archive.ubuntu.com 我的互联网连接显然已禁用,我无法配置它。 我尝试重新启动但没有改变。

从浏览器运行X11 GUI应用程序(apache – php)

与https://askubuntu.com/questions/364458/running-gui-app-with-php一样 ,我需要从Apache服务器上的php页面运行X11应用程序(VLC)。 我需要在服务器上打开VLC应用程序,而不是在远程系统上打开。 我试图通过php shell_exec调用包含VLC命令的shell脚本。 如果从命令行启动,sh脚本正确打开VLC应用程序,但不通过php调用,因为它没有找到(我认为)任何启动的X11会话:它返回相关的错误消息: – inhibit interface error: Failed to connect to the D-Bus session daemon: //bin/dbus-launch terminated abnormally with the following error: No protocol specified – Autolaunch error: X11 initialization failed. – main interface error: no suitable interface module – xcb_xv vout display error: parent window not available – … 如果我授予apache用户www-data连接到X服务器 xhost […]

如果我无法启动进入linux,如何运行update-grub?

我正在尝试将Ubuntu Server 12.04安装到旧的HP DL320 G2上。 这有一个内置的ATI Rage XL显卡。一切似乎安装好,但我有启动问题。 一旦服务器开始启动,屏幕在发布后变黑,并且没有显示任何其他内容 – 没有grub菜单,错误消息等(我整晚都这样离开)。 如果我按住[shift]键,会显示“加载Grub”,但之后再没有任何内容。 我已经阅读了几个关于如何通过修改/etc/default/grub文件然后运行sudo update-grub来解决此问题(以及类似问题)的建议。 如果它似乎没有一直启动进入linux,我如何运行update-grub ? 我认为必须发生错误,阻止它完全启动。 但是,我无法确定地知道任何事情。

如何在ubuntu-server 14.04.2 LTS上修复CVE-2016-5195

错误CVE-2016-5195存在一些问题我按照本指南修复了它并使用了命令: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade 之后,我重新启动了服务器,系统版本是Ubuntu 14.04.5 LTS。 然后,我按照本指南测试错误,但发现错误仍然存​​在。 我该如何缓解这种情况? 以下是关于内核版本的输出: root@ubuntu:~# uname -r 3.16.0-30-generic

在15.04,`service`不再提供有用的输出(状态除外)?

曾经是这样的情况 service service-name reload|restart|start|stop – 会显示一个很好的: service-name start/running, process 17642 现在,虽然新的status输出真的很酷 – 我真的想保持原来的方式 – 它在stop|start|restart|reload时提供某种[OK] stop|start|restart|reload – 有没有办法做到这一点?

选择grub后,Monitor进入省电模式

我安装了Ubuntu Server。 它可以很好地加载到grub选择屏幕,但在进行选择之后,由于某种原因,显示器才会进入省电模式并且永远不会唤醒。 我必须重启。 显示器电缆没有松动或任何东西。 有没有办法来解决这个问题?

意外地安装了Mysql上的MariaDB。 如何恢复我的Mysql数据库?

我安装了MariaDB,却没有注意到它取代了Mysql。 在安装过程中,它将Mysql数据目录移动到mysql-5.7。 我删除了MariaDB并重新安装了Mysql,并尝试通过简单地将它们从mysql-5.7移动到mysql并重新启动Mysql来恢复我的数据库。 Mysql不会再次启动,因此我不能像这里建议的那样使用mysqldump – 如何在升级到mariadb后恢复mysql数据库 。 如何恢复数据库? 作为参考,我正在运行Ubuntu Server 16.04和Mysql 5.7。

无法在ubuntu 14.04 LTS上安装phpmyadmin

我已经在窗口10(双启动)旁边安装了ubuntu。 我已经设置了apache2服务器,mysql并安装了PHP 7,然后我想安装phpmyadmin我无法安装它。 我已经尝试了很多次,但仍然有同样的问题。 这是我得到的错误: 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. […]