[英]How to install Apache on OmniOS
I am attempting to install Apache on OmniOS.我正在尝试在 OmniOS 上安装 Apache。 I followed the instructions here: option 2 https://wiki.openindiana.org/oi/3.+Installing+software+and+package+management我按照这里的说明操作:选项 2 https://wiki.openindiana.org/oi/3.+Installing+software+and+package+management
Ran the command:运行命令:
echo $PATH
results in /opt/local/sbin:/opt/local/bin:/usr/gnu/bin:/usr/sbin:/sbin
echo $PATH
结果在/opt/local/sbin:/opt/local/bin:/usr/gnu/bin:/usr/sbin:/sbin
curl https://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2016Q4-x86_64.tar.gz | gtar -zxpf - -C /
pkgin -y update
pkgin -y install apache-2.4.6
resulted in the messages Calculating dependencies...done
and then nothing to do
pkgin -y install apache-2.4.6
导致消息Calculating dependencies...done
and nothing to do
I can not find the apache service or configuration directory as they are described here: https://docs.joyent.com/public-cloud/instances/infrastructure/images/smartos/apache我找不到这里描述的 apache 服务或配置目录: https : //docs.joyent.com/public-cloud/instances/infrastructure/images/smartos/apache
/opt/local/etc/httpd
The configuration directory for Apache /opt/local/etc/httpd
Apache的配置目录svcs pkgsrc/apache
Checking service for Apache svcs pkgsrc/apache
检查 Apache 服务Server Info:服务器信息:
uname -v
results in omnios-r151026-d9b45886bd
uname -v
结果是omnios-r151026-d9b45886bd
Though incomplete, my commands did make a change.虽然不完整,但我的命令确实进行了更改。 My Perl scripts can no longer find DBI.我的 Perl 脚本再也找不到 DBI。
Why does the Apache install say there is nothing to do
?为什么 Apache 安装说nothing to do
? What am I missing?我错过了什么?
UPDATE更新
which apache2
resulted in no apache2
Ran which apache2
导致no apache2
pkgin list
to list all installed packages.运行pkgin list
以列出所有已安装的软件包。 Only apache reference is apache-maven-3.5.4
只有 apache 参考是apache-maven-3.5.4
find . -name '*apache*'
冉find . -name '*apache*'
find . -name '*apache*'
in the following directories: find . -name '*apache*'
在以下目录中:
\\etc
nothing \\etc
什么都没有\\opt
found: \\opt
发现:
SUNWspro
SUNWspro
vim、el 和 elc 文件org-apache-tools-ant-module
files and folder in netbeans/3.5V11/modules/patches
netbeans/3.5V11/modules/patches
org-apache-tools-ant-module
文件和文件夹apache
folder in SUNWwbsvr/plugins/java/samples/webapps/jstl/src/org
which contains java files SUNWwbsvr/plugins/java/samples/webapps/jstl/src/org
中包含 java 文件的apache
文件夹sfw
--- also an apache
folder in sfw
which contains readme/bash type files for apache/php and one so file VIM,标签,萨尔瓦多和ELC文件sfw
---也是一个apache
文件夹中sfw
其中包含自述/ bash的文件类型为Apache / PHP和一个这样的文件apache-maven-3.5.4
files/folders in local
apache-maven-3.5.4
local
文件/文件夹org-apache-xml-resolver*
files in sunstudio12.1
sunstudio12.1
org-apache-xml-resolver*
文件share/vim/vim80/syntax
2 个 vim 在share/vim/vim80/syntax
apache-fcgi.conf
in lib/python2.7/vendor-packages/cherrypy/scaffold
apache-fcgi.conf
在lib/python2.7/vendor-packages/cherrypy/scaffold
As far as I can tell, the binaries have not been installed据我所知,尚未安装二进制文件
I tried running pkgin -y install apache-2
and it worked.我尝试运行pkgin -y install apache-2
并且它起作用了。 It installed apache-2.4.3
.它安装了apache-2.4.3
。 Perhaps apache-2.4.6
does not exist in the repository.也许存储库中不存在apache-2.4.6
。
This mean apache is already installed on the Linux system.这意味着 apache 已经安装在 Linux 系统上。 To run below command which will tell the location of the system binary.运行下面的命令,它将告诉系统二进制文件的位置。
which apache2哪个 apache2
for the configuration folder look for below directory:对于配置文件夹,请查找以下目录:
/etc/apache2 /etc/apache2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.