找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 923|回复: 1

[N1盒子] N1盒子刷Linux可以运行tomcat的网站不?redhat的语法啥的都能用吧?

[复制链接]
发表于 2019-8-7 16:31 | 显示全部楼层 |阅读模式
N1盒子刷Linux可以运行tomcat的网站不?redhat的语法啥的都能用吧?
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-8-8 13:54 | 显示全部楼层
没人回复啊,
我觉得应该可以的,
apt-get能安装的应该都可以用.

我在用Armbian
和debian ubuntu一样,
和redhat不同.

  1. ######################################################################
  2. ## 1. 第一次连接
  3. ######################################################################

  4. # 固件下载地址 https://www.right.com.cn/forum/thread-788004-1-1.html
  5. # root 1234
  6. # 修改密码
  7. # 创建用户

  8. ######################################################################
  9. ## 2. 准备工作
  10. ######################################################################

  11. # A. 配置dash 选 NO

  12. dpkg-reconfigure dash;

  13. # B. 设置时区

  14. (echo 4;sleep 1;echo 9;sleep 1;echo 1;sleep 1;echo 1;)|tzselect;TZ='Asia/Shanghai';export TZ;date;

  15. # C. 修改主机名

  16. host_name="Phicomm-N1";hostname;echo $host_name > /etc/hostname;cat /etc/hostname;hostname $host_name;hostname;

  17. # D. 彩色终端

  18. sed -i '/PS1=/d' ~/.bashrc;sed -i '/umask/d' ~/.bashrc;echo 'PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]\[$(tput sgr0)\]\[\033[38;5;1m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' >> ~/.bashrc;echo 'umask 022' >> ~/.bashrc;source ~/.bashrc;

  19. # E. 查看和编辑源

  20. nano /etc/apt/sources.list;

  21. # 可以修改成以下源

  22. deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
  23. deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
  24. deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
  25. deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

  26. # F. 更新源,安装必要软件

  27. apt-get update;apt-get install -y wget curl screen unzip bzip2 psmisc;screen -S install;

  28. # G. 设置固定IP

  29. nano /etc/network/interfaces

  30. # 修改相应位置内容

  31. iface eth0 inet static
  32. address 192.168.2.33
  33. netmask 255.255.255.0
  34. gateway 192.168.2.1
  35. dns-nameservers 192.168.2.1 114.114.114.114

  36. # 或者指定 MAC (还是DHCP好)

  37. hw ether FC:7C:02:D0:61:41

  38. # 重启网络 (好像没用,要reboot重启)

  39. systemctl restart networking.service;systemctl restart network-manager;

  40. ######################################################################
  41. ## 3. Docker 及 管理工具
  42. ######################################################################

  43. # A. 安装 Docker

  44. curl -fsSL https://get.docker.com -o get-docker.sh;
  45. sh get-docker.sh --mirror Aliyun;

  46. # B. 配置 Docker 国内源

  47. nano /etc/docker/daemon.json

  48. # 输入自己找到的国内源

  49. {
  50.   "registry-mirrors": ["https://btXXXX5o.mirror.aliyuncs.com"]
  51. }

  52. # 重载

  53. systemctl daemon-reload;systemctl restart docker;

  54. # C. 安装 docker 管理工具 portainer ,装完就可以在 http://ip:9001 里管理 docker

  55. docker run -d --name server_Portainer_docker_web_cp --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -p 9001:9000 portainer/portainer
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-24 19:11

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表