bash 在 Linux 或 Mac OS X 上构建和启动 hybris 5.1.1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23698193/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 10:28:03  来源:igfitidea点击:

Build & start hybris 5.1.1 on Linux or Mac OS X

bashunixhybris

提问by Flash Hyman From Gundagai

I am installing the hybris 5.1.1 complete package for the first time& according to the procedure of this web page:

我是第一次安装hybris 5.1.1完整包按照这个网页的步骤:

https://wiki.hybris.com/display/release5/Quick+Installation

https://wiki.hybris.com/display/release5/Quick+Installation

However, when I perform the step:

但是,当我执行该步骤时:

On Unix-related systems (such as Linux or Mac OS X), run setantenv.sh by entering ./setantenv.sh.

在 Unix 相关系统(如 Linux 或 Mac OS X)上,通过输入 ./setantenv.sh 运行 setantenv.sh。

by...

经过...

mlittle-mbook1-2:platform mlittle$ ./setantenv.sh

mlittle-mbook1-2:platform mlittle$ ./setantenv.sh

I get the message...

我收到消息...

-bash: ./setantenv.sh: Permission denied

-bash: ./setantenv.sh: 权限被拒绝

I have also tried setting to execute permissions with chmod 755 platform, but it did not work..

我也试过用 设置执行权限chmod 755 platform,但它没有用..

回答by Aaron Blenkush

You have you use the bash command

你有你使用 bash 命令

. ./setantenv.sh

. ./setantenv.sh

回答by Sahbi

You should be using . ./setenv.shsince it sets maven environment as well

您应该使用,. ./setenv.sh因为它也设置了 maven 环境

回答by Joe Choosakul

the "Permission denied" error means you do not have permission to execute the shell program.

“权限被拒绝”错误意味着您没有执行 shell 程序的权限。

You will need to change the file mode to allow execution.

您将需要更改文件模式以允许执行。

Here's the command(The steps below assumes you are the owner of the file):

这是命令(以下步骤假设您是文件的所有者):

chmod 755 ./setantenv.sh

then run

然后运行

. ./setantenv.sh

回答by Jonathan Wheeler

Use

ls -l

To see who the owner and who the group is. If you are not the owner or in the group, you may need to change your permissions to 777 or 775 respectively.

查看谁是所有者,谁是该组。如果您不是所有者或组中的成员,则可能需要将您的权限分别更改为 777 或 775。

Prefacing your statement with sudo is frequently necessary to write files to folders such as /bin for the installation process.

以 sudo 开头的语句通常是将文件写入文件夹(例如 /bin 以供安装过程)所必需的。

回答by Benoit Vanalderweireldt

  1. First change the ownership of all files of your Hybris installation, to your current user.
  1. 首先将 Hybris 安装的所有文件的所有权更改为您的当前用户。
hybris : ~ $ whoami 
hybris
hybris : ~ chown -R hybris: ./
hybris : ~ chmod -R 755 ./
hybris : ~ $ whoami 
hybris
hybris : ~ chown -R hybris: ./
hybris : ~ chmod -R 755 ./
  1. Then run the setantenv command
  1. 然后运行 ​​setantenv 命令

hybris : ~/hybris/bin/platform $ . setantenv.sh

hybris : ~/hybris/bin/platform $ . 设置环境文件