• linux磁盘分区的详细步骤(图解linux分区命令使用方法)

    日期:

    首先介绍下几个简单的命令: free查看当前系统内存的使用情况 查看分区的使用情况:T类型、H显示大小以G,M 查看系统所有硬盘的分区信息:分区的没分区的都显示出来了 开始分区:为什么要加cu 不加也可以哦,虚拟机做实验就要加,cu 针对虚拟硬盘的,虚拟硬...

  • Linux Firewall (firewalld, firewall-cmd, firewall-config)

    日期:

    Fedora 18 introduced firewalld as a replacement for the previous iptables service . Since RHEL7 and Oracle Linux 7 are based on Fedora 18, the switch from iptables service to firewalld is now part of the Enterprise Linux distributions. Thi...

  • Linux下firewall简易设置

    日期:

    iptables.rule为firewall总规则; iptables.allow为充许进入的主机; iptables.deny为不许放的主机; iptables.allow代码如下: #!/bin/bash # This is an esay firewall. # the inside interface. if you dont have this one # and you must let this be black...

  • linux的NetworkManager服务

    日期:

    linux (CentOS)配置IP地址信息,重启后网络配置失效。 经多次查找发现这种是NetworkManager的问题,NetworkManager试图将DHCP中获取的DNS信息写入/etc/resolv.conf,导致原文件被覆盖, 打开/etc/resolv.conf文件 会发现 Crate by networkmanager。 1:在配置...

  • CentOS/RedHat/Debian/Ubuntu下添加开机启动项

    日期:

    CentOS/RedHat: 1、编辑文件 /etc/rc.local vim /etc/rc.local 1 2 3 4 5 6 #!/bin/sh # #Thisscriptwillbeexecuted*after*alltheotherinitscripts. #Youcanputyourowninitializationstuffinhereifyoudont #wanttodothefullSysVstyleinitstuff. touch /var/l...

  • 查看linux默认能最多开启多少个文件数量

    日期:

    ulimit a ulimit n #vi /erc/security/limits.conf (修改文件开启的限制) # #domain type item value # #* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogi...

  • Nginx PHP MySQL Apache Lighttpd Squid编译安装后的参数查询

    日期:

    1.Nginx 编译安装时的参数 [root@gavin script]# /usr/local/nginx/sbin/nginx -V 2.php编译安装时的参数 [root@gavin ~]# /usr/local/php/bin/php -i |grep config 3.mysql编译安装时的参数 [root@gavin ~]# cat /usr/local/mysql/bin/mysqlbug |grep config...

  • memcache中的add和set方法区别

    日期:

    相信大家对memcache都不陌生,在项目中也经常使用memcache作为缓存方案,那么在使用过程中有没有发现为什么memcahce有两个添加缓存的方法:一个是add,一个是set,那么你知道这2个方法有什么不同吗?什么时候该使用add?什么时候该使用set呢? 对于这点以前自...

  • linux下进程的最大线程数、进程最大数、进程打开的文件数

    日期:

    linux 系统中单个进程的最大线程数有其最大的限制 PTHREAD_THREADS_MAX 这个限制可以在 /usr/include/bits/local_lim.h 中查看 对 linuxthreads 这个值一般是 1024,对于 nptl 则没有硬性的限制,仅仅受限于系统的资源 这个系统的资源主要就是线程的 stack 所...

  • Linux下Makefile的automake生成全攻略

    日期:

    作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。 在本文中,将给大家介绍如何使用autoconf和a...