我正在尝试将imagepyramid插件复制到我的地理服务器中,系统不会让我这样做。我以管理员身份登录
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF/lib$ sudo chown -R atgis /usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF/lib
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF/lib$ cp /home/user/downloads/gt-imagepyramid-8.4.jar gt-imagepyramid-8.4.jar
cp: cannot create regular file `gt-imagepyramid-8.4.jar': Permission denied
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF/lib$ mkdir test
mkdir: cannot create directory `test': Permission denied
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF/lib$ cd ..
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF$ chmod 777 lib
chmod: changing permissions of `lib': Operation not permitted
user@osgeolive:/usr/local/lib/geoserver-2.1.3/webapps/geoserver/WEB-INF$
答案 0 :(得分:0)
试试这个:
检查您是否有权写入geoserver文件夹。
$ ls -all /usr/local/lib/geoserver-2.1.3/webapps /
如果您无权写信:
$ chmod 777 /usr/local/lib/geoserver-2.1.3/webapps/geoserver
我希望这会对你有所帮助。