我按照这些步骤在 Ubuntu 12.04 中安装了 Apache 2.4.2,但似乎没有安装 Apache,这就是我所做的(我按照这个网站上的步骤http://www.discusswire.com/apache-2-4-安装-ubuntu/ ):
sudo apt-get install build-essential
sudo apt-get build-dep apache2
wget http://apache.mirrors.pair.com/httpd/httpd-2.4.2.tar.gz
tar -xzvf httpd-2.4.2.tar.gz && cd httpd-2.4.2
sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --with-mpm=prefork
sudo make
sudo make install
Run Code Online (Sandbox Code Playgroud)
当我尝试通过sudo /usr/local/apache2/bin/apachectl start在终端发出来开始时,我收到以下警告:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message" and when I typed **top** at terminal, the apache is not there. I …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用此页面中的说明在我的新 Ubuntu 16.04 中安装 Anbox 。它似乎有效,但我的仪表盘中没有图标,所以我怀疑安装未完成。使用 Synaptic Package Manager,我可以看到anbox-common&anbox-modules-dkms已安装,但我的破折号中没有图标,所以我尝试运行
sudo snap install --edge --devmode anbox
Run Code Online (Sandbox Code Playgroud)
并收到此错误:
error: cannot install "anbox": Get
https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list:
dial tcp: lookup search.apps.ubuntu.com on [::1]:53: read udp
[::1]:54255->[::1]:53: read: connection refused
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?为什么连接被拒绝?根据说明,这似乎是安装它的正确命令。
ps:我对Linux不是很熟悉,我更像是一个Windows人,正在努力学习Linux。