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集群常用命令的介绍。
最新评论
Hey very cool web site!! Man .. Excellent .. Wonderful .. I'll bookmark your website and take the feeds also? I am glad to seek out a lot of helpful information here in the publish, we need develop extra techniques on this regard, thank you for sharing. . . . . .
Wonderful website you have here but I was curious if you knew of any message boards that cover the same topics talked about in this article? I'd really like to be a part of group where I can get comments from other experienced people that share the same interest. If you have any recommendations, please let me know. Kudos!
I all the time used to read post in news papers but now as I am a user of net thus from now I am using net for articles, thanks to web.
Hi! I've been following your website for a while now and finally got the courage to go ahead and give you a shout out from Atascocita Texas! Just wanted to tell you keep up the good job!
I relish, cause I discovered just what I was taking a look for. You've ended my 4 day long hunt! God Bless you man. Have a nice day. Bye
I am really impressed along with your writing talents as smartly as with the layout in your weblog. Is that this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to peer a nice weblog like this one today!
I'm really inspired with your writing skills and also with the layout on your weblog. Is this a paid subject or did you modify it your self? Anyway stay up the nice quality writing, it is rare to see a nice weblog like this one these days.
Great article, totally what I wanted to find.