摘要: # Centos 安装 jdk 创建目录,用来存放下载的 JDK ``` cd /usr/local mkdir -p tools cd tools ``` 下载JDK,后边的下载地址你可以到 orcal 官网去获取最新的版本,或者你想要的版本进行替换。 ``` # jdk 8 已经包含 jre wget --no-cookies --no-check-certificate --hea... 阅读全文
posted @ 2018-09-21 11:59 这块显卡有点冷 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: # apt 安装 Oracle Java JDK 8/10 “Linux Uprising”团队维护一个PPA存储库,其中包含适用于所有当前Ubuntu版本的Oracle Java 10安装程序。 请注意,由于授权,PPA不包含Java二进制文件。 PPA中的包自动从Oracle Web服务器下载并安装Oracle JDK 10。 ## 在Ubuntu 18.04中安装Oracle Java... 阅读全文
posted @ 2018-09-21 10:04 这块显卡有点冷 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: # apt 安装 tomcat 直接使用 agt-get 安装 ``` apt-get install tomcat7 # or apt-get install tomcat8 ``` 需要一段时间后就安装完成了。 安装目录和yum安装方式有点不一样。 ``` whereis tomcat7 # tomcat7: /etc/tomcat7 /usr/share/tomcat7 # /e... 阅读全文
posted @ 2018-09-21 09:35 这块显卡有点冷 阅读(281) 评论(0) 推荐(0) 编辑
摘要: # 使用 APT 安装 MySQL 参考官方[文档](https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/) ``` apt-get install mysql-server ``` 这将安装MySQL服务器的包,以及客户端和数据库公共文件的包。 在安装过程中,系统会要求您为root用户提供MySQL安装的密码。 ## 启动和停止... 阅读全文
posted @ 2018-09-21 09:17 这块显卡有点冷 阅读(2655) 评论(0) 推荐(0) 编辑
摘要: # yum 常用命令 ## 查看yum安装源 ``` [root@localhost ~]# yum repolist all Loaded plugins: fastestmirror, priorities Repository base is listed more than once in the configuration Repository updates is listed m... 阅读全文
posted @ 2018-09-21 08:57 这块显卡有点冷 阅读(412) 评论(0) 推荐(0) 编辑
摘要: # Ubuntu apt-get 更换源 我们使用[清华](https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/)的镜像源进行更换 Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。 ## 更换源 16.04 LTS ```... 阅读全文
posted @ 2018-09-21 08:46 这块显卡有点冷 阅读(3147) 评论(0) 推荐(0) 编辑