azhqiang

原文:http://blog.csdn.net/this_capslock/article/details/17415409

今天在Linux尝试搭建dynamips的工作环境,在执行shell脚本时遇到个小问题

有一个名为start.sh的脚本文件,内容如下:

 

[plain] view plain copy
 
 print?
  1. #!/bin/bash  
  2. ./dynamips.bin -H 7200 &  

 

 

在终端执行shell脚本后,出现问题如下:

 

[plain] view plain copy
 
 print?
  1. [root]# ./start.sh  
  2. bash: ./start.sh: 权限不够  

 

 

解决方法是先使用chmod命令对shell脚本赋予权限,再执行

 

[plain] view plain copy
 
 print?
    1. [root]# chmod 777 ./start.sh  
    2. [root]# ./start.sh  

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2021-07-16
  • 2022-12-23
  • 2021-08-02
  • 2021-11-18
  • 2022-02-22
猜你喜欢
  • 2021-11-18
  • 2021-11-18
  • 2021-11-27
  • 2021-11-18
  • 2021-09-08
  • 2021-11-18
相关资源
相似解决方案