Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在AWS ubuntu实例中编辑crontab时出现问题_Ubuntu_Amazon Web Services_Amazon Ec2_Cron - Fatal编程技术网

在AWS ubuntu实例中编辑crontab时出现问题

在AWS ubuntu实例中编辑crontab时出现问题,ubuntu,amazon-web-services,amazon-ec2,cron,Ubuntu,Amazon Web Services,Amazon Ec2,Cron,我使用crontab-e在本地系统中创建了一个cronjob crontab-e 在本地Ubuntu系统中打开Nano编辑器。 然后我添加了我的工作。那很好 但在AWS实例中面临着这个问题。 我用我的Ubuntu EC2实例尝试了同样的方法 我使用SSH连接了AWS实例。 运行crontab-e 它的给予 ubuntu@ip-1562-361-466-45563:~$ crontab -e 945 这是什么945,如果我申请sudo它的888 为什么不打开Nano或Vi之类的编辑器?expor

我使用crontab-e在本地系统中创建了一个cronjob

crontab-e

在本地Ubuntu系统中打开Nano编辑器。 然后我添加了我的工作。那很好

但在AWS实例中面临着这个问题。 我用我的Ubuntu EC2实例尝试了同样的方法

我使用SSH连接了AWS实例。 运行crontab-e

它的给予

ubuntu@ip-1562-361-466-45563:~$ crontab -e
945
这是什么945,如果我申请sudo它的888


为什么不打开Nano或Vi之类的编辑器?

export editor=Nano修复了我的问题,现在使用Nano打开它将这些命令的输出添加到您的问题中。回声视觉;echo$编辑器;ls-l/usr/bin/editor/etc/alternations/editor