shell一键安装jemalloc
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root...
shell脚本批量设置mysql5.7 root密码
#!/bin/bash read -p "Enter mysql password": newpasswd sed -i "s/rocdk890/$newpasswd/g" /etc/init.d/mysqld_multi chmod +x /etc/init...
centos7单机安装mysql多实例
#!/bin/bash PATH=/bin:/sbin:/usr/bin:...
shell脚本一键自动安装mysql 5.7
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0"...
centos7安装mysql 5.7
shell脚本监控mysql主从同步状态
#!/bin/bash mysql_user="root" mysql_pass="password" my...
centos7一键安装mysql5.6脚本
#!/bin/bash PATH=/bin:/sbin:/us...
mysql数据库错误 Error writing file '/tmp/...' (Errcode: 28)
MySQL5.6.30低配机器的配置文件,最小资源占用
[mysqld] innodb_buffer_pool_size=5M innodb_log_buffer_size=256K query_cache_size=0 max_connections=10 key_buffer_size=8 thread_cache_size=0 host_cache_size=0 innodb_ft_cache_size=1600000 innodb_ft_total_cache_size=32000000 # per thread or per operation settings thread_stack=131072 sort_buffer_size...
shell批量删除指定mysql中的表
#!/bin/bash # 删除mysql中所有表 # 示例: # Usage: ./script user password dbnane # Usage: ./script user password...
docker安装gitlab+redis+mysql
今天公司要求在docker中安装gitlab+mysql,经过一天的折腾,终于搞定了.
系统:centos 6.5(64位)
1.先安装并启动docker
这一步就不再介绍了,大家看我之前的centos 6.5安装docker和jenkins文章吧.
2.安装准备
mkdir /srv/docker/gitlab/mysql -pv
mkdir /srv/docker/gitlab/redis -pv
mkdir /srv/docker/gitlab/gitlab -pv
mkdir /srv/docker/gitlab/log -pv
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/mysql
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/redis
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/gitlab
3.安装mysql redis gitlab...
centos yum安装php5.4+mysql5.5
这篇文章算yum安装lamp的升级版吧,默认在centos上yum安装php和mysql的话,版本比较低,当我们想用高版本的话,那就用其他yum源了,好了,来看安装教程吧.
系统:centos 5.x
需要软件包:
epel-release-5-4.noarch.rpm
remi-release-5.rpm
1.安装准备
##Install Remi Repository on RHEL/CentOS 5.0-5.9 - 32 Bit ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
##Install Remi Repository on RHEL/CentOS 5.0-5.9 - 64 Bit #...