随笔分类 -  Linux

Unix, Linux, FreeBSD
摘要:Set the HostnameBefore you begin installing and configuring the components described in this guide, please make sure you've followed our instructions forsetting your hostname. Issue the following commands to make sure it is set properly:hostnamehostname -f Run the following commands to update yo 阅读全文
posted @ 2012-04-17 10:13 James 阅读(364) 评论(0) 推荐(0)
摘要:1, First edit the /etc/hostname and /etc/hosts filesudovi/etc/hostssudo vi /etc/hostname2, run hostname servicesudoservicehostnamestart 阅读全文
posted @ 2012-04-17 09:38 James 阅读(232) 评论(0) 推荐(0)
摘要:1,首先,看看你现在是多少,将来恢复的时候还用得上。sysctl -a | grep shmmaxkernel.shmmax = 335544322,然后,改掉它#sysctl -w kernel.shmmax=4294967296这种改变只是暂时的,下次重新启动还会改回来。要想永久改变,就要把这个加到/etc/sysctl.confkernel.shmmax = 4294967296 阅读全文
posted @ 2010-06-04 02:10 James 阅读(489) 评论(0) 推荐(0)
摘要:使用这个功能,你就可以在main函数执行之前,和main函数退出之后,执行你自己想要的操作。具体原理,网上很多,自己google一下就找到了,这里只是给一个例子。[代码]运行结果:hello world!start == 0x4005fbstop == 0x40060bgoodbye world! 阅读全文
posted @ 2010-06-02 23:36 James 阅读(657) 评论(0) 推荐(0)