linux集群常用命令有什么?集群(cluster)技术是一种较新的技术,通过集群技术,可以在付出较低成本的情况下,获得在性能、可靠性、灵活性方面的相对较高的收益,其任务调度则是集群系统中的核心技术。
1.常用系统关机命令:
halt ,init 0 ,poweroff ,shutdown -h now ,shutdown -h 10
2.常用系统重启命令:
reboot , shutdown -r now , init 1
3.添加主机名与IP映射
[root@controller ~]# vi /etc/hosts192.168.48.10 controller192.168.48.20 compute
4.shell
#!/bin/bash
# 上面中的 #! 是一种约定标记,它可以告诉系统这个脚本需要什么样的解释器来执行
5.crontab任务配置基本格式:
* * * * * command
分钟(0-59) 小时(0-23) 日期(1-31) 月份(1-12) 星期(0-6,0代表星期天) 命令
举例来说:
0 1 * * * /home/testuser/test.sh
每天晚上1点调用/home/testuser/test.sh
*/10 * * * * /home/testuser/test.sh
每10钟调用一次/home/testuser/test.sh
以上是关于linux集群常用命令的介绍。

神马VPS










最新评论
Hey there! Do you use Twitter? I'd like to follow you if that would be okay. I'm absolutely enjoying your blog and look forward to new posts.
I delight in, result in I found exactly what I was looking for. You've ended my four day long hunt! God Bless you man. Have a great day. Bye
Wow, this piece of writing is fastidious, my younger sister is analyzing such things, therefore I am going to convey her.
Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is great, as well as the content!
I want to to thank you for this excellent read!! I definitely enjoyed every bit of it. I have got you book-marked to check out new things you
I like this post, enjoyed this one appreciate it for posting.
Definitely, what a splendid blog and enlightening posts, I surely will bookmark your site.Best Regards!
As I website possessor I conceive the content here is very fantastic, thanks for your efforts.