出错原因:
/dev/vda1 占用100%
tomcat生成日志未做定时清理,导致出现两个16G的大文件,以下是操作处理逻辑,稍做整理
3769 ls -la
3770 ls -lah
3771 cd block
3772 cd ..
3773 ls
3774 cd log
3775 ls -la lo
3776 ls -lah log
3777 cd /
3778 lsof
3779 lsofh
3780 lsof -h
3781 apt update
3782 df -h
3783 apt upgrade
3784 apt-get upgrade
3785 free -m
3786 apt-get autoremove
3787 top
3788 ls -lha
3789 cd /vda
3790 df -lh
3791 cd /dev
3792 ls
3793 ls -lah
3794 cd ..
3795 ls
3796 ls -lah changcheng
3797 ls -lah etc
3798 free -m
3799 whereis tomcat
3800 service tomcat status
3801 service apach status
3802 service mysql status
3803 find . -type f -size +10000k
3804 find . -type f -size +1000000k
3805 cd bin/tomcat/apache-tomcat-8.0.39/logs
3806 ls
3807 ls -la
3808 ls -lah
3809 pwd
3810 crontab -e
3811 cd
3812 ls
3813 crontab -e
3814 crontab -l
3815 cd /etc
3816 ls
3817 crontab -e
3818 ls -la
3819 chmod 744 crontab
3820 ls -la crontab
3821 crontab -e
3822 whoami
3823 cd
3824 crontab -l
3825 cd /etc
3826 crontab -l
3827 man crontab
3828 crontab -e
3829 whereis vim
3830 crontab -u root -l
3831 select-editor
3832 crontab -l
3833 crontab -e
3834 select-editor
3835 crontab -l
3836 \tcd bin/tomcat/apache-tomcat-8.0.39/logs
3837 \tcd /bin/tomcat/apache-tomcat-8.0.39/logs
3838 ls
3839 ls -lah
3840 rm -rf catalina.2017-07-02.log
3841 cd
3842 crontab -e
3843 crontab -l
3844 users
3845 df -lh
3846 cd /tmp
3847 ls
3848 ls -lh
3849 \tcd /bin/tomcat/apache-tomcat-8.0.39/logs
3850 ls -la
3851 rm -rf catalina.out
3852 df -lh
3853 cd /tmp
3854 ls
3855 ls -la
3856 cd ssh-12r6o1DDQx
3857 ls
3858 ls -la
3859 vim agent.1348
3860 crontab -l
3861 cd /etc
3862 crontab -l
3863 cd /var/spool
3864 ls
3865 cd cron
3866 ls
3867 ls -la
3868 cd crontabs
3869 ls
3870 cd /tmp
3871 ls
3872 ls -la
3873 crontab -e
3874 ls
其中,用到几个命令。