Skip to content

Commit

Permalink
2016-02-13补充花生壳文章
Browse files Browse the repository at this point in the history
  • Loading branch information
judasn committed Feb 13, 2016
1 parent fcde0f2 commit c170e04
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 15 deletions.
7 changes: 2 additions & 5 deletions Bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@

<h2 id="bash1">基础常用命令</h2>

- Ubuntu:``

- `某个命令 -h`,对这个命令进行解释
- `某个命令 --help` 解释这个命令(更详细)
- `某个命令 --h`,对这个命令进行解释
- `某个命令 --help` ,解释这个命令(更详细)
- `man 命令` 文档式解释这个命令(更更详细)(执行该命令后,还可以按/+关键字进行查询结果的搜索)
- `man -k` 命令(可以不全) 查找文档里哪里用到这个命令
- `Ctrl+c` 结束命令
- `TAB键` 自动补全命令(没办法补参数)(按一次自动补全,连续按两次,提示所有以输入开头字母的所有命令)
- `上下键` 输入临近的历史命令
Expand Down
38 changes: 38 additions & 0 deletions Hsk-Install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<h1 id="hsk0">花生壳 安装</h1>

------

* [花生壳 安装](#hsk0)
* [CentOS 下过程](#hsk1)
* [资料](#hsk2)

------

<h2 id="hsk1">CentOS 下过程</h2>

- 官网:<http://hsk.oray.com/>
- 官网下载:<http://hsk.oray.com/download/#type=linux>
- 官网安装说明:<http://service.oray.com/question/1890.html>
- 软件包下载:`wget http://download.oray.com/peanuthull/linux/phddns-2.0.6.el6.x86_64.rpm`
- 安装:`sudo yum localinstall -y phddns-2.0.6.el6.x86_64.rpm`
- 配置:
- 安装完毕后,在终端下运行:`phddns`
- 第一步::Enter server address(press ENTER use phddns60.oray.net),这是提示您输入花生壳服务器的域名,如果网站上没有更新域名的公告说明,这一步直接回车即可,会使用默认的 phddns60.oray.net 域名。
- 第二步:Enter your Oray account:这是提示您输入在花生壳官网注册的用户名,请根据实际情况输入。
- 第三步:Password:这是提示您输入在花生壳官网注册的用户名所对应的密码,请根据实际情况输入。
- 第四步:Network interface(s): 这是要配置您这台服务器的网络参数,花生壳(公网版)软件会自动检查,并输出您的网络情况。eth0部分可能和上面的不一样,是您的实际网络设置。如果您有两块网卡,eth0 和eth1 ,而您希望用eth1来绑定花生壳,请在这里输入 eth1 ,然后回车。如果您只有一块网卡,或者您希望使用 eth0来绑定花生壳,在这里直接回车即可。
- 第五步:Log to use(default /var/log/phddns.log):这是提示您输入花生壳(公网版)软件日志的保存位置,请使用绝对路径指定日志文件名。如果直接回车,会使用 /var/log/phddns.log 来保存日志。
- 第六步: Save to configuration file (/etc/phlinux.conf)?(yes/no/other): 这是提示您输入上述配置的保存文件名。如果输入yes 或直接回车,将会使用/etc/phlinux.conf 来作为配置的保存文件名。如果输入other ,将会提示您自行指定文件名,请使用绝对路径来指定这个配置文件名。如果输入no ,不对上述配置进行保存,下次重新使用花生壳(公网版)时,需要手动指定配置文件或再次通过交互模式进行设置.
- 第六步执行完毕后,屏幕上会依次出现:defOnStatusChanged ok,DomainsRegistered,UserType,表示安装、配置完成了
- 启动服务:`/usr/bin/phddns -c /etc/phlinux.conf -d`
- 设置开机启动:`echo "/usr/bin/phddns -c /etc/phlinux.conf -d" >> /etc/rc.local`
- 查看进程:`ps -ef | grep phddns`
- 卸载:
- `rpm -qa|grep phddns`
- `sudo rpm -e phddns-2.0.6-1.el6.x86_64`


<h2 id="jdk2">资料</h2>

- <http://service.oray.com/question/1890.html>

3 changes: 2 additions & 1 deletion JDK-Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- 检查是否使用了最新的 JDK:`java -version`
- 资料
<h2 id="jdk2">资料</h2>
- <http://www.jikexueyuan.com/course/480_1.html?ss=1>
18 changes: 9 additions & 9 deletions Tomcat-Install-And-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@

- Tomcat 8 安装
- 官网:<http://tomcat.apache.org/>
- Tomcat 8 官网<http://tomcat.apache.org/download-80.cgi>
- 此时(20160207) Tomcat 8 最新版本为:`apache-tomcat-8.0.30.tar.gz`
- Tomcat 8 官网下载<http://tomcat.apache.org/download-80.cgi>
- 此时(20160207) Tomcat 8 最新版本为:`apache-tomcat-8.0.32.tar.gz`
- 我个人习惯 `/opt` 目录下创建一个目录 `setups` 用来存放各种软件安装包;在 `/usr` 目录下创建一个 `program` 用来存放各种解压后的软件包,下面的讲解也都是基于此习惯
- 我个人已经使用了第三方源:`EPEL、RepoForge`,如果你出现 `yum install XXXXX` 安装不成功的话,很有可能就是你没有相关源,请查看我对源设置的文章
- Tomcat 8 下载:`wget http://apache.fayea.com/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz`
- 压缩包解压:`tar -zxvf apache-tomcat-8.0.30.tar.gz`
- 移到解压出来文件夹到 /usr 下:`mv apache-tomcat-8.0.30/ /usr/program/`
- 为了方便,修改解压目录的名字:`mv /usr/program/apache-tomcat-8.0.30/ /usr/program/tomcat8/`
- Tomcat 8 下载:`wget http://apache.fayea.com/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz`
- 压缩包解压:`tar -zxvf apache-tomcat-8.0.32.tar.gz`
- 移到解压出来文件夹到 /usr 下:`mv apache-tomcat-8.0.32/ /usr/program/`
- 为了方便,修改解压目录的名字:`mv /usr/program/apache-tomcat-8.0.32/ /usr/program/tomcat8/`


- 设置 Iptables 规则(这一步是必须设置的):
- 一种方式:先关闭 iptables,防止出现拦截问题而测试不了:`service iptables stop`
- 一种方式:在 iptables 中添加允许规则(svn 默认端口是 3690):
- 添加规则:`sudo iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT`
- 一种方式:在 iptables 中添加允许规则(Tomcat 默认端口是 8080):
- 添加规则:`sudo iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPT`
- 保存规则:`sudo /etc/rc.d/init.d/iptables save`
- 重启 iptables:`sudo service iptables restart`

Expand Down Expand Up @@ -68,7 +68,7 @@
<h2 id="tomcat3">Tomcat 8 优化</h2>
- 官网标准答案:<https://tomcat.apache.org/tomcat-8.0-doc/config/http.html>
- 官网帮助文档下载(该资料在:`/tomcat-8.0-doc/config/http.html`):`wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30-fulldocs.tar.gz`
- 官网帮助文档下载(该资料在:`/tomcat-8.0-doc/config/http.html`):`wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32-fulldocs.tar.gz`
- 编辑配置文件:`vim /usr/program/tomcat8/conf/server.xml`
- 修改链接参数:
- 默认值:
Expand Down

0 comments on commit c170e04

Please sign in to comment.