netbean下搭建mariadb数据库
本人的操作系统Manjaro 最新版,mariadb版本为10.1.1,使用netbeasn开发java WEB,搭建过程如下:
1、安装数据库
pacman -S mariadb
2、启动数据库服务:
systemctl start mariadb(启动)
systemctl stop mariadb(关闭)
3、启动数据库:
mysql -u root -p,如果是首次安装,可能会有问题,参考http://blog.csdn.net/guochaoxxl/article/details/52603382
4、安装tomcat服务器
pacman -S tomcat8
5、启动tomcat服务
/user/share/tomcat8/bin/startup.sh
6、测试tomcat
在浏览器地址栏输入:localhost:8080,出现一个网页,含有猫头的页面,就算正常。
7、使用超级用户进入目录/etc/tomcat8
将除了目录Catalina之外的文件属性改为组用户和其他用户有读写权限,使用命令 chmod 666 catalina.policy catalina.properties context.xml logging.properties server.xml tomcat-users.xml tomcat-users.xsd web.xml
8、使用ls -l命令获取目录真正的位置
总用量 4
drwxr-xr-x 2 root root 4096 10月 25 02:31 bin
lrwxrwxrwx 1 root root 12 10月 25 02:31 conf -> /etc/tomcat8
lrwxrwxrwx 1 root root 23 10月 25 02:31 lib -> /usr/share/java/tomcat8
lrwxrwxrwx 1 root root 16 10月 25 02:31 logs -> /var/log/tomcat8
lrwxrwxrwx 1 root root 21 10月 25 02:31 temp -> /var/tmp/tomcat8/temp
lrwxrwxrwx 1 root root 24 10月 25 02:31 webapps -> /var/lib/tomcat8/webapps
lrwxrwxrwx 1 root root 21 10月 25 02:31 work -> /var/tmp/tomcat8/work
9、将/var/tmp/tomcat8/temp改为对普通用户可读写
10、将/var/lib/tomcat8/webapps改为对普通用户可读写
11、将/var/tmp/tomcat8/work改为对普通用户可读写
12、将/var/log/tomcat8改为对普通用户可读写
其中9-12可以使用右击->root Actions->Open File in Manager,输入超级用户密码,就可以用超级用户打开一个资源管理器,再依次右击每个文件夹,将其他用户改为读写,记得选中对所有文件夹下的也执行操作,全部完成后,即可。
13、若出现,tomcat已启动的提示信息,就手动将tomcat关掉,/usr/share/tomcat8/bin/shutdown.sh,记得使用超级用户即可。
14、再次编译部署,就可以运行了,如果部署成功,不能运行,主要可能是浏览器不合适,安装firefox即可,pacman -S firefox-kde即可。
netbean下搭建mariadb数据库的更多相关文章
- window下利用navicat访问Linux下的mariadb数据库
1.再Linux上成功安装mariadb数据库后,不管是在dos(敲命令mysql -h192.168.136.8 -uroot -p)下或者是navicat(创建连接)下连接mariadb数据库,会 ...
- linux下搭建mysql数据库
linux下搭建mysql数据库 1.下载mysql: http://dev.mysql.com/downloads/mysql/5.6.html#downloads wget http://dev. ...
- CentOS 7.0下配置MariaDB数据库
刚刚配置了下CentOS 7.0版本的服务器,配置数据库时发现# mysql_secure_installation命令用不了,之后网上查了一下发现CentOS 7.0版本用MariaDB替换了mys ...
- 搭建 mariadb 数据库主从同步
一.主(master)数据库配置 1. my.cnf 添加配置 [mariadb] log-bin server_id=1 log-basename=master1 binlog-format=mix ...
- Windows平台下搭建MySQL数据库
1.下载安装MySQL数据库: (1)->我的标签->软件下载->计算机相关专业所用软件---百度云链接下载->mysql-installer-community-5.7.18 ...
- linux下安装MariaDB数据库
搜素某个文件:find / -name '文件名(或文件夹名)' 1.编辑yum源:vi /etc/yum.repos.d/MariaDB.repo 2.编辑文件时用到的vi命令: vi 打开一个不存 ...
- Linux环境下搭建MYSQL数据库指令详情
一.mysql数据库的安装 确保安装gcc(开发工具) #groupadd mysql #useradd -g mysql mysql #cd /usr/local # tar -zxvf mysql ...
- 工程师技术(二):postfix基础邮件服务、postfix空客户端邮件服务、搭建mariadb数据库系统、配置一个数据库、使用数据库查询
一.postfix基础邮件服务 目标: 本例要求在虚拟机server0上配置 postfix 基础服务,具体要求如下: 1> 监听本机的所有接口 2> 将邮件域和邮件服务主机名都改为 ...
- MariaDB数据库自学一
在CentOS下安装Mariadb 数据库,命令: yum -y mariadb mariadb.server 等待几分钟后就可以自动完成安装了,然后启动对应的服务: systemctl start ...
随机推荐
- Java中的finally
基础用法: int f1() { try{ return 1; }finally { System.out.println("finall执行"); } } @Test publi ...
- mybatis的优缺点及应用场合
mybatis框架的优点 与jdbc相比,减少了50%以上的代码量 mybatis是最简单的持久化框架,小巧简单且易学 mybatis想到灵活,不会对应用程序或者数据库的现有设计强加任何影响,SQL写 ...
- 37.VUE学习之-表单的综合运用
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...
- python语言介绍
Python诞生于1989年,作者是吉多.范罗苏姆,人称龟叔,由C语言实现的. 1999年,基于python的web框架Zope 1诞生,标志着python向web领域迈出了第一步,现在这个框架好像不 ...
- VScode的settings.json配置
{ "editor.mouseWheelZoom": true, "astyle.additional_languages": [ "c", ...
- DOS中断及程序调用
http://www.cnblogs.com/ynwlgh/archive/2011/12/12/2285017.html
- Reachability from the Capital
题目描述 There are nn cities and mm roads in Berland. Each road connects a pair of cities. The roads in ...
- js:随记
typeof:没有大写,因为typeof是运算符 *1:是转数字 +string:是转数字,在Date对象上是getTime ""+:是转字符串 "":bool ...
- day09 threading, paramiko, queue 模块
1 模拟ssh 2 锁 内部锁,程序锁,信号量 3 多线程 4 简单消息队列 先来看模拟ssh ,python 的强大之处就是因为有很多模块,可以很简单的完成复杂的事情,今天我们用paramiko ...
- 53、listview、expandableListview如何选中时保持高亮?
一.listView被选中后保持高亮 70down voteaccepted To hold the color of listview item when you press it, include ...