Linux 环境中普通用户启动Myeclipse出错
2016-08-14 21:40
260 查看
将Myeclipse安装在/usr/local/myeclipse目录中,由root用户启动时没有问题,而用普通用户时出现如下故障:
意思就是/usr/local/myeclipse/configuration对于普通用户来说是不可写的,当让可以将/usr 及其所有的子目录都变成 777的权限,但是毕竟不安全。在这句话的后边提示可以通过配置 -configuration参数来改变configuration目录的位置。 我们希望当每个用户启动myeclipse的时候都有自己的配置目录,因此可以通过一个简单脚本实现以下。
脚本名就为myeclipse,可以直接通过这个脚本来对myeclipse进行配置,然后启动myeclipse。
将此myeclipse脚本放在/usr/local/bin目录中,这样任何用户都可以调用,并且,每个用户都有自己的配置目录。
The configuration area at '/usr/local/myeclipse/configuration' is not writable. Please choose a writable location using the '-configuration' command line option.
意思就是/usr/local/myeclipse/configuration对于普通用户来说是不可写的,当让可以将/usr 及其所有的子目录都变成 777的权限,但是毕竟不安全。在这句话的后边提示可以通过配置 -configuration参数来改变configuration目录的位置。 我们希望当每个用户启动myeclipse的时候都有自己的配置目录,因此可以通过一个简单脚本实现以下。
脚本名就为myeclipse,可以直接通过这个脚本来对myeclipse进行配置,然后启动myeclipse。
#!/bin/bash if [ "$USER" == "root" ]; then workpath=/root/myeclipse else workpath=/home/$USER/myeclipse fi if [ ! -d "$workpath" ]; then mkdir -p $workpath fi /usr/local/myeclipse/myeclipse -configuration $workpath
将此myeclipse脚本放在/usr/local/bin目录中,这样任何用户都可以调用,并且,每个用户都有自己的配置目录。
相关文章推荐
- arm-linux-gcc root用户普通用户环境变量设置
- linux下普通用户如何使用80端口启动程序
- linux下普通用户如何使用80端口启动程序
- 普通用户切换到root用户无法启动环境变量
- 在linux环境下为普通用户和用户组加入磁盘配额限制
- Linux下配置Tomcat使用普通用户启动Daemon进程
- linux环境下,普通用户使用service httpd restart 重启Apache失败
- Linux下采用普通用户ceshi身份自动启动Tomcat
- linux环境如何从普通用户切换到root用户
- Linux 启动时,先读取用户环境变量,即 /home/defonds/.bashrc 的设置。次读取所有用户环境变量,即 /etc/profile 中的配置。
- Linux中从普通用户启动Wireshark抓包
- Linux普通用户启动tomcat
- 让普通用户具备sudo执行权限-修改linux默认启动方式
- Linux环境下提升普通用户权限(sudo)
- Linux普通用户启动tomcat
- Linux环境中普通用户切换到root用户问题
- Linux环境下提升普通用户权限(sudo)
- linux普通用户启动的进程如何绑定1024以下端口
- linux 下 oracle用户的环境变量应用到系统其他普通用户中
- linux tomcat 启动用户修改 root用户改为普通用户启动