![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
henry_韩
这个作者很懒,什么都没留下…
展开
-
linux tomcat 绑定域名
1、解析域名到对应的服务器ip2、找到tomcat安装路径进入/conf3、vi server.xml4、修改改为5、在后面加上 /项目名(可不写)" unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false"> 6、保存serve原创 2016-03-30 11:19:53 · 1563 阅读 · 1 评论 -
linux使用shell一键安装git
git_dir="/home/software"if [ ! -d "$git_dir" ];then mkdir -p $git_dirficd $git_dirgit_gz=$(find `dirname $git_dir` -name *git*.tar.gz)if [ ! -e "$git_gz" ];then wget -O git-2.17.0.tar....原创 2019-03-05 17:57:21 · 848 阅读 · 1 评论 -
linux mysql启动异常:The server quit without updating PID file
[root@henry mysql]# service mysql startStarting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/data/henry.pid).检查安装目录下的 xxx.err 文件 </usr/local/mysql/data/xxx.err>201...原创 2018-07-11 11:24:48 · 5115 阅读 · 0 评论 -
linux mysql 修改密码、连接权限、端口 基础操作
安装成功后修改默认密码1、进入 mysql安装目录/bin2、执行 ./mysql -u root -p3、切换数据库 use mysql;4、update user set password=PASSWORD('xxxxxx') where user='root';------------------------------------------------------------------...原创 2018-03-16 11:17:58 · 462 阅读 · 0 评论 -
linux使用shell一键安装tomcat 并更改访问端口为 80
#!/bin/shsduo susofeware_file="/home/sofeware"tomcat_dir="/usr/local/webserver/tomcat"get_tomcat_url=https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.79/bin/apache-tomcat-7.0.79.tar.gz...原创 2018-03-16 11:08:59 · 1550 阅读 · 0 评论 -
linux使用shell一键安装jdk
#sudo su#create java dirjava -versionif [ $? -eq 0 ]; then read -p "The JDK already exists, do you need to continue to install it?(y/n) " name if [ "n" = "$name" ]; then exit 0 fifigetAZ_file=ht...原创 2018-03-16 11:04:23 · 1645 阅读 · 0 评论 -
linux使用shell一键安装mysql
#!/bin/shgroup=mysqluser=mysql#create group if not existsegrep "^$group" /etc/group >& /dev/nullif [ $? -ne 0 ]then groupadd $groupfi#create user if not existsegrep "^$user" /etc/passwd >&a...原创 2018-03-16 10:30:43 · 1229 阅读 · 0 评论 -
linux shell 安装webbench压测工具
#!/bin/shsofeware="/home/sofeware"zxFile="/usr/local/man/man1"if [ ! -d "${sofeware}" ];then mkdir -p ${sofeware}ficd /home/sofewarewget http://zyan.cc/soft/linux/webbench/webbench-1.5.tar.gz...原创 2018-03-15 16:02:09 · 217 阅读 · 0 评论 -
linux使用shell脚本安装redis 4.0.6
#!/bin/shsofeware_file="/home/sofeware"get_redis_url="http://download.redis.io/releases/redis-4.0.2.tar.gz"redis_dir="/usr/local/webserver/redis"if [ -n "$1" ];then get_redis_url=$1fiif [ -n "...原创 2018-03-15 15:55:25 · 572 阅读 · 0 评论 -
centOS7 iptables防火墙配置脚本
#先检查是否安装了iptablesservice iptables statusif [ $? -eq 0 ];then echo "已安装了iptables"else #安装iptables yum install -y iptables #安装iptables-services yum install iptables-services #禁用/停止自带的firewall原创 2017-07-25 12:58:00 · 1050 阅读 · 0 评论 -
Shell脚本 centOS7中自动安装Tomcat7
#切换sduo sutomcat_dir="/usr/local/tomcat"#创建tomcat文件夹if [ ! -d "$tomcat_dir" ];then mkdir $tomcat_dirficd $tomcat_dir#远程获取tomcatif [ ! -d "apache-tomcat-7.0.79.tar.gz" ];then wget https原创 2017-07-25 08:33:32 · 385 阅读 · 1 评论 -
Shell脚本 centOS7中自动安装JDK
#切换到root权限sudo su#create java dirjava_file="/usr/local/java"if [ ! -d "$java_file" ];then mkdir $java_fileficd /usr/local/javaif [ ! -f "jdk-8u131-linux-x64.tar.gz" ];then wget --no...原创 2017-07-24 13:27:24 · 4801 阅读 · 2 评论 -
Aliyun linux5.7 64位安装 reids3.2.1
1、下载redis安装包 下载路径http://redis.io/download 我使用的是redis3.2.12、传递到linux服务器中的home目录下3、解压 tar zxvf redis-3.2.1cd redis-3.2.1编译: makecd src && make install4、移动文件,便于管理mkdir -p /usr/local/redis/...原创 2016-06-21 15:03:58 · 294 阅读 · 0 评论 -
Aliyun linux5.7 64位 配置多个tomcat
将安装好的tomcat复制一台1.cp -r /usr/local/tomcat /usr/local/tomcat12.修改 linux 的profile文件,文件路径 /etc/profile# jdkexport JAVA_HOME=/usr/java/jdk1.7.0_67export CLASSPATH=.:$JAVA_HOME/lib/dt.jar原创 2016-06-02 16:20:51 · 374 阅读 · 0 评论 -
Aliyun linux5.7 64位 安装 mysql5.6.4
安装mysql前的准备工作groupadd mysql //创建mysql组useradd -g mysql mysql //创建mysql用户添加到mysql组我下载的是mysql-5.6.4-m7-tar.zip1、unzip mysql-5.6.4-m7-tar.zip 会生成mysql-5.6.4-m7-tar.gz的压缩文件2、tar -z原创 2016-04-05 17:41:40 · 1093 阅读 · 0 评论 -
Aliyun linux5.7 64位 安装 jdk1.7
1、下载jdk-7-linux-i586.rpm2、将jdk-7-linux-i586.rpm copy 到linux中3、执行 rpm -ivh jdk-7-linux-i586.rpm4、配置环境变量 sudo vi /etc/profile(vi 无权限修改)5、最后面加 export JAVA_HOME=/usr/java/jdk1.7.0_67export CLASS原创 2016-03-28 16:57:57 · 533 阅读 · 0 评论 -
linux 远程拉取码云上git代码 shell脚本
#/bin/sh# git yum安装 检查git 是否存在 存在不安装git --versionif [ $? -ne 0 ];thenyum install gitif [ $? -ne 0 ];then echo "yum安装失败!" exit 0fifigetParam(){read -p $1 param errorif [[ $error =~ ...原创 2019-03-05 17:59:39 · 5382 阅读 · 0 评论