centos7一键安装mysql5.6脚本
#!/bin/bash PATH=/bin:/sbin:/us...
#!/bin/bash PATH=/bin:/sbin:/us...
#!/bin/bash # -*- coding: UTF-8 -*- ############################################# #作者网名:Sunny # #作者博客:www.sunnyos.com ...
今天给大家说下怎么在docker容器redmine里进行安装和卸载插件,这里说的redmine是2.x和之后的版本,之前的版本没有测试过,所以低于这个版本的请略过.
系统:centos 6.5(64位)
软件版本:redmine 2.5.3
redmine_ckeditor 1.0.20
docker 1.7.1
1.启动redmine
docker怎么启动redmine,这里就不说了,毕竟连容器都无法启动的话,看这篇文章也没用.
2.把插件拷进docker里
wget https://github.com/a-ono/redmine_ckeditor/archive/1.0.20.zip
unzip 1.0.20.zip...
了解了很多公司现在开口就问你是否会监控,然后会问你是否会zabbix,我就搞不懂了现在这些公司怎么了,我用nagios怎么了,不会zabbix还要淘汰哇,今天就给大家个zabbix一键安装脚本,也方便大家部署.
系统:centos 6.5(64位)
脚本内容:
#!/bin/bash # install Nginx 1.8.x + mysql5.5.x + PHP-FPM 5.4.x + Zabbix 2.4.7 automatically. # Tested on CentOS 6.5 ############################################## # 变量 ############################################## err_echo(){ echo -e "\e[91m[Error]: $1 33[0m" exit 1 }...
在使用docker容器时,同时你docker里的系统正好是debian或ubuntu的时候,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim
1.安装 MariaDB repository
* 在64位系统上安装MariaDB 10.0
### CentOS 7.x 64位 MariaDB 10.0 ## cat <<EOF > /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/rhel7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF
一直都听说hhvm的性能怎么怎么好,速度怎么怎么快,就想自己也搭建个环境来测试下,在搭建的中途遇到的了各种坑,让我拖到今天才终于把hhvm搭建成功.好了,下面来看教程吧.
系统:centos 6.5(64位)
1.添加搭建hhvm需要的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
wget -O /etc/yum.repos.d/hop5.repo http://www.hop5.in/yum/el6/hop5.repo
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
或者
rpm -Uvh http://download.slogra.com/yum-x86_64/epel-release-6-8.noarch.rpm
yum -y install libmcrypt-devel glog-devel jemalloc-devel tbb-devel libdwarf-devel mysql-devel \
libxml2-devel libicu-devel pcre-devel gd-devel boost-devel sqlite-devel pam-devel \
bzip2-devel oniguruma-devel openldap-devel readline-devel libc-client-devel libcap-devel \
libevent-devel libcurl-devel libmemcached-devel
2.安装hhvm...
今天公司要求在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...
因公司项目的要求,让我在今天把docker和jenkins搭建起来,我在搭建成功后,把其中遇到的问题和解决办法记录下来分享给大家.
系统:centos 6.5(64位)
1.先查看内核是否是3.10
uname -r
如果不是3.10的执行下面的命令:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
安装kernel-lt(lt=long-ter...
其实当ruby安装成功后,然后在gem install --no-ri --no-rdoc rails的时候,报出了下面的错误:
Fetching: thread_safe-0.3.4.gem (100%) Successfully installed thread_safe-0.3.4 Fetching: minitest-5.5.1.gem (100%) Successfully installed minitest-5.5.1 Fetching: tzinfo-1.2.2.gem (100%) Successfully installed tzinfo-1.2.2 Fetching: i18n-0.7.0.gem (100%) Successfully installed i18n-0.7.0 Fetching: activesupport-4.2.0.gem (100%) Successfully installed activesupport-4.2.0 Fetching: rails-deprecated_sanitizer-1.0.3.gem (100%) Successfully installed rails-deprecated_sanitizer-1.0.3 Fetching: mini_portile-0.6.2.gem (100%) Successfully installed mini_portile-0.6.2 Fetching: nokogiri-1.6.6.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing rails...
今天新装的一台服务器,打算用yum安装gcc等程序,出现下面的问题:
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 285, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 136, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 434, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
self._getTsInfo(remove_only...