bin

Centos7安装Tomcat7,并上传JavaWeb项目

耗尽温柔 提交于 2019-12-12 15:39:28
一.需要的工具(其他连接工具也行) 1.Xshell 2.XFTP 1.1首先将Tomcat7的压缩文件利用XFTP上传到Centos7系统上的 /etc/local/tomcat中 1.2 解压文件,并删除压缩文件(上图是解压好之后的文件!) tar zxvf apache-tomcat-7.0.96.tar.gz rm -f apache-tomcat-7.0.96.tar.gz 2 1 tar zxvf apache-tomcat-7.0.96.tar.gz 2 rm -f apache-tomcat-7.0.96.tar.gz 二.修改配置文件 2.1 进入 tomcat 的 bin 目录后通过 vi 命令打开 catalina.sh 文件,并在其中加入如下配置: 复制下面的命令,加入到 catalina.sh文件中, 将jdk和tomcat修改为自己的版本 export TOMCAT_HOWE=/usr/local/tomcat/apache-tomcat-7.0.96 export CATAL INA_HOME=/usr/local/tomcat/apache-tomcat-7.0.96 export JRE_HOME=/usr/local/jdk/jdk1.8.0_221/jre export JAVA_HONE=/usr/local/jdk/jdk1.8.0_221

linux常用各种软件命令

只愿长相守 提交于 2019-12-12 12:59:59
apache启动、停止、重启命令 基本的操作方法: 本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况 apahce启动命令: 推荐/usr/local/apache2/bin/apachectl start apaceh启动 apache停止命令 /usr/local/apache2/bin/apachectl stop 停止 apache重新启动命令: /usr/local/apache2/bin/apachectl restart 重启 要在重启 Apache 服务器时不中断当前的连接,则应运行: /usr/local/sbin/apachectl graceful 如果apache安装成为linux的服务的话,可以用以下命令操作: service httpd start 启动 service httpd restart 重新启动 service httpd stop 停止服务 Linux系统为Ubuntu 一、Start Apache 2 Server /启动apache服务 # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start 二、 Restart Apache 2 Server /重启apache服务 # /etc/init.d/apache2

python2.6切换python3.4的操作记录

社会主义新天地 提交于 2019-12-12 12:52:02
python2.6切换python3.4的操作记录   之所以写这个记录,源于昨日下午,因为开发人员使用脚本清洗数据,而导致生产环境数据异常,需要根据binlog日志进行回滚。但在使用binlog2sql闪回工具时,出现异常。经过尝试比对,发现python2.6报错。python2.7及python3.4中不报错,于是就想在现有的环境下,切换python的版本。 一、安装python3.4 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel yum install python34 -y python3 --version wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py python3 get-pip.py pip3 -V 二、切换python版本 python -V; python2.6 -V # 查看当前python版本 这两个应该都是原始的2.6.x ls -hli /usr/bin/python* cp -f /usr/bin/python2.6 /usr/bin/python2.6.bak rm -f /usr/bin/python /usr/bin/python

Read binary file from a zip file from C# without unzipping it

拈花ヽ惹草 提交于 2019-12-12 09:49:07
问题 I would like to read a binary file from a zip file without unzipping it . The zip file structure: zipFolderName/subFolder/BinFile In the BinFile, I have: Id1, id2, value1 // id1, id2 are string, value1 is int In C#: ZipEntry binFileName = …; // it has been got from zipFile entries MemoryStream ms = new MemoryStream(); binFileName.Extract(ms); using (BinaryReader reader = new BinaryReader(ms)) { string id1 = reader.ReadString(); // error popped here string id2 = reader.ReadString(); int value1

R : Create specific bin based on data range

流过昼夜 提交于 2019-12-12 05:12:39
问题 I am attempting to repeatedly add a "fixed number" to a numeric vector depending on a specified bin size. However, the "fixed number" is dependent on the data range. For instance ; i have a data range 10 to 1010, and I wish to separate the data into 100 bins. Therefore ideally the data would look like this Since 1010 - 10 = 1000 And 1000 / 100(The number of bin specified) = 10 Therefore the ideal data would look like this bin1 - 10 (initial data) bin2 - 20 (initial data + 10) bin3 - 30

The dll.config isn't created

孤街浪徒 提交于 2019-12-12 03:37:31
问题 VS 2013 / C#. Hi guys. I have a problem with the *.dll.config file. I choose one of my configuration solutions in VS and build a project. But the project can't be builded becase i got this error: "Error 32 Could not copy the file "obj\MyConfig\MyProject.dll.config" because it was not found." I was searching it in the explorer folders but it doesn't exist. Now my question is why the dll.config could not be created? I have set on MyConfig the build action Content and the Copy to output

mysql解压版运行

心不动则不痛 提交于 2019-12-11 23:23:00
mysql 解压版下载地址: https://dev.mysql.com/downloads/mysql/ 初始化mysql 解压完后打开命令行(cmd)进入mysql的bin目录输入初始化mysql命令: mysqld --initialize-insecure 2.添加环境变量 复制bin目录如:D:\mysql-5.7.21-winx64\bin 计算机-->属性-->高级系统设置-->环境变量-->系统变量-->变量(Path) 双击打开后在变量值的最后加个‘ ; ’分号再把bin目录粘贴进去点确定就可以了 3.启动mysql服务 net start mysql 运行mysql 在命令行中输入(密码为空): mysql -u root -p 5.安装错误解决方法 有时候安装mysql后使用mysql命令时报错 Can't connect to MySQL server on localhost (10061),或者用net start mysql 时报服务名无效,一般是因为mysql服务没有启动。然后将mysql加入到Windows的服务中。 这时候可以用管理身份运行cmd.exe(注意必须是管理员身份运行),否则会报Install/Remove of the Service Denied! 命令行切换到mysql安装目录下的bin文件夹,命令行运行"mysqld -

How can I view the content of a .bin file in opennlp

拜拜、爱过 提交于 2019-12-11 22:31:37
问题 I am trying to use OpenNLP in a project I am working in and i am very new to it. I tried out using the Named Entity Recognition with the training data available at http://opennlp.sourceforge.net/models-1.5/ However I want to see the training data that have been used. i.e. to actually open the .bin file and see its content in English. Can some one pls point me in the correct direction. I have tried to use UltraISO to read the .bin file but i was not successful. PLs help !! Thanx :) 回答1: Use

关于yarn上spark任务报错/bin/bash: /opt/soft/jdk/jdk1.8.0_66/bin/java: No such file or directory

雨燕双飞 提交于 2019-12-11 17:58:59
报错日志如下: /bin/bash: /opt/soft/jdk/jdk1.8.0_66/bin/java: No such file or directory 很明显是脚本里没有export java路径,即export JAVA_HOME=/opt/soft/jdk/jdk1.8.0_66 找到服务器的home路径,然后ls -all找到隐藏文件.bashrc vim编辑后,追加export JAVA_HOME=/opt/soft/jdk/jdk1.8.0_66 然后source .bashrc即可,这样服务器所有的脚本就都加载了JAVA_HOME路径,方便省事。 来源: CSDN 作者: 攻城狮Kevin 链接: https://blog.csdn.net/wx1528159409/article/details/103488227

kafka安装和简单测试

前提是你 提交于 2019-12-11 17:48:11
kafka安装和简单测试 # 安装zookeeper(apache-zookeeper-3.5.6-bin) https://archive.apache.org/dist/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6-bin.tar.gz # 安装kafka(kafka_2.11-2.3.1) http://mirrors.tuna.tsinghua.edu.cn/apache/kafka/2.3.1/kafka_2.11-2.3.1.tgz # 启动zookeeper [root@localhost apache-zookeeper-3.5.6-bin]# bin/zkServer.sh start /usr/bin/java ZooKeeper JMX enabled by default Using config: /svelldata/apache-zookeeper-3.5.6-bin/bin/../conf/zoo.cfg Starting zookeeper ... STARTED # 启动kafka server [root@localhost kafka_2.11-2.3.1]# bin/kafka-server-start.sh config/server.properties # 创建一个话题