ITeye博客

2018 年文章归档

共 4 篇文章

web项目改成spring boot maven 引入jar包不一致启动报错

mavn 部署引入jar包不对,不提示找不到jar包,而是提示: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. Error creating bean with name 'auditProcessAction': Unsatisfied dependency expressed through field 'auditProcessService'; nested exception is org.spring…

2018-12-29 14:40

linux 查找文件 文件内容

应用:https://www.cnblogs.com/zhangmo/p/3571735.html 区别 :(1)find命令是根据 文件的属性 进行查找,如文件名,文件大小,所有者,所属组,是否为空,访问时间,修改时间等。 (2)grep是根据 文件的内容进行 查找,会对文件的每一行按照给定的模式(patter)进行匹配查找。 一.find命令 **基本格式:**find path expression 1.按照文件名查找 (1)find / -name httpd.conf #在根目录下查找文件httpd.conf,表示在整个硬盘查找 (2)find /etc -name httpd.c…

2018-07-31 09:39

Tomcat7 调优

引用:http://www.cnblogs.com/sybblogs/p/5465763.html open files 修改linux系统open files限制,通过ulimit –a可看到系统默认的一个进程最大打开文件数为1024,linux系统中一切皆为文件,包含socket连接,需将些值调大,才可建立更多的socket连接。 [root@localhost tomcat]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 f…

2018-07-06 14:44

Centos 添加 swap

引用:http://www.cnblogs.com/sybblogs/p/7691104.html swap是linux系统的虚拟内存,物理内存不足时,会用到。生产环境,最好添加上,以防内存异常暴增时,系统出现问题。 查看系统是否有swap分区,执行如下命令,若Swap那一行都为0,则表示没有Swap分区。 下面是添加Swap的方法: 1. 使用dd命令创建一个swap交换文件 dd if=/dev/zero of=/home/swap bs=1024 count=4096000 上面这条命令,创建了一个大小为4G的swap文件,位置为/home/swap。 2. 制作为swap格式文件 m…

2018-07-06 14:31