Skip to content

Commit

Permalink
Site updated: 2017-05-29 14:42:56
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierXDD committed May 29, 2017
1 parent 6132105 commit d42f7c2
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 93 deletions.
8 changes: 4 additions & 4 deletions 2017/05/28/hello-world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<meta property="og:type" content="article">
<meta property="og:title" content="Hello World">
<meta property="og:url" content="http://yoursite.com/2017/05/28/hello-world/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
<meta property="og:updated_time" content="2017-05-28T08:08:31.555Z">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -133,7 +133,7 @@



<title>Hello World | Hexo</title>
<title>Hello World | JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -170,7 +170,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down Expand Up @@ -262,7 +262,7 @@
</span>

<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hexo">
<meta itemprop="name" content="JavierXDD">
</span>


Expand Down
8 changes: 4 additions & 4 deletions 2017/05/29/阿里云部署日志/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<meta property="og:type" content="article">
<meta property="og:title" content="阿里云部署项目">
<meta property="og:url" content="http://yoursite.com/2017/05/29/阿里云部署日志/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="阿里云部署项目(jdk+mysql+tomcat) 实例ID:i-2zed3slgp17r6mv0a27o公网IP:47.94.9.151内网IP:172.17.176.220版本:Java运行环境(Centos7 64 | JDK8|Tomcat8) 因为购买的是拥有java运行环境的版本。磁盘预装了jdk8、tomcat8。后来发现里面还装好了mysql 但是有问题不能使用。下面会修改配置。">
<meta property="og:updated_time" content="2017-05-29T06:38:30.189Z">
<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -133,7 +133,7 @@



<title>阿里云部署项目 | Hexo</title>
<title>阿里云部署项目 | JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -170,7 +170,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down Expand Up @@ -262,7 +262,7 @@
</span>

<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hexo">
<meta itemprop="name" content="JavierXDD">
</span>


Expand Down
10 changes: 5 additions & 5 deletions archives/2017/05/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

<meta name="description" content="r94hh">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:title" content="JavierXDD">
<meta property="og:url" content="http://yoursite.com/archives/2017/05/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="r94hh">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<meta name="twitter:title" content="JavierXDD">
<meta name="twitter:description" content="r94hh">


Expand Down Expand Up @@ -132,7 +132,7 @@



<title>归档 | Hexo</title>
<title>归档 | JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -169,7 +169,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down
10 changes: 5 additions & 5 deletions archives/2017/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

<meta name="description" content="r94hh">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:title" content="JavierXDD">
<meta property="og:url" content="http://yoursite.com/archives/2017/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="r94hh">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<meta name="twitter:title" content="JavierXDD">
<meta name="twitter:description" content="r94hh">


Expand Down Expand Up @@ -132,7 +132,7 @@



<title>归档 | Hexo</title>
<title>归档 | JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -169,7 +169,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down
10 changes: 5 additions & 5 deletions archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

<meta name="description" content="r94hh">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:title" content="JavierXDD">
<meta property="og:url" content="http://yoursite.com/archives/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="r94hh">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<meta name="twitter:title" content="JavierXDD">
<meta name="twitter:description" content="r94hh">


Expand Down Expand Up @@ -132,7 +132,7 @@



<title>归档 | Hexo</title>
<title>归档 | JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -169,7 +169,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down
97 changes: 27 additions & 70 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

<meta name="description" content="r94hh">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:title" content="JavierXDD">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:site_name" content="JavierXDD">
<meta property="og:description" content="r94hh">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<meta name="twitter:title" content="JavierXDD">
<meta name="twitter:description" content="r94hh">


Expand Down Expand Up @@ -132,7 +132,7 @@



<title>Hexo</title>
<title>JavierXDD</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
Expand Down Expand Up @@ -171,7 +171,7 @@
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Hexo</span>
<span class="site-title">JavierXDD</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
Expand Down Expand Up @@ -263,7 +263,7 @@
</span>

<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hexo">
<meta itemprop="name" content="JavierXDD">
</span>


Expand Down Expand Up @@ -322,58 +322,17 @@ <h1 class="post-title" itemprop="name headline">



<h1 id="阿里云部署项目(jdk-mysql-tomcat)"><a href="#阿里云部署项目(jdk-mysql-tomcat)" class="headerlink" title="阿里云部署项目(jdk+mysql+tomcat)"></a>阿里云部署项目(jdk+mysql+tomcat)</h1><blockquote>
<p>实例ID:i-2zed3slgp17r6mv0a27o<br>公网IP:47.94.9.151<br>内网IP:172.17.176.220<br>版本:Java运行环境(Centos7 64 | JDK8|Tomcat8)</p>
<p>因为购买的是拥有java运行环境的版本。磁盘预装了jdk8、tomcat8。后来发现里面还装好了mysql 但是有问题不能使用。下面会修改配置。 </p>
<p>jdk8根目录:/user/java/jdk1.8.0_111/..<br>tomcat8根目录:/home/tomcat/apache-tomcat-8.5.8/..<br>mysql根目录: 没找到。。。</p>
</blockquote>
<ul>
<li><h2 id="安装AppNode"><a href="#安装AppNode" class="headerlink" title="安装AppNode"></a>安装AppNode</h2><p>参照 :++<a href="https://www.appnode.com/install++" target="_blank" rel="external">https://www.appnode.com/install++</a><br>可视化、简易高效、操作透明、高可扩展的 Linux 服务器集群管理面板。<br>用面板,主要用文件管理、上传下载功能。省去配置ftp的麻烦。</p>
<blockquote>
<p>问题:安装后无法进入面板(上述安装端口号设置为5555)<br>解决:修改阿里云ECS安全组规则(入方向) </p>
<blockquote>
<p>添加安全组规则<br>设置协议类型:自定义TCP<br>设置端口范围:5555/5555(相应的端口号)<br>设置授权对象:0.0.0.0/0</p>
</blockquote>
</blockquote>
</li>
<li><h2 id="登录AppNode面板"><a href="#登录AppNode面板" class="headerlink" title="登录AppNode面板"></a>登录AppNode面板</h2></li>
</ul>
<p>节点列表中,安装受控端</p>
<ul>
<li><h2 id="修改mysql密码"><a href="#修改mysql密码" class="headerlink" title="修改mysql密码"></a>修改mysql密码</h2></li>
</ul>
<p>1、编辑 MySQL 配置文件 my.cnf(以实际 my.cnf 配置文件路径为准)<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim /etc/my.cnf[mysqld]skip-grant-tables #增加</div></pre></td></tr></table></figure></p>
<p>2、重启 MySQL 服务(以实际启动脚本位置为准)<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">/etc/init.d/mysqld restart</div></pre></td></tr></table></figure></p>
<p>3、登录数据库<br>/usr/bin/mysql 输入如下命令:<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">UPDATE user SET authentication_string = password (&apos;root&apos;) WHERE User = &apos;root&apos; ;</div></pre></td></tr></table></figure></p>
<p>4、删除或者注释第一步骤中添加的 spip-grant-tables<br>5、重启 MySQL 服务<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">/etc/init.d/mysqld restart</div></pre></td></tr></table></figure></p>
<p>6、使用新密码测试</p>
<ul>
<li><h2 id="导入项目sql文件"><a href="#导入项目sql文件" class="headerlink" title="导入项目sql文件"></a>导入项目sql文件</h2><p>1、把本地的sql文件上传到服务器上。利用AppNode上传功能很方便。记着上传路径。<br>2、首先建空数据库</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mysql&gt;create database abc;</div></pre></td></tr></table></figure>
</li>
</ul>
<p>3、导入数据库<br>方法一(我用的,亲测可用):<br>(1)选择数据库<br> <figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mysql&gt;use abc;</div></pre></td></tr></table></figure></p>
<p>(2)设置数据库编码<br> <figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">mysql&gt;set names utf8;</div></pre></td></tr></table></figure></p>
<p>(3)导入数据(注意sql文件的路径)<br> <figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">mysql&gt;source /home/abc/abc.sql; </div><div class="line"># /home/abc/abc.sql是上传的sql文件</div></pre></td></tr></table></figure></p>
<p>方法二(没用过,网上说可以):<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">mysql -u用户名 -p密码 数据库名 &lt; 数据库名.sql</div><div class="line">#mysql -uabc_f -p abc &lt; abc.sql</div></pre></td></tr></table></figure></p>
<ul>
<li><h2 id="启动tomcat"><a href="#启动tomcat" class="headerlink" title="启动tomcat"></a>启动tomcat</h2></li>
</ul>
<p>1、进入Tomcat下的bin目录<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">cd //home/tomcat/apache-tomcat-8.5.8/bin</div></pre></td></tr></table></figure></p>
<p>2、使用Tomcat关闭命令<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">./shutdown.sh</div></pre></td></tr></table></figure></p>
<p>3、查看Tomcat是否以关闭<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">ps -ef|grep java</div></pre></td></tr></table></figure></p>
<p>4、如果显示以下相似信息,说明Tomcat还没有关闭</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">root 7010 1 0 Apr19 ? 00:30:13 /usr/local/java/bin/java </div><div class="line">-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties </div><div class="line">-Djava.awt.headless=true </div><div class="line">-Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m </div><div class="line">-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m </div><div class="line">-XX:+DisableExplicitGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager </div><div class="line">-Djava.endorsed.dirs=/usr/local/tomcat/endorsed </div><div class="line">-classpath /usr/local/tomcat/bin/bootstrap.jar </div><div class="line">-Dcatalina.base=/usr/local/tomcat </div><div class="line">-Dcatalina.home=/usr/local/tomcat </div><div class="line">-Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start</div></pre></td></tr></table></figure>
<p>5、如果你想直接干掉Tomcat,你可以使用kill命令,直接杀死Tomcat进程<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">kill -9 7010</div></pre></td></tr></table></figure></p>
<p>6、然后继续查看Tomcat是否关闭<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">ps -ef|grep java</div></pre></td></tr></table></figure></p>
<p>7、如果出现以下信息,则表示Tomcat已经关闭<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">root 7010 1 0 Apr19 ? 00:30:30 [java] &lt;defunct&gt;</div></pre></td></tr></table></figure></p>
<p>8、最后,启动Tomcat<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">./startup.sh</div></pre></td></tr></table></figure></p>
<ul>
<li><h2 id="上传war包"><a href="#上传war包" class="headerlink" title="上传war包"></a>上传war包</h2></li>
</ul>
<p>上传到tomcat/webapps/下</p>


阿里云部署项目(jdk+mysql+tomcat)
实例ID:i-2zed3slgp17r6mv0a27o公网IP:47.94.9.151内网IP:172.17.176.220版本:Java运行环境(Centos7 64 | JDK8|Tomcat8)
因为购买的是拥有java运行环境的版本。磁盘预
...
<!--noindex-->
<div class="post-button text-center">
<a class="btn" href="/2017/05/29/阿里云部署日志/#more" rel="contents">
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->


</div>
Expand Down Expand Up @@ -424,7 +383,7 @@ <h1 id="阿里云部署项目(jdk-mysql-tomcat)"><a href="#阿里云部署
</span>

<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Hexo">
<meta itemprop="name" content="JavierXDD">
</span>


Expand Down Expand Up @@ -483,17 +442,15 @@ <h1 class="post-title" itemprop="name headline">



<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="external">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo new <span class="string">"My New Post"</span></div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo server</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="external">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo generate</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo deploy</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>


Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in
...
<!--noindex-->
<div class="post-button text-center">
<a class="btn" href="/2017/05/28/hello-world/#more" rel="contents">
阅读全文 &raquo;
</a>
</div>
<!--/noindex-->


</div>
Expand Down

0 comments on commit d42f7c2

Please sign in to comment.