![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux相关
文章平均质量分 56
iteye_494
这个作者很懒,什么都没留下…
展开
-
linux_常用命令小总结
netstat -ntpa|grep 8001 tomcat 过多的时候,知道端口可以使用下面的命令快速查找进程 cp -r xxx/ xxx/ 才不会报错。 for i in `ls` ;do tar xvf $i ;done 解压目录下所有的tar包 tar -cvf/ll/ll.tar /ll 打包 /bin/cp /***/...原创 2012-08-27 10:27:58 · 115 阅读 · 0 评论 -
Linux centos6.3 安装postgres9.2.4 postgis2.0.3
1. 安装postgres + postgis: [pgsql安装] tar xvzf postgresql-9.2.4.tar.gz cd postgresql-9.2.4 #./configure --prefix=/mapbar/app/pgsql make make install groupadd postgres useradd postgr...原创 2014-11-03 16:35:06 · 525 阅读 · 0 评论 -
Linux 自动打包非当前日期的tomcat日志到备份目录下
需要 gzip 命令支持: #!/bin/sh tomcat_backup_dir="/打包备份目录" tomcat_dir_list=$(ps -ef | grep -oP '(?<=-Dcatalina\.base=)[^\s]*') #netty_dir_list=$(ps -ef | grep com.mapbar.mserver.netty \ #net...原创 2016-11-11 11:06:38 · 290 阅读 · 2 评论 -
Linux mysql 源码安装
1. 安装cmake 先安装cmake(mysql5.5以后是通过cmake来编译的) tar -zxv -f cmake-2.8.4.tar.gz cd cmake-2.8.4 ./configure make make install 2. 创建mysql用户组和目录 mkdir -p /mapbar/app/mysql mkdir -p /m...原创 2014-05-12 10:03:19 · 67 阅读 · 0 评论 -
Linux 安装nginx
安装ngix依赖的: # tar zxvf pcre-8.12.tar.gz # cd pcre-8.12 # ./configure -prefix=/mapbar/app/pcre # make # make install # tar zxvf nginx-0.8.54.tar.gz # cd nginx-0.8.54 # ./configure --w...原创 2014-05-12 10:03:09 · 71 阅读 · 0 评论 -
Linux下安装redis
1、安装 wget http://redis.googlecode.com/files/redis-2.6.7.tar.gz tar zxvf redis-2.6.7.tar.gz cd redis-2.6.7 make make test 这样操作完成之后,会在目录中的 src中生成4个可执行文件 redis-server:Redis服务器的daemon启动程序...原创 2014-05-10 09:08:03 · 50 阅读 · 0 评论 -
Linux安装的事项
1. 版本:redhat 6.4 64位 测试安装时 只选择开发工具里的 开发包 46 --46 需要/ 3.5g 最少 附加开发 --- 105总数 分区大小规则(不要使用LVM) / 20G /boot 200M /home ...原创 2014-05-10 09:07:54 · 69 阅读 · 0 评论 -
Linux下搭建nexus环境
tar xvzf nexus-oss-webapp-1.8.0.1-bundle.tar.gz cd /mapbar/tomcat/nexus-oss-webapp-1.8.0.1/bin/jsw/linux-x86-64 ./nexus start vi /mapbar/tomcat/nexus-oss-webapp-1.8.0.1/logs/wrapper.log ...原创 2014-05-10 09:07:36 · 72 阅读 · 0 评论 -
Linux下安装mongodb数据库
七。安装mongodb cd /mapbar/app/ tar xvf mongodb-linux-x86_64-2.0.3-rc0.tar mkdir mongodb [root@localhost mongodb]# mv mongodb-linux-x86_64-2.0.3-rc0 /mapbar/app/mongodb/ cd mongodb [root@local...原创 2014-05-10 09:07:18 · 108 阅读 · 0 评论 -
Linux下安装Postgis数据库
三。部署数据库: 都放到 /mapbar/app 下面 1. 安装postgres + postgis: [pgsql安装] tar -zxvf postgresql-8.2.23.tar.gz cd postgresql-8.2.23 #./configure --prefix=/mapbar/app/pgsql make make install...原创 2014-05-09 14:27:14 · 241 阅读 · 0 评论 -
Linux下安装JDK和Apache
安装版本的Linux为64位: 查看linux的版本是否为64位: getconf LONG_BIT 一。拷贝jdk linux 64 到 /mapbar/tools/ 里面 chmod +x jdk-6u31-linux-x64.bin ./jdk-6u31-linux-x64.bin jdk 已经被安装到:/mapbar/tools/j...原创 2014-05-09 14:27:05 · 159 阅读 · 0 评论 -
linux 服务自启动脚本-run.sh
#!/bin/sh curl=/usr/bin/curl tomcat_path=/mapbar/home/tomcat netty_path=/mapbar/home/tomcat/server-netty $tomcat_path/tomcat6_www_decode/bin/run.sh $tomcat_path/tomcat6_www_search/bin/run.s...原创 2014-05-04 15:36:06 · 1848 阅读 · 0 评论 -
Windows下 apache 和 tomcat的 负载均衡
1. 安装文件: httpd-2.2.25-win32-x86-no_ssl.msi tomcat-connectors-1.2.39-windows-i386-httpd-2.2.x.zip (必须是2.2.x 必须和apache对应上) 3个 tomcat 7 2. 修改3个tomcat 的shutdown server ajp3个端口 并能使程序单独启动...原创 2014-11-18 10:12:17 · 95 阅读 · 0 评论