1、cd /root/oracle/......,跳转到对应目录下, cp /dev/null nohup.out 清空nohup.out文件内容。 2、cat /dev/null > nohup.out 此方法清空内容相对较慢