不同的颜色显示只需要指定31m,32m,33m,34m…即可
[root@localhost ~]# echo -e "\033[31m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[32m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[33m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[34m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[35m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[36m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[37m service ant is started \033[0m"
[root@localhost ~]# echo -e "\033[38m service ant is started \033[0m"