小编Dud*_*y67的帖子

无法启动 eth2 - Ubuntu 16.04

我在 Virtualbox 中设置了一个 Ubuntu 16.04 服务器作为来宾。服务器在网络设置中使用 3 个接口:Host-only、NAT、Bridged

/etc/network/interfaces 文件设置如下:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# Host-only interface
auto eth0
iface eth0 inet static
address 192.168.56.105
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255

# NAT interface
auto eth1
iface eth1 inet dhcp

# Bridged interface
auto eth2
iface eth2 inet static …
Run Code Online (Sandbox Code Playgroud)

server virtualbox networking

7
推荐指数
1
解决办法
3万
查看次数

PHP 7.2 fastcgi 在 Ubuntu 18.04 服务器上不起作用

我刚刚在 Ubuntu 18.04 服务器上安装了 LAMP,但我无法让 PHP fastcgi 工作。这是我的设置:

我的 fpm PHP 文件:/etc/php/7.2/fpm/pool.d/sites.mydomain.conf

[sites.mydomain]
 ...
user = sites
group = sites
 ...
listen = /run/php/php7.2-fpm.sites.mydomain.sock
 ...
listen.owner = www-data
listen.group = www-data
Run Code Online (Sandbox Code Playgroud)

然后

sudo service php7.2-fpm reload
sudo service php7.2-fpm restart
Run Code Online (Sandbox Code Playgroud)

我的虚拟主机文件:etc/apache2/sites-available/sites.mydomain.conf

    ServerName sites.mydomain
    ServerAdmin webmaster@localhost
    DocumentRoot /srv/www/sites/html

    <IfModule mod_fastcgi.c>
      AddHandler php7-fcgi-sites .php
      Action php7-fcgi-sites /php7-fcgi-sites
      Alias /php7-fcgi-sites /usr/lib/cgi-bin/php7-fcgi-sites
     FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi-sites -idle-timeout 60 -socket /var/run/php/php7.2-fpm.sites.mydomain.sock -pass-header Authorization

      <Directory /usr/lib/cgi-bin>
        Require all granted
      </Directory>
    </IfModule>

    <Directory /srv/www/sites/html>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride …
Run Code Online (Sandbox Code Playgroud)

apache2 php7 fastcgi

7
推荐指数
2
解决办法
2万
查看次数

在没有 Gnome 的情况下安装 Xorg

我过去常常从头开始设置我的 Ubuntu 桌面(Ubuntu 服务器 + Xorg + Openbox 等...)。但我发现在 20.04 lts 版本中,Xorg 自带 Gnome。我试过了,sudo apt install xorg-server但出现错误: E: Unable to locate package xorg-server

是否仍然可以在不安装 Gnome 的情况下安装 Xorg?

xorg 20.04

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

20.04 ×1

apache2 ×1

fastcgi ×1

networking ×1

php7 ×1

server ×1

virtualbox ×1

xorg ×1