luna

JumpServer本地部署

二次信任 提交于 2020-03-12 01:50:44
CentOS 7.7部署Jumpserver 系统: CentOS 7 IP: 172.16.75.1 目录: /opt 数据库: mariadb 代理: nginx 1.开始安装 防火墙 与 selinux 设置说明, 如果已经关闭了 防火墙 和 Selinux 的用户请跳过设置 systemctl stop firewalld setenfore 0 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config yum update -y #安装依赖包 yum -y install wget gcc epel-release git 安装 Redis, JumpServer 使用 Redis 做 cache 和 celery broke yum -y install redis systemctl enable redis systemctl start redis 安装mysql5.7 wget -nc http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm rpm -ivh mysql-community-release-el6-5.noarch.rpm yum -y install mysql-community

Jumpserver跳板机安装

ぃ、小莉子 提交于 2020-02-26 04:45:51
Jumpserver 1、jumpserver安装 1.1、环境介绍 系统: CentOS 7.4.1708 IP: 192.168.56.110 [root@linux-node1 ~]# uname -r 3.10.0-693.el7.x86_64 [root@linux-node1 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 1.2、关闭 selinux 和防火墙 [root@linux-node1 ~]# setenforce 0 # 可以设置配置文件永久关闭 [root@linux-node1 ~]# systemctl stop firewalld.service [root@linux-node1 ~]# systemctl disable firewalld.service [root@linux-node1 ~]# iptables -F [root@linux-node1 ~]# iptables-save 1.3、准备 Python3 和 Python 虚拟环境 (1)安装依赖包 [root@linux-node1 ~]# yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel

整合了一个命令行程序的框架

你离开我真会死。 提交于 2020-02-16 10:54:46
背景 最近工作中写了N多个命令行程序跑数据.每新建一个项目就要引用各种包,各种配置.所以有了这个整合包.其实不能算是框架吧,没写什么代码,几乎就是引用一些包. 代码 GitHub: https://github.com/lun3322/Luna.Service NuGet1: Install-Package Luna.Service NuGet2: Install-Package Luna.Service.Nlog Luna.Service 代码几乎都在这个包里.Starter在程序启动的时候加载.主要功能是扫描程序集注册相关类型进IOC Luna.Service.Nlog 这里包含了我常用的nlog配置,和一个启动器 关于使用 如果你也使用nlog写日志的话可以直接引用 Luna.Service.Nlog 包.关于日志的一个配置会自动加载到项目中 设置NLog.config文件编译时复制到输出目录 在Main方法中新增代码 ``` using (var starter = Starter.Create ()) { starter.Container.AddFacility (f => f.LogUsing ().WithConfig("NLog.config")); starter.Run(); } ``` 增加你的service像下面这样 ``` public

jumpserver2

我与影子孤独终老i 提交于 2020-01-30 15:43:40
测试环境 CPU: 64位双核处理器 内存: 4G DDR3 数据库:mysql 版本大于等于 5.6 mariadb 版本大于等于 5.5.6 环境 系统: CentOS 7 IP: 192.168.244.144 设置 selinux 和防火墙 $ firewall-cmd --zone=public --add-port=80/tcp --permanent # nginx 端口 $ firewall-cmd --zone=public --add-port=2222/tcp --permanent # 用户SSH登录端口 coco $ firewall-cmd --reload # 重新载入规则 $ setenforce 0 $ sed -i "s/enforcing/disabled/g" /etc/selinux/config # 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文 $ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 $ export LC_ALL=zh_CN.UTF-8 $ echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf 一、准备python3和python虚拟环境 1.1 安装依赖包 $ yum -y install wget gcc

Eclipse中安装JBoss Tools插件

放肆的年华 提交于 2019-12-26 15:29:26
1、先访问JBoss Tools网站,看看上面怎么说;   http://tools.jboss.org -》 进入下载界面 看到下面这句话: Drag and drop this icon into your active Eclipse Luna 4.4.2 workspace, or alternatively, search for " JBoss Tools (Luna) " in Eclipse via: Help > Eclipse Marketplace... You can also view the installation page on the Eclipse Marketplace . 2、上面说的很明显,打开 Eclipse Luna 4.4.2 -》进入 Help > Eclipse Marketplace ,然后搜索 JBoss Tools (Luna) ,我们发现能够找到该插件,选择“Install” 3、我们会发现东西很多,我们可以选择性安装,然后选择“Confirm” 4、再继续授权结束,等等安装结束 5、安装完后重启Eclipse即可 6、我们使用Hibernate /jboss tools来关联Mysql数据库生成javabean a、打开hibernate b、配置相关参数 c、运行配置,即可生成代码 来源: https://www

jumserver 3.0安装及采坑记录

十年热恋 提交于 2019-12-10 01:32:30
参考 https://blog.51cto.com/14226596/2420441 以及官方文档 https://www.jishuchi.com/read/Jumpserver-148/2102 补充笔者采坑处理 1.安装python3环境 1>更新epel-release $yum install -y python36 python36-devel python36-pip 2>安装python后,还要修改以下两个文件内容:   a)/usr/bin/yum   将第一行 #!/usr/bin/yum修改为:#!/usr/bin/python2.7   b) /usr/libexec/urlgrabber-ext-down   将 第一行#!/usr/bin/python修改为了#!/usr/bin/python2.7 再使用yum进行后面的安装 2.安装redis #1.检查是否有redis yum 源   yum install redis #2.下载fedora的epel仓库   yum install epel-release #3.安装redis数据库   yum install redis #4.安装完毕后,使用下面的命令启动redis服务   service redis start   service redis stop #查看redis进程  

比较稳定好用的 eclipse 版本

主宰稳场 提交于 2019-12-03 05:54:12
IT朋友 推荐的 这个 eclipse 版本,以前都是随便下载使用的。使用了这个版本后,确实感觉比其他版本好用一点,响应速度也快一些。听说这个 版本的 比 最新的版本稳定好一些。 下面给出下载地址: 总地址: http://eclipse.stu.edu.tw/technology/epp/downloads/release/luna/SR2/ win 64位地址 : http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32-x86_64.zip win 32位地址: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32.zip 来源: oschina 链接: https://my.oschina.net/u/2419285/blog/787159

MySQL 二进制文件恢复

匿名 (未验证) 提交于 2019-12-02 22:06:11
先不说话 先来一段代码块 1 mysql > show variables like ‘ autocommit ‘ ; 2 + -- -------------+-------+ 3 | Variable_name | Value | 4 + -- -------------+-------+ 5 | autocommit | ON | 6 + -- -------------+-------+ 7 1 row in set ( 0.00 sec) 8 9 mysql > set autocommit = 0 ; 10 Query OK, 0 rows affected ( 0.00 sec) 11 12 mysql > show variables like ‘ autocommit ‘ ; 13 + -- -------------+-------+ 14 | Variable_name | Value | 15 + -- -------------+-------+ 16 | autocommit | OFF | 17 + -- -------------+-------+ 18 1 row in set ( 0.00 sec) 19 20 21 mysql > show master status; 22 + -- ----------------+----------+-

Jumpserver跳板机入门

匿名 (未验证) 提交于 2019-12-02 21:59:42
1、jumpserver安装 1.1、环境介绍 ϵͳ: CentOS 7.4.1708 IP: 192.168.56.110 [root@linux-node1 ~]# uname -r 3.10.0-693.el7.x86_64 [root@linux-node1 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 1.2、关闭 selinux 和防火墙 [root@linux-node1 ~]# setenforce 0 # 可以设置配置文件永久关闭 [root@linux-node1 ~]# systemctl stop firewalld.service [root@linux-node1 ~]# systemctl disable firewalld.service [root@linux-node1 ~]# iptables -F [root@linux-node1 ~]# iptables-save 1.3、准备 Python3 和 Python 虚拟环境 (1)安装依赖包 [root@linux-node1 ~]# yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release

Eclipse Luna Crashed on XFCE

我与影子孤独终老i 提交于 2019-12-01 21:37:09
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized. (java:3554): GLib-GObject-WARNING **: cannot register existing type `GdkDisplayManager' (java:3554): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed (java:3554): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed (java:3554): GLib-GObject-WARNING **: invalid (NULL) pointer instance (java:3554): GLib-GObject-CRITICAL **: g_signal_connect_data: