在使用时需要包含头文件#include merlin@tfAnalysis:~/projects/tfradius$ cat /usr/include/asm-generic/errno-base.h #ifndef _ASM_GENERIC_ERRNO_BASE_H#define _ASM_GEN...
分类:
系统相关 时间:
2014-10-15 01:24:29
阅读次数:
469
一、配置系统环境1.清除默认防火墙规则#serviceiptablessave
iptables:将防火墙规则保存到/etc/sysconfig/iptables:[确定]2.关闭Selinux#cat/etc/sysconfig/selinux|grepSELINUX|grep-v^#
SELINUX=disabled
SELINUXTYPE=targeted
#3.配置ip地址#cat
/etc/sysconfig/network-s..
分类:
其他好文 时间:
2014-10-14 21:32:29
阅读次数:
298
linux基础优化1、修改ip地址、网关、主机名、DNS----------------------------------------------------cat>/etc/sysconfig/network-scripts/ifcfg-eth0<<EOFDEVICE=eth0BOOTPROTO=staticIPADDR=192.168.1.113NETMASK=255.255.255.0ONBOOT=yesGATEWAY=192.168.1.1EOF/..
分类:
系统相关 时间:
2014-10-14 20:31:50
阅读次数:
358
一、无限级分类-- 创建表create table it_category (cat_id int unsigned primary key auto_increment,cat_name varchar(50) default '',sort_order int default 0,parent_...
分类:
其他好文 时间:
2014-10-14 20:16:37
阅读次数:
173
原始文件的内容:代码如下:[root@localhost ~]# cat file.txthello worlda:b:c -h -na:b:c -h -nsed根据条件删除相关的行:代码如下:[root@localhost ~]# sed -i '/a:b:c -h -n/d' file.txt[...
分类:
系统相关 时间:
2014-10-14 13:19:58
阅读次数:
192
题目:气你一个整数n,问多少个节点可以生成n个不同的二叉树。
分析:数论,卡特兰数。根据定义即可。
说明:
#include
#include
using namespace std;
long long Cat[100];
int main()
{
Cat[0] = 1LL;
for (int i = 1 ; i < 20 ; ++ i)
Cat[i] = Cat[i...
分类:
其他好文 时间:
2014-10-14 11:54:38
阅读次数:
140
# uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # ...
分类:
系统相关 时间:
2014-10-13 16:31:49
阅读次数:
226
第一关:使用/usr/hashcat程序,对passwd中root的密码进行解密,得到gravity98 执行su,输入密码gravity98。第二关:获取提供的工具,wget http://area6.net/tools cat area6获取任务。 执行portscan203.59.0.2...
分类:
其他好文 时间:
2014-10-13 14:11:19
阅读次数:
131
Tomcat本身不能直接在计算机上运行,需要依赖于硬件基础之上的操作系统和一个java虚拟机。#####关于tomcatserver.xml文件详解[dy@web-dyserver]#cat/usr/local/apache-tomcat-6.0.41_8081/conf/server.xml<?xmlversion=‘1.0‘encoding=‘utf-8‘?><Serverport="8181"shut..
分类:
其他好文 时间:
2014-10-13 03:04:39
阅读次数:
148
sudo apt-get updatesudo apt-get install openssh-server1:ssh-keygen -t rsa -f ~/.ssh/id_rsa这里会提示输入pass phrase,一定不要输入任何字符,回车即可2:cat ~/.ssh/id_rsa.pub >>...
分类:
其他好文 时间:
2014-10-12 01:54:17
阅读次数:
261