1、修改语言

  阿里云的ECS默认语言是:en_US.UTF-8,需要改成zh_CN.UTF-8

  修改方法:vim /etc/locale.conf,然后重启。

  查看方法:echo $LANG

2、安装ab(ApacheBench)

  1. [root@iZ23n2t9gynZ ~]# yum install httpd-tools
  2. 已加载插件:langpacks
  3. base | 3.6 kB 00:00:00
  4. epel | 4.3 kB 00:00:00
  5. extras | 3.4 kB 00:00:00
  6. updates | 3.4 kB 00:00:00
  7. (1/7): base/7/x86_64/group_gz | 154 kB 00:00:00
  8. (2/7): epel/x86_64/group_gz | 169 kB 00:00:00
  9. (3/7): epel/x86_64/updateinfo | 368 kB 00:00:00
  10. (4/7): extras/7/x86_64/primary_db | 87 kB 00:00:00
  11. (5/7): epel/x86_64/primary_db | 3.6 MB 00:00:00
  12. (6/7): base/7/x86_64/primary_db | 5.1 MB 00:00:01
  13. (7/7): updates/7/x86_64/primary_db | 4.0 MB 00:00:01
  14. 正在解决依赖关系
  15. --> 正在检查事务
  16. ---> 软件包 httpd-tools.x86_64.0.2.4.6-31.el7.centos.1 将被 安装
  17. --> 解决依赖关系完成
  18.  
  19. 依赖关系解决
  20.  
  21. =============================================================================================================================================================
  22. Package 架构 版本 大小
  23. =============================================================================================================================================================
  24. 正在安装:
  25. httpd-tools x86_64 2.4.6-31.el7.centos.1 updates 79 k
  26.  
  27. 事务概要
  28. =============================================================================================================================================================
  29. 安装 1 软件包
  30.  
  31. 总下载量:79 k
  32. 安装大小:168 k
  33. Is this ok [y/d/N]: y
  34. Downloading packages:
  35. httpd-tools-2.4.6-31.el7.centos.1.x86_64.rpm | 79 kB 00:00:00
  36. Running transaction check
  37. Running transaction test
  38. Transaction test succeeded
  39. Running transaction
  40. 正在安装 : httpd-tools-2.4.6-31.el7.centos.1.x86_64 1/1
  41. 验证中 : httpd-tools-2.4.6-31.el7.centos.1.x86_64 1/1
  42.  
  43. 已安装:
  44. httpd-tools.x86_64 0:2.4.6-31.el7.centos.1
  45.  
  46. 完毕!

3、安装mysql

  先查看yum上提供的数据库可下载版本

  1. [root@iZ23n2t9gynZ ~]# yum list | grep mysql
  2. akonadi-mysql.x86_64 1.9.2-4.el7 base
  3. apr-util-mysql.x86_64 1.5.2-6.el7 base
  4. calligra-kexi-driver-mysql.x86_64 2.9.7-1.el7 epel
  5. collectd-mysql.x86_64 5.5.0-2.el7 epel
  6. dmlite-plugins-mysql.x86_64 0.7.4-1.el7 epel
  7. dovecot-mysql.x86_64 1:2.2.10-4.el7_0.1 base
  8. dpm-copy-server-mysql.x86_64 1.8.10-1.el7 epel
  9. dpm-name-server-mysql.x86_64 1.8.10-1.el7 epel
  10. dpm-server-mysql.x86_64 1.8.10-1.el7 epel
  11. dpm-srm-server-mysql.x86_64 1.8.10-1.el7 epel
  12. dspam-mysql.x86_64 3.10.2-11.el7 epel
  13. exim-mysql.x86_64 4.84-4.el7 epel
  14. freeradius-mysql.x86_64 3.0.4-6.el7 base
  15. fts-mysql.x86_64 3.3.1-3.el7 epel
  16. gnokii-smsd-mysql.x86_64 0.6.31-10.el7 epel
  17. holland-mysqldump.noarch 1.0.10-3.el7 epel
  18. holland-mysqllvm.noarch 1.0.10-3.el7 epel
  19. lfc-server-mysql.x86_64 1.8.10-1.el7 epel
  20. libdbi-dbd-mysql.x86_64 0.8.3-16.el7 base
  21. libgda-mysql.x86_64 1:5.1.2-2.el7.1 epel
  22. libnss-mysql.x86_64 1.5-19.el7 epel
  23. libodb-mysql.x86_64 2.3.0-1.el7 epel
  24. libodb-mysql-devel.x86_64 2.3.0-1.el7 epel
  25. lighttpd-mod_mysql_vhost.x86_64 1.4.37-1.el7 epel
  26. mysql++.x86_64 3.1.0-12.el7 epel
  27. mysql++-devel.x86_64 3.1.0-12.el7 epel
  28. mysql++-manuals.x86_64 3.1.0-12.el7 epel
  29. mysql-connector-java.noarch 1:5.1.25-3.el7 base
  30. mysql-connector-odbc.x86_64 5.2.5-6.el7 base
  31. mysql-connector-python.noarch 1.1.6-1.el7 epel
  32. mysql-proxy.x86_64 0.8.5-2.el7 epel
  33. mysql-proxy-devel.x86_64 0.8.5-2.el7 epel
  34. mysql-utilities.noarch 1.3.6-1.el7 epel
  35. mysqlreport.noarch 3.5-11.el7 epel
  36. mysqltuner.noarch 1.2.0-7.el7 epel
  37. nagios-plugins-mysql.x86_64 2.0.3-3.el7 epel
  38. nodejs-mysql.noarch 2.3.2-1.el7 epel
  39. opendbx-mysql.x86_64 1.4.6-6.el7 epel
  40. opensips-mysql.x86_64 1.10.5-3.el7 epel
  41. owncloud-mysql.noarch 8.0.8-1.el7 epel
  42. pdns-backend-mysql.x86_64 3.4.6-1.el7 epel
  43. perdition-mysql.x86_64 2.1-2.el7 epel
  44. php-mysql.x86_64 5.4.16-36.el7_1 updates
  45. php-mysqlnd.x86_64 5.4.16-36.el7_1 updates
  46. php-pear-MDB2-Driver-mysql.noarch 1.5.0-0.8.b4.el7 epel
  47. php-pear-MDB2-Driver-mysqli.noarch 1.5.0-0.8.b4.el7 epel
  48. proftpd-mysql.x86_64 1.3.5a-1.el7 epel
  49. qt-mysql.i686 1:4.8.5-8.el7 base
  50. qt-mysql.x86_64 1:4.8.5-8.el7 base
  51. qt5-qtbase-mysql.x86_64 5.4.2-1.el7 epel
  52. redland-mysql.x86_64 1.0.16-6.el7 base
  53. root-sql-mysql.x86_64 5.34.32-3.el7 epel
  54. rsyslog-mysql.x86_64 7.4.7-7.el7_0 base
  55. soci-mysql.x86_64 3.2.3-1.el7 epel
  56. soci-mysql-devel.x86_64 3.2.3-1.el7 epel
  57. voms-mysql-plugin.x86_64 3.1.6-5.el7 epel
  58. zabbix20-proxy-mysql.x86_64 2.0.15-1.el7 epel
  59. zabbix20-server-mysql.x86_64 2.0.15-1.el7 epel
  60. zabbix20-web-mysql.noarch 2.0.15-1.el7 epel
  61. zabbix22-dbfiles-mysql.noarch 2.2.10-1.el7 epel
  62. zabbix22-proxy-mysql.x86_64 2.2.10-1.el7 epel
  63. zabbix22-server-mysql.x86_64 2.2.10-1.el7 epel
  64. zabbix22-web-mysql.noarch 2.2.10-1.el7 epel

  然后安装mariadb

  1. [root@iZ23n2t9gynZ ~]# yum install mariadb mariadb-server
  2. 已加载插件:langpacks
  3. 软件包 1:mariadb-5.5.44-1.el7_1.x86_64 已安装并且是最新版本
  4. 正在解决依赖关系
  5. --> 正在检查事务
  6. ---> 软件包 mariadb-server.x86_64.1.5.5.44-1.el7_1 将被 安装
  7. --> 正在处理依赖关系 perl-DBI,它被软件包 1:mariadb-server-5.5.44-1.el7_1.x86_64 需要
  8. --> 正在处理依赖关系 perl-DBD-MySQL,它被软件包 1:mariadb-server-5.5.44-1.el7_1.x86_64 需要
  9. --> 正在处理依赖关系 perl(DBI),它被软件包 1:mariadb-server-5.5.44-1.el7_1.x86_64 需要
  10. --> 正在检查事务
  11. ---> 软件包 perl-DBD-MySQL.x86_64.0.4.023-5.el7 将被 安装
  12. ---> 软件包 perl-DBI.x86_64.0.1.627-4.el7 将被 安装
  13. --> 正在处理依赖关系 perl(RPC::PlServer) >= 0.2001,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
  14. --> 正在处理依赖关系 perl(RPC::PlClient) >= 0.2000,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
  15. --> 正在检查事务
  16. ---> 软件包 perl-PlRPC.noarch.0.0.2020-14.el7 将被 安装
  17. --> 正在处理依赖关系 perl(Net::Daemon) >= 0.13,它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
  18. --> 正在处理依赖关系 perl(Net::Daemon::Test),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
  19. --> 正在处理依赖关系 perl(Net::Daemon::Log),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
  20. --> 正在处理依赖关系 perl(Compress::Zlib),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
  21. --> 正在检查事务
  22. ---> 软件包 perl-IO-Compress.noarch.0.2.061-2.el7 将被 安装
  23. --> 正在处理依赖关系 perl(Compress::Raw::Zlib) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
  24. --> 正在处理依赖关系 perl(Compress::Raw::Bzip2) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
  25. ---> 软件包 perl-Net-Daemon.noarch.0.0.48-5.el7 将被 安装
  26. --> 正在检查事务
  27. ---> 软件包 perl-Compress-Raw-Bzip2.x86_64.0.2.061-3.el7 将被 安装
  28. ---> 软件包 perl-Compress-Raw-Zlib.x86_64.1.2.061-4.el7 将被 安装
  29. --> 解决依赖关系完成
  30.  
  31. 依赖关系解决
  32.  
  33. =============================================================================================================================================================
  34. Package 架构 版本 大小
  35. =============================================================================================================================================================
  36. 正在安装:
  37. mariadb-server x86_64 1:5.5.44-1.el7_1 updates 11 M
  38. 为依赖而安装:
  39. perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k
  40. perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k
  41. perl-DBD-MySQL x86_64 4.023-5.el7 base 140 k
  42. perl-DBI x86_64 1.627-4.el7 base 802 k
  43. perl-IO-Compress noarch 2.061-2.el7 base 260 k
  44. perl-Net-Daemon noarch 0.48-5.el7 base 51 k
  45. perl-PlRPC noarch 0.2020-14.el7 base 36 k
  46.  
  47. 事务概要
  48. =============================================================================================================================================================
  49. 安装 1 软件包 (+7 依赖软件包)
  50.  
  51. 总下载量:12 M
  52. 安装大小:59 M
  53. Is this ok [y/d/N]: y
  54. Downloading packages:
  55. (1/8): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00
  56. (2/8): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00
  57. (3/8): perl-DBD-MySQL-4.023-5.el7.x86_64.rpm | 140 kB 00:00:00
  58. (4/8): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:00
  59. (5/8): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00
  60. (6/8): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00
  61. (7/8): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00
  62. (8/8): mariadb-server-5.5.44-1.el7_1.x86_64.rpm | 11 MB 00:00:02
  63. -------------------------------------------------------------------------------------------------------------------------------------------------------------
  64. 总计 5.1 MB/s | 12 MB 00:00:02
  65. Running transaction check
  66. Running transaction test
  67. Transaction test succeeded
  68. Running transaction
  69. 正在安装 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 1/8
  70. 正在安装 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 2/8
  71. 正在安装 : perl-IO-Compress-2.061-2.el7.noarch 3/8
  72. 正在安装 : perl-Net-Daemon-0.48-5.el7.noarch 4/8
  73. 正在安装 : perl-PlRPC-0.2020-14.el7.noarch 5/8
  74. 正在安装 : perl-DBI-1.627-4.el7.x86_64 6/8
  75. 正在安装 : perl-DBD-MySQL-4.023-5.el7.x86_64 7/8
  76. 正在安装 : 1:mariadb-server-5.5.44-1.el7_1.x86_64 8/8
  77. 验证中 : perl-Net-Daemon-0.48-5.el7.noarch 1/8
  78. 验证中 : 1:mariadb-server-5.5.44-1.el7_1.x86_64 2/8
  79. 验证中 : perl-IO-Compress-2.061-2.el7.noarch 3/8
  80. 验证中 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 4/8
  81. 验证中 : perl-PlRPC-0.2020-14.el7.noarch 5/8
  82. 验证中 : perl-DBI-1.627-4.el7.x86_64 6/8
  83. 验证中 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 7/8
  84. 验证中 : perl-DBD-MySQL-4.023-5.el7.x86_64 8/8
  85.  
  86. 已安装:
  87. mariadb-server.x86_64 1:5.5.44-1.el7_1
  88.  
  89. 作为依赖被安装:
  90. perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBD-MySQL.x86_64 0:4.023-5.el7 perl-DBI.x86_64 0:1.627-4.el7
  91. perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7
  92.  
  93. 完毕!

  启动mariadb

  1. [root@iZ23n2t9gynZ ~]# systemctl start mariadb

  开机自动启动

  1. [root@iZ23n2t9gynZ ~]# systemctl enable mariadb
  2. ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'

  设置root密码

  1. [root@iZ23n2t9gynZ ~]# mysql_secure_installation
  2. /usr/bin/mysql_secure_installation:行379: find_mysql_client: 未找到命令
  3.  
  4. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  5. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  6.  
  7. In order to log into MariaDB to secure it, we'll need the current
  8. password for the root user. If you've just installed MariaDB, and
  9. you haven't set the root password yet, the password will be blank,
  10. so you should just press enter here.
  11.  
  12. Enter current password for root (enter for none):
  13. OK, successfully used password, moving on...
  14.  
  15. Setting the root password ensures that nobody can log into the MariaDB
  16. root user without the proper authorisation.
  17.  
  18. Set root password? [Y/n] y
  19. New password:
  20. Re-enter new password:
  21. Password updated successfully!
  22. Reloading privilege tables..
  23. ... Success!
  24.  
  25. By default, a MariaDB installation has an anonymous user, allowing anyone
  26. to log into MariaDB without having to have a user account created for
  27. them. This is intended only for testing, and to make the installation
  28. go a bit smoother. You should remove them before moving into a
  29. production environment.
  30.  
  31. Remove anonymous users? [Y/n] y
  32. ... Success!
  33.  
  34. Normally, root should only be allowed to connect from 'localhost'. This
  35. ensures that someone cannot guess at the root password from the network.
  36.  
  37. Disallow root login remotely? [Y/n] y
  38. ... Success!
  39.  
  40. By default, MariaDB comes with a database named 'test' that anyone can
  41. access. This is also intended only for testing, and should be removed
  42. before moving into a production environment.
  43.  
  44. Remove test database and access to it? [Y/n] y
  45. - Dropping test database...
  46. ... Success!
  47. - Removing privileges on test database...
  48. ... Success!
  49.  
  50. Reloading the privilege tables will ensure that all changes made so far
  51. will take effect immediately.
  52.  
  53. Reload privilege tables now? [Y/n] y
  54. ... Success!
  55.  
  56. Cleaning up...
  57.  
  58. All done! If you've completed all of the above steps, your MariaDB
  59. installation should now be secure.
  60.  
  61. Thanks for using MariaDB!

  登录测试

  1. [root@iZ23n2t9gynZ ~]# mysql -uroot -p
  2. Enter password:
  3. Welcome to the MariaDB monitor. Commands end with ; or \g.
  4. Your MariaDB connection id is 13
  5. Server version: 5.5.44-MariaDB MariaDB Server
  6.  
  7. Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
  8.  
  9. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  10.  
  11. MariaDB [(none)]>

4、安装redis

  1. yum install -y tcl

wget http://download.redis.io/redis-stable.tar.gz

tar xvzf redis-stable.tar.gz

cd redis-stable

make

 cd src

 make test

  配置redis

  1. cd /root/redis-stable
  2.  
  3. cp redis.conf /usr/local/bin
  4.  
  5. cd src
  6.  
  7. cp redis-server /usr/local/bin
  8.  
  9. cp redis-cli /usr/local/bin

  配置redis.conf(vim /usr/local/bin/redis.conf)

  1. daemonize yes
  2.  
  3. port 26125
  4.  
  5. bind 127.0.0.1
  6.  
  7. # save 900 1
  8.  
  9. # save 300 10
  10.  
  11. # save 60 10000
  12.  
  13. maxclients 60000
  14.  
  15. maxmemory 500mb

  启动与客户端连接

  1. [root@iZ23n2t9gynZ ~]# redis-server /usr/local/bin/redis.conf
  2. [root@iZ23n2t9gynZ ~]# redis-cli -p 26125
  3. 127.0.0.1:26125> info
  4. # Server
  5. redis_version:3.0.5
  6. redis_git_sha1:00000000
  7. redis_git_dirty:0
  8. redis_build_id:8960fb2f771de35e
  9. redis_mode:standalone
  10. os:Linux 3.10.0-123.9.3.el7.x86_64 x86_64
  11. arch_bits:64
  12. multiplexing_api:epoll
  13. gcc_version:4.8.2
  14. process_id:32538
  15. run_id:2b0eb3b85cfcb8c3d37157e12756d6b0bcdcc467
  16. tcp_port:26125
  17. uptime_in_seconds:68
  18. uptime_in_days:0
  19. hz:10
  20. lru_clock:2251601
  21. config_file:/usr/local/bin/redis.conf
  22.  
  23. # Clients
  24. connected_clients:1
  25. client_longest_output_list:0
  26. client_biggest_input_buf:0
  27. blocked_clients:0
  28.  
  29. # Memory
  30. used_memory:3416888
  31. used_memory_human:3.26M
  32. used_memory_rss:9699328
  33. used_memory_peak:3416888
  34. used_memory_peak_human:3.26M
  35. used_memory_lua:36864
  36. mem_fragmentation_ratio:2.84
  37. mem_allocator:jemalloc-3.6.0
  38.  
  39. # Persistence
  40. loading:0
  41. rdb_changes_since_last_save:0
  42. rdb_bgsave_in_progress:0
  43. rdb_last_save_time:1445092109
  44. rdb_last_bgsave_status:ok
  45. rdb_last_bgsave_time_sec:-1
  46. rdb_current_bgsave_time_sec:-1
  47. aof_enabled:0
  48. aof_rewrite_in_progress:0
  49. aof_rewrite_scheduled:0
  50. aof_last_rewrite_time_sec:-1
  51. aof_current_rewrite_time_sec:-1
  52. aof_last_bgrewrite_status:ok
  53. aof_last_write_status:ok
  54.  
  55. # Stats
  56. total_connections_received:2
  57. total_commands_processed:2
  58. instantaneous_ops_per_sec:0
  59. total_net_input_bytes:42
  60. total_net_output_bytes:3849
  61. instantaneous_input_kbps:0.00
  62. instantaneous_output_kbps:0.00
  63. rejected_connections:0
  64. sync_full:0
  65. sync_partial_ok:0
  66. sync_partial_err:0
  67. expired_keys:0
  68. evicted_keys:0
  69. keyspace_hits:0
  70. keyspace_misses:0
  71. pubsub_channels:0
  72. pubsub_patterns:0
  73. latest_fork_usec:0
  74. migrate_cached_sockets:0
  75.  
  76. # Replication
  77. role:master
  78. connected_slaves:0
  79. master_repl_offset:0
  80. repl_backlog_active:0
  81. repl_backlog_size:1048576
  82. repl_backlog_first_byte_offset:0
  83. repl_backlog_histlen:0
  84.  
  85. # CPU
  86. used_cpu_sys:0.02
  87. used_cpu_user:0.06
  88. used_cpu_sys_children:0.00
  89. used_cpu_user_children:0.00
  90.  
  91. # Cluster
  92. cluster_enabled:0
  93.  
  94. # Keyspace
  95. 127.0.0.1:26125>

环境配置完了。

遇到的问题:

  1. 出错信息:cc:未找到命令
  2. 解决办法:提示cc:未找到命令,原因是虚拟机系统中缺少gcc,安装一下gcc即可解决问题,下面看一下完整的安装过程。
  3. yum -y install gcc automake autoconf libtool make
  1. 出错信息:In file included from adlist.c:34:0:
  2. 解决办法:make MALLOC=libc
    转载自:http://www.cnblogs.com/ha666/p/4888330.html

centos下安装redis/mysql等基础环境的更多相关文章

  1. Centos下安装Redis

    转自:http://nnzhp.cn/article/9/ 遇到问题,安装后并启动,redis-cli报错:Could not connect to Redis at 127.0.0.1:6379: ...

  2. (转载)——Centos下安装Redis(原文地址:http://www.nnzhp.cn/archives/169)

    原文地址:http://www.nnzhp.cn/archives/169 今天介绍一下redis,重点介绍一下redis的安装. Redis 是一个基于内存的高性能key-value数据库,数据都保 ...

  3. CentOS下安装Redis及Redis的PHP扩展

    1.安装Redis 1.1 如果没有安装wget,安装wget yum install wget 1.2 在http://redis.io/download页面查看redis版本,并下载安装 wget ...

  4. 在CentOS下安装配置MySQL(转)

    今天刚把项目做完,需要马上部署到新到的测试服务器上,于是乎,要在服务器上安装环境,由于好久在linux上部署了,手有些生,比较费劲装完,现在把重要步骤贴出,供自己以后参照.1.首先要看看有没有已经安装 ...

  5. 【转载】Linux(CentOS)下安装Redis

    转载地址:https://blog.csdn.net/diweikang/article/details/78784631 1.下载Redis下载最新Linux版本的Redis,我用的是redis-4 ...

  6. centos 下安装redis

    一.安装redis 第一步:下载redis安装包 redis下载地址 wget http://download.redis.io/releases/redis-5.0.3.tar.gz 第二步:解压压 ...

  7. CentOS下安装Redis(转载)

    Redis是一个高性能的,开源key-value型数据库.是构建高性能,可扩展的Web应用的完美解决方案,可以内存存储亦可持久化存储.因为要使用跨进程,跨服务级别的数据缓存,在对比多个方案后,决定使用 ...

  8. centos下安装redis(记录其中踩坑的过程)

    一.先下载到redis-3.0.4.tar.gz包(本文以3.0.4版本为例) 我将这个包放在/opt目录下,在/opt下并解压这个包 tar -zxvf redis-.tar.gz 然后进入redi ...

  9. Linux centos 下安装redis

    一.安装编译工具及库文件      yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 二.选择安装文件 ...

随机推荐

  1. 从Oracle Database 角度来看浪潮天梭K1主机的操作系统选择

    背景: 浪潮天梭k1主机.事实上分好几个类别: K1-950 intel 安腾cpu K1-930 intel 安腾cpu K1-910 intel 安腾cpu K1-800 intel 志强cpu ...

  2. hdu5249 Tricks Device(网络流最大匹配)

    分析题意可知: 1.最少须要切断多少边使吴不能找到张(题意吴仅仅能走最短路径上面的边),对从起点到终点的最短路径又一次建图,每条边的权值为1.求最大流就可以 2.在吴能够找到张的前提下,最多能够切断边 ...

  3. 一些标签库的学习和do的讨论

    JSTL 核心标签库http://www.cnblogs.com/lihuiyy/archive/2012/02/24/2366806.html .do的讨论http://bbs.csdn.net/t ...

  4. sql的系统关键字的概述

    create proc proc_B as SELECT * FROM [ZkbTest].[dbo].[T_ZKB] exec sp_helptext proc_B select * from sy ...

  5. Threading and Tasks in Chrome

    Threading and Tasks in Chrome Contents Overview Threads Tasks Prefer Sequences to Threads Posting a ...

  6. 【Git 二】Windows|Mac 安装 Git

    Windows 或 Mac 上安装 Git 相对于 Linux 上安装来说步骤是简便一些的.Linux 安装步骤见:[Git 一]Linux安装Git 一.Windows 安装 Git 直接下载对应 ...

  7. 【转载】Perl中字符串编码的处理

    在 Perl看来, 字符串只有两种形式. 一种是octets, 即8位序列, 也就是我们通常说的字节数组. 另一种utf8编码的字符串, perl管它叫string. 也就是说: Perl只熟悉两种编 ...

  8. 极速响应Excel数据报表请求的一种方法

    摘要 通过缓存和维护Excel Workbook实例,极速响应Excel数据报表请求. 这是一个真实的大数据"云计算"项目中的解决方案,在给定的时间和资源下,只有这种方法是最简单并 ...

  9. C#调用C/C++动态库,封装各种复杂结构体

    C#调用C/C++动态库,封装各种复杂结构体. 标签: c++结构内存typedefc# 2014-07-05 12:10 6571人阅读 评论(1) 收藏 举报  分类: C(8)  C#(6)  ...

  10. Java Web学习总结(20)——基于ZooKeeper的分布式session实现

    1.   认识ZooKeeper ZooKeeper-- "动物园管理员".动物园里当然有好多的动物,游客可以根据动物园提供的向导图到不同的场馆观赏各种类型的动物,而不是像走在原始 ...