简体   繁体   English

如何在 OmniOS 上安装 Apache

[英]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
  • Running x86运行 x86
  • Also running SunONE webserver还运行 SunONE 网络服务器

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更新

  • Ran which apache2 resulted in no apache2 Ran which apache2导致no apache2
  • Ran pkgin list to list all installed packages.运行pkgin list以列出所有已安装的软件包。 Only apache reference is apache-maven-3.5.4只有 apache 参考是apache-maven-3.5.4
  • Ran find . -name '*apache*'find . -name '*apache*' find . -name '*apache*' in the following directories: find . -name '*apache*'在以下目录中:
    • \\etc nothing \\etc什么都没有
    • \\opt found: \\opt发现:
      • vim, el, and elc files in 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文件夹
      • vim, tag, el and elc files in 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*文件
    • '\\usr\u0026#39; found: '\\usr\u0026#39; 发现:
      • 2 vims in share/vim/vim80/syntax 2 个 vim 在share/vim/vim80/syntax
      • apache-fcgi.conf in lib/python2.7/vendor-packages/cherrypy/scaffold apache-fcgi.conflib/python2.7/vendor-packages/cherrypy/scaffold
    • '\\var' nothing '\\var' 什么都没有

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM