jameslyy
- 浏览: 379912 次
- 性别:
- 来自: 北京
-
最近访客
社区版块
- ( 0)
- ( 101)
- ( 2)
最新评论
-
:
这个类运行不起来呀 这类如何导出数据呀
-
:
你好,请问我想写个exceltoexcel 另存一个excel ...
-
:
记录一下学习。
-
:
鞋的不错啊。呵呵额
-
jameslyy:
确认jacob dll是否已经放入系统路径,jacob版本不同 ...
文章列表
安装:
yum install -y epel-release && yum install -y supervisor
系统自启动
systemctl enable supervisord
systemctl start supervisord
systemctl is-enabled supervisord
systemctl status supervisord.service
服务管理
supervisorctl status [program]
supervisorctl restart [program]
supervisor ...
- 2023-11-29 19:42
- 浏览 10
- 分类:互联网
环境:centos
sudo yum install -y nginx
systemctl start nginx.service
systemctl enable nginx.service
systemctl status nginx
配置文件 nginx.conf
验证配置和加载配置
nginx -t
nginx -s reload
服务配置
server {
listen 443 ssl;
server_name xxx.com;
access_ ...
- 2023-11-29 19:38
- 浏览 9
- 分类:互联网
1. 编译
mvn clean package -pl prj01,prj02,prj03 -am -dmaven.test.skip=true
2. 安装jar包到本地仓库
mvn install:install-file
-dfile=servlet-api.jar
-dgroupid=javax.servlet
-dartifactid=javax.servlet-api
-dversion=4.0.0-b07
-dpackaging=jar
- 2019-09-18 14:49
- 浏览 306
- 分类:编程语言
1. fdisk -l 查看磁盘信息,可以看到是否有磁盘未挂载到系统
2. fdisk /dev/vdb 磁盘分区
首先选择 n 命令,添加新的分区
n add a new partition
后面的一路默认,直接回车就可以
3. mkfs.ext4 /dev/vdb1 格式化磁盘
4. mount /dev/vdb1 /data1 挂载磁盘
5. blkid 查看块设备属性
- 2017-10-17 11:10
- 浏览 491
- 分类:操作系统
- 博客分类:
1. pip install jupter
环境:mac os
a. pip install jupyter
permission denied: '/libarary/python/2.7/site=-packages/pyzmq-16.0.2.dist-info'
b. sudo pip install jupyter
the directory '/users/zhaoguifu/library/caches/pip/http' or its parent directory is not owned by the current user and ...
- 2017-04-27 21:27
- 浏览 477
- 分类:编程语言
- 博客分类:
1. args4j -- java
public class args {
@option(required = true, name = "-arg1", usage = "arg1, desc")
private string arg1;
@option(required = true, name = "-arg2", usage = "arg2, desc")
private string arg2;
@option(required = true, name = ...
- 2017-04-24 11:39
- 浏览 1151
- 分类:编程语言
- 博客分类:
http://www.jcraft.com/jsch
jsch jsch = new jsch();
channelsftp channelsftp = null;
session session = null;
try{
session = jsch.getsession(username, host, port);
session.setpassword(password);
properties config = new prop ...
- 2017-04-24 11:17
- 浏览 941
- 分类:编程语言
- 博客分类:
step 1 : install openssh package if not installed
sudo apt-get install openssh-server
step 2 : create separate group for sftp users.
sudo addgroup ftpaccess
step 3 : edit /etc/ssh/sshd_config file and make changes as below. find and comment below line.
#subsystem sftp /usr/lib/o ...
- 2017-04-24 11:00
- 浏览 612
- 分类:操作系统
- 博客分类:
import smtplib
from os.path import basename
from email.mime.application import mimeapplication
from email.mime.multipart import mimemultipart
from email.mime.text import mimetext
from email.utils import commaspace, formatdate
mail_host=''
mail_user=''
mail_pass=''
mail_postfix=''
d ...
- 2015-08-24 14:07
- 浏览 1264
- 分类:编程语言
- 博客分类:
1. cap
分布式领域cap理论:
consistency (一致性),即数据一致性,数据复制到n台机器,如果有更新,n机器的数据一起更新。
availability (可用性):好的响应性能,速度。
partition tolerance (分区容错性):节点的可扩展性。
cap理论主张任何基于网络的数据共享系统,都最多只能拥有以下三条中的两条:
数据一致性(c),等同于所有节点访问同一份最新的数据副本;
对数据更新具备高可用性(a);
能容忍网络分区(p)。
2. ciad
atomicity
consistency
isolation
d ...
- 2014-11-20 16:29
- 浏览 1031
- 分类:企业架构
- 博客分类:
java native access (jna)
jna provides java programs easy access to native shared libraries without writing anything but java code - no jni or native code is required. this functionality is comparable to windows' platform/invoke and python's ctypes.
jna allows you to call directly into nativ ...
- 2014-11-19 18:53
- 浏览 823
- 分类:编程语言
- 博客分类:
1. 修改root密码
mysql安装之后默认是没有密码的,可以使用mysqladmin命令修改:
mysqladmin -u root password password
如果root用户已经有了密码可以加上 -p 参数,命令行会提示输入原有密码。
mysqladmin -u root -p passwo ...
- 2014-09-10 16:25
- 浏览 949
- 分类:数据库
- 博客分类:
共享内存相关函数:
1. shmid = shmget(ipc_private, size, ipc_creat|0666 ) ;
创建共享内存,如果共享内存已经存在,则获取已经存在的共享内存。
一般不是使用ipc_private作为参数,可以使用 key_t mid = ftok("./ftok.tmp", 20); 获取共享内存的key。
2. void *shmat(int shmid, const void *shmaddr, int shmflg)
把共享内存区对象映射到调用进程的地址空间
3. int shmdt(const v ...
- 2014-09-04 18:11
- 浏览 832
- 分类:编程语言
- 博客分类:
测试jni时,遇到一个问题,在mac上执行如下命令编译c程序,可以正常通过编译。
inc='-i /usr/lib/jvm/jdk1.8.0_20/include -i /usr/lib/jvm/jdk1.8.0_20/include/linux'
g -shared $inc jni_helloworldimpl.cpp -o hello.so
但是在ubuntu上时遇到编译无法通过:提示加-fpic重新编译
/usr/bin/ld: /tmp/ccxhy6dg.o: relocation r_x86_64_32 against `.rodata' can n ...
- 2014-09-04 16:56
- 浏览 945
- 分类:编程语言
« 上一页 1 …