想把树莓派当一个小型服务器来用,性能可以差一点,但是稳定性必须保证,以下是从网络上找到的提高稳定性的方法。 1)/etc/sysctl.conf当中修改 vm.min_free_kbytes(8192修改成16384) #?rpi?tweaks
vm.swapp...
分类:
其他好文 时间:
2014-08-22 14:41:19
阅读次数:
238
cat <<EOF?>>/etc/security/limits.conf * soft nofile 65536 * hard nofile 65536 * soft nproc unlimited * hard nproc unlimited EOF cat <<EOF >>/etc/security/limits.d/90-nproc.conf * ? ? ? ? ?sof...
分类:
其他好文 时间:
2014-08-22 11:04:06
阅读次数:
491
本文系统:centos6.5[root@mastersalt]#rpm-qa|grepsalt
salt-minion-2014.1.7-3.el6.noarch
salt-master-2014.1.7-3.el6.noarch
salt-2014.1.7-3.el6.noarchsalt-minion位置:/etc/salt/minion#####Primaryconfigurationsettings######default_include:minion.d/*.conf#默认值..
分类:
其他好文 时间:
2014-08-22 11:01:47
阅读次数:
324
activemq-all-5.5.0.jar:所有MQ JAR包的集合,用于用户系统调用 bin:其中包含MQ的启动脚本 conf:包含MQ的所有配置文件 data:日志文件及持久性消息数据 example:MQ的示例 lib:MQ运行所需的所有Lib webapps:MQ的Web...
分类:
其他好文 时间:
2014-08-22 01:41:05
阅读次数:
196
1. -L增加一个搜索路径,不一定要跟-l放在一起;不区别静态链接和动态链接。2. 用-lxx与 libxx.a的区别是:前者会搜索多个路径。3. 使用-lxx链接动态库时,动态库所在的目录不一定在搜索路径,可以加到/etc/ld.so.conf中,或者/etc/ld.so.conf.d/libxx...
分类:
其他好文 时间:
2014-08-21 22:43:34
阅读次数:
272
Apache的rewrite机制:意思就是,你发送的地址,比如:http://localhost/news-id67.html会被Apache改写成http://localhost/news.php?id=67;Apache本身内置了一个模块:(httpd.conf)#LoadModule rewr...
分类:
其他好文 时间:
2014-08-21 21:02:04
阅读次数:
253
1.编译目标代码时指定的动态库搜索路径 -rpath; 2.环境变量LD_LIBRARY_PATH指定的动态库搜索路径; 3.配置文件/etc/ld.so.conf中指定的动态库搜索路径; 4.默认的动态库搜索路径/lib; 5.默认的...
分类:
其他好文 时间:
2014-08-21 15:21:44
阅读次数:
245
在centos6.0系统上设置修改custom.conf文件vim/etc/gdm/custom.conf在[security]下面添加AllowRemoteRoot=true在[xdmcp]下面添加Port=177Enable=1修改完后效果如下:[daemon][security]AllowRemoteRoot=true[xdmcp]Port=177Enable=1[greeter][chooser][debug]保存退出2.修改ini..
分类:
其他好文 时间:
2014-08-21 15:12:34
阅读次数:
211
登陆用户demo登陆如果你在启动某个服务的时候,没启动起来,没日子那么我们就手动启动一下。[root@linux-node1~]#neutron-server--config-file/etc/neutron/neutron.conf--config-file/etc/neutron/plugins/ml2/ml2_conf.ini--config-file/etc/neutron/plugins/linuxbridge/lin..
分类:
其他好文 时间:
2014-08-21 11:43:04
阅读次数:
286
前言rsyslog系统日志,在CentOS5上叫syslog,而在CentOS6上叫rsyslog,叫增强版的syslog,CentOS5上的配置文件在/etc/syslog.conf下,而CentOS6在/etc/rsyslog.conf下。syslog默认是把我们的日志放到文件、用户、日志服务器、管道中。rsyslog在syslog的基础上还多了一条途径,..
分类:
数据库 时间:
2014-08-21 00:24:23
阅读次数:
377