注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

阿弥陀佛

街树飘影未见尘 潭月潜水了无声 般若观照心空静...

 
 
 

日志

 
 
关于我

一直从事气象预报、服务建模实践应用。 注重气象物理场、实况场、地理信息、本体知识库、分布式气象内容管理系统建立。 对Barnes客观分析, 小波,计算神经网络、信任传播、贝叶斯推理、专家系统、网络本体语言有一定体会。 一直使用Java、Delphi、Prolog、SQL编程。

网易考拉推荐

centos7 下安装Mysql--mariadb 和ramadda  

2014-11-04 23:01:34|  分类: Ramadda |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
yum install mariadb*
yum search mariadb
systemctl start mariadb.service

设置为centos7启动后自动运行
systemctl enable mariadb.service
systemctl stop mariadb.service         #<-- 停止 mariadb server
systemctl restart mariadb.service      #<-- 重启 mariadb server
systemctl disable mariadb.service      #<-- 关闭 mariadb server
systemctl is-active mariadb.service    #<-- mariadb server 是否在运行


安装完后,开始设置Mariadb数据库
/usr/bin/mysql_secure_installation

到此Mariadb安装并设置完毕,接下来可以测试一下:
mysql -u root -p
show variables like "character%";
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
#gedit /etc/my.cnf
[mysqld]
character-set-server=utf8
#systemctl restart mariadb.service
MariaDB [(none)]> show variables like "character%";
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+

create database china;
============================================================
yum -y install tomcat*
systemctl enable tomcat.service
cp repository.war /var/lib/tomcat/webapps

============================================================
gedit /var/lib/tomcat/webapps/repository/WEB-INF/repository.properties

##This properties file allows you to configure your RAMADDA installation
##Its probably best to just define the ramadda_home property to point to
##some directory where ramadda looks for another repository.properties file,
#and where it stores data, files, etc.
##Copy this properties file into that directory in order to do a full
##configuration. That way there is a minimal change to do in the tomcat
##installation area

##An alternative way to to define ramadda_home is as an environment variable
##of the tomcat process.

ramadda_home=/home/hxf/ramadda_home
ramadda.language.default=zh-cn
ramadda.localfilepaths=/home/hxf/wk/产品/\n/wk/

##Here are the basic configuration options. See the installation documentation for more


## Database configuration
##What database to use
#ramadda.db=derby
ramadda.db=mysql
#ramadda.db=postgres

#If you are using mysql define the user name and password
ramadda.db.mysql.driver=com.mysql.jdbc.Driver
ramadda.db.mysql.url=jdbc:mysql://localhost:3306/china?zeroDateTimeBehavior=convertToNull&initialTimeout=1000&connectTimeout=5000
ramadda.db.mysql.user=root
ramadda.db.mysql.password=xxxxxxx


#If you are using postgres define the user name and password
ramadda.db.postgres.user=ramadda
ramadda.db.postgres.password=somepassword


##If you have ssl enabled on your tomcat server then set this to true
ramadda.sslenabled=false


##The url root
ramadda.html.urlbase=/china

ramadda.delete_entry_when_file_is_missing=true
##ramadda.map.layers=esri.topo;google.terrain
#ramadda.map.layers=esri.topo
ramadda.map.extras=china.map,esri.topo
##ramadda.map.layers=ms.aerial
##ramadda.map.layers=wms:OpenLayers WMS,http://vmap0.tiles.osgeo.org/wms/vmap0,basic
===================================================================================
gedit /home/hxf/tomcat/conf/server.xml
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               URIEncoding="UTF-8" />
  评论这张
 
阅读(519)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017