开发工具分享
  • 首页
  • 计算科学
  • 文化旅游
  • 项目和网站
    • OSSEZ 计算技术
    • USRealEstate 社区
    • 地区文化
    • CWIKI.US
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
Computer Science
Computer Science

Discourse 安装或者编译的时候提示 github 不能被解析

Discourse 安装或者重新编译的时候提示 github 不能被解析。 提示的是 DNS 错误。 具体的提示是: fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolv   这个有可能是你服务器的防火墙的问题。 有可能会出现防火墙封闭了你需要的端口 你可以尝试打开下 docker 的端口或者先停用防火墙看看是不是防火墙的问题。 可以运行下面的命令: firewall-cmd --permanent --zone=trusted --add-interface=docker0 firewall-cmd --permanent --zone=trusted --add-port=4243/tcp 另一个办法是运行: netstat -ntlp | grep LISTEN 命令,看有那个端口是在监听的。将正在监听的端口也要打开。 [root@www discourse]# netstat -ntlp | grep LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 681/sshd tcp6 0 0 :::9090 :::* LISTEN 1/systemd tcp6 0 0 :::80 :::* LISTEN 26270/docker-proxy tcp6 0 0 :::22 :::* LISTEN 681/sshd tcp6 0 0 :::443 :::* LISTEN 26259/docker-proxy 例如上面命令的我们的输入,你则需要打开 9090 端口。 https://www.cwiki.us/display/CWIKIKB/questions/62620071

2020年05月19日 0Comments 819Browse 0Like Read more
Computer Science

Discourse 发送人邮件地址如何修改的方法

Discourse 发送人邮件默认是使用安装的域名进行设置的。 如何修改这个发送人的邮件地址。 可以使用下面的方法: 这个配置是可以在后台修改的。 你可以搜索参数:notification_email 然后修改成你需要的邮件地址就可以了。 请参考 CWIKI.US 的内容: https://www.cwiki.us/display/CWIKIKB/questions/62620064

2020年05月19日 0Comments 856Browse 0Like Read more
Computer Science

Discourse 主题字数限制

Discourse 主题字数被限制为 15 个字符。 这个对英文还好,但是中文会影响用户体验。   你可以在 Discourse 的后台设置中搜索 min topic title length 关键字。   在默认的情况下,min topic title length 是设置为 15 的,针对中文环境,你可以将这个参数设置为 4。   如果你使用的是菜单路径的话,请参考下面的图片。 你可以直接修改参数后再保存就可以了。   https://www.cwiki.us/display/CWIKIKB/questions/62620039

2020年05月19日 0Comments 872Browse 0Like Read more
Computer Science

Linode 虚拟主机安装 discourse 邮件没有发送

discourse 在安装的时候对电子的依赖性非常强。 linode VPS 安装后 discourse 的电子邮件始终没有办法发送成功。     discourse 在安装完成后,需要对电子邮件进行校验。如果你不配置 SMTP 服务器的话,你的 discourse 是没有办法完成安装的。 很多时候如果你测试的话,你可能会使用你的私人邮件服务器进行 SMTP 测试,如果你是站长的话,你应该使用商业的电子邮件服务器。商业电子邮件服务器能够提供更好的功能,能够对发送的邮件进行跟踪,更主要的是发送量和每秒钟的发送速率能够更高,能够实现批量发送邮件。 如果你怕麻烦也怕绑定信用卡的话,你也可以使用 AWS 的 SES 邮件服务,其实功能都差不多,还更加便宜,但是 SES 对发送的电子邮件处理就不是那么好了,你不知道你发送的邮件有没有被打开。 linode VPS 在安装完成后是默认关闭 587 端口的,主要原因是可能虚拟主机服务商避免很多人申请一个非常便宜的 VPS,然后大量发送垃圾邮件。 你可以在你的账号下提交工单让 linode 帮你打开 587 端口,一般来说他们都会回复你一个下面的内容: Hello, To help combat spam on our platform, new Linode accounts have SMTP port restrictions in place on all Linodes by default. We have lifted these restrictions from your account, though we ask that you configure rDNS for any mailing Linodes you deploy. Our guides on configuring DNS and rDNS records within the Linode Manager are linked below: https://www.linode.com/docs/platform/manager/dns-manager/#add-dns-records https://www.linode.com/docs/networking/dns/configure-your-linode-for-reverse-dns/ Once your DNS configuration is complete, you can confirm that these records have been configured correctly by running the following commands: “dig +short $URL” for checking the A record “dig -x $IP +short” for checking rDNS If you plan on using the Linode(s) for business related mailing now or in the future, do keep in mind that we require business mailing to adhere to the CAN-SPAM act. Finally, we recommend you review Section 2 ("Abuse") of our Acceptable Use Policy. Terms of Service or AUP violations may result in the reinstatement of SMTP port restriction or account termination. Let us know if you have any questions for us, and we’ll be happy to help. Best wishes, Jack Linode Support Team 主要用途是校验你的 DNS 和 rDNS,我们就是按照上面的文章,将 DNS 和 rDNS 配置好以后,将运行的命令结果发给他们。 一般情况下顺利的话 1 到 2 个小时就开通了,主要是因为 VPS 提供商希望知道你的服务器是干什么用的,你的邮件发送已经绑定了域名。相对来说如果你使用商业邮件发送服务器,这里就能够帮你省下很多事情。 discourse 的安装需要邮件服务器配置,否则你都装不下去,但是 很多虚拟主机又关闭了 587 端口。所以你在安装 discourse  的时候,需要先联系你的服务器提供商,将 587 端口打开。   https://www.cwiki.us/display/CWIKIKB/questions/62620012

2020年05月19日 0Comments 767Browse 0Like Read more
Computer Science

Fedora 运行 Apache 的时候无法启动,提示日志错误

Fedora 运行 Apache 的时候无法启动,提示日志错误。 错误信息为: [root@discuz logs]# service httpd start Starting httpd: (13)Permission denied: httpd: could not open error log file /home/vhosts/ossez/logs/error_log. Unable to open logs     原因是 selinux 的问题。 什么是 SELinux 呢?其实他是『 Security Enhanced Linux 』的缩写,字面上的意义就是安全强化的 Linux 之意! SELinux 是由美国国家安全局 (NSA) 开发的,当初开发这玩意儿的目的是因为很多企业界发现, 通常系统出现问题的原因大部分都在於『内部员工的资源误用』所导致的,实际由外部发动的攻击反而没有这么严重。 那么什么是『员工资源误用』呢?举例来说,如果有个不是很懂系统的系统管理员为了自己配置的方便,将网页所在目录 /var/www/html/ 的权限配置为 drwxrwxrwx 时,你觉得会有什么事情发生? 现在我们知道所有的系统资源都是透过程序来进行存取的,那么 /var/www/html/ 如果配置为 777 , 代表所有程序均可对该目录存取,万一你真的有启动 WWW 服务器软件,那么该软件所触发的程序将可以写入该目录, 而该程序却是对整个 Internet 提供服务的!只要有心人接触到这支程序,而且该程序刚好又有提供使用者进行写入的功能, 那么外部的人很可能就会对你的系统写入些莫名其妙的东西!那可真是不得了!一个小小的 777 问题可是大大的! 为了控管这方面的权限与程序的问题,所以美国国家安全局就著手处理操作系统这方面的控管。 由於 Linux 是自由软件,程序码都是公开的,因此她们便使用 Linux 来作为研究的目标, 最后更将研究的结果整合到 Linux 核心里面去,那就是 SELinux 啦!所以说, SELinux 是整合到核心的一个模块喔! 临时关闭selinux: setenforce 0 ##设置SELinux 成为permissive模式 ##setenforce 1 设置SELinux 成为enforcing模式 永久关闭: 修改/etc/selinux/config 文件 将 SELINUX=enforcing 改为 SELINUX=disabled 然后重启服务器。 https://www.cwiki.us/display/CWIKIKB/questions/62620004

2020年05月19日 0Comments 640Browse 0Like Read more
Computer Science

如何在 Linux 中设置主机名

如何在 Linux 中设置主机名?   如果你对 Linux 命令行比较熟悉的话,你可以使用命令 sudo hostnamectl set-hostname host.example.com 设置主机名,设置主机名成功后,不要忘记也要在 hosts 文件中配置下 127.0.0.1. 另外,你也可以使用 nmtui 命令来进行设置。 你可以在你的字符环境中,直接运行 nmtui 命令。 NetworkManager 文本用户界面(TUI)工具 nmtui 可提供一个文本界面配置由 NetworkManager 控制的网络。该工具包含在 NetworkManager-tui 子软件包中。 写入时,不会默认随 NetworkManager 安装该子软件包。要安装 NetworkManager-tui,请作为 root 运行以下命令: 如果你的操作系统中没有安装的话,请运行下面的命令进行安装: yum install NetworkManager-tui 此时会出现文本用户界面。要在该界面中导航,请使用箭头键,或按 Tab 在选项间前进,按 press Shift+Tab 后退。按 Enter 选择某个选项。Space 键切换选择库状态。 然后选中设置系统主机名。 然后回车后输入你需要设置的主机名: 通过移动光标后保存退出。 这个字符文本界面提供了一个更好的选择。   https://www.cwiki.us/display/CWIKIKB/questions/62619980

2020年05月19日 0Comments 909Browse 0Like Read more
Computer Science

Discourse 443 端口问题

Discourse 的 443 端口需要开放吗?     Discourse 默认会使用 SSL ,如果你的 Discourse 安装后,不能访问。 你需要启用 80 和 443 端口。 下面的命令将会打开你的 443 端口: firewall-cmd --zone=public --add-port=443/tcp --permanent 同时别忘了运行 firewall-cmd --reload 命令来让你的配置生效。 然后再运行 firewall-cmd --zone=public --query-port=443/tcp 如果返回的是 yes ,那么说明你的端口已经开放了。 [root@www ~]# firewall-cmd --zone=public --query-port=443/tcp yes 查看你服务器现在正在监听的端口请使用下面的命令: netstat -ntlp | grep LISTEN 你的服务器上可能回返回: [root@www ~]# netstat -ntlp | grep LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 675/sshd tcp6 0 0 :::22 :::* LISTEN 675/sshd tcp6 0 0 :::443 :::* LISTEN 49845/docker-proxy tcp6 0 0 :::9090 :::* LISTEN 1/systemd tcp6 0 0 :::80 :::* LISTEN 49857/docker-proxy Discourse 严重依赖电子邮件。 在开放端口的时候,你可能还需要开放 587 这个端口,这个端口是 SMTP 邮件服务器用来发送邮件的。   https://www.cwiki.us/questions/62619962

2020年05月18日 0Comments 711Browse 0Like Read more
Computer Science

Discourse 安装的时候提示 Docker 错误

提示的错误信息为: Configuration file at updated successfully! Updates successful. Rebuilding in 5 seconds. Building app standard_init_linux.go:211: exec user process caused "exec format error" Your Docker installation is not working correctly See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam root@raspberrypi:/var/discourse# uname 不知道是什么问题导致的?   经过搜索后发现 Discourse 不支持 ARM 的CPU。 只能支持 x86_64 的 CPU。 因为我们想在 raspberrypi 上进行安装测试,但是 raspberrypi 使用的是 ARM 的 CPU,因此是没有办法在 raspberrypi 上安装 Discourse 的。 lscpu 查看的配置结果: root@raspberrypi:/var/discourse# lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 BogoMIPS: 108.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 通过执行查看 CPU 信息的命令后的输出: 在上面截图中可以看到 CPU 的架构和类型。   https://www.cwiki.us/questions/62619923

2020年05月17日 0Comments 756Browse 0Like Read more
Computer Science

IntelliJ 源代码文件的历史如何查看

在 IntelliJ 使用的时候,我们会经常要对源代码进行查看。 如何在 IntelliJ 中快速进行查看,如何进行比较?   在 IntelliJ 中,你可以使用快捷键进行查看,你也可以通过鼠标进行查看。 我们常用的查看功能使用的是查看一个文件的本地修改历史。 或者你也可以使用快捷键。 Alt + · 键,然后会弹出版本历史的快捷访问列表。 如果你选择 4 就可以查看 Git 文件提交的的历史列表。 显示文件的本地修改历史列表。   https://www.cwiki.us/questions/62619882  

2020年05月16日 0Comments 807Browse 0Like Read more
Computer Science

IntelliJ 工具栏丢失

不知道什么原因,IntelliJ 的工具栏丢失了。 如下图:     要将丢失的工具栏找回来还是比较简单的。 在 IJ 中双击 shift 键。 你将会看到一个打开的搜索对话框,然后在 Action 中输入 tool,不区分大小写,然后将 toolbar 选择 on。 你就可以看到你丢失的工具栏恢复了。   https://www.cwiki.us/questions/62619864

2020年05月12日 0Comments 958Browse 0Like Read more
1…146147148149150…237
Archives
  • June 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
Categories
  • Computer Science (2,367)
    • Confluence (663)
    • Gradle (12)
  • U.S. (514)
  • 文化旅游 (146)

COPYRIGHT © 2020 CWIKIUS. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS

湘ICP备2020018253号-1