分类 阿里云 下的文章

在 CentOS 7 通过 Software Collections 源安装 apache2.4 php5.6 mysql5.6

现在不少商家,默认选择 CentOS 7 系统,但里边默认的php版本是5.4的,已经不太适合一些新版本的程序要求了。

过程:

  1. yum install centos-release-scl # 安装 Software Collections 源
  2. yum install httpd24 # 安装 apache 2.4
  3. scl enable httpd24 bash
  4. service httpd24-httpd start # 启动 apache 2.4 服务
  5. yum install rh-php56 rh-php56-php rh-php56-php-gd rh-php56-php-mbstring rh-php56-php-mysqlnd rh-php56-php-pdo rh-php56-php-xml # 安装 php5.6 及相关
  6. scl enable rh-php56 bash
  7. yum install rh-mysql56 # 安装 mysql5.6
  8. scl enable rh-mysql56 bash
  9. service rh-mysql56-mysqld start # 启动 mysql 服务
  10. mysql_secure_installation # 修改mysql的默认空密码
  11. 上传一份 phpmyadmin 到 opt/rh/httpd24/root/var/www/html/ ,测试正常

参考:

在Debian 8系统里设置X11 Forwarding

环境:Debian 8,mobaxterm

ssh可以设置X11 Forwarding功能,通过ssh客户端显示远程服务器程序的窗口及操作。

过程:

  1. apt-get install xorg mtr Iceweasel vim-gtk 安装 xorg 及测试软件
  2. 确定 mobaxterm 客户端和远程sshd服务端(/etc/ssh/sshd_config) 启用了X11 Forwarding 功能
  3. 运行 mtr, gvim 和 iceweasel 程序测试,可以显示窗口。浏览器 iceweasel 程序测试较卡

参考:https://www.vultr.com/docs/setup-x11-forwarding-over-ssh-on-debian-wheezy

在阿里云“专有网络”中配置FileZilla Server访问

环境:“专有网络”ECS实例,Windows 2012系统

目标:安装 FileZilla Server , 配置证书安全(TLS)访问

过程:

  1. 下载,安装 FileZilla Server 0.9.60.2
  2. 登录到FTP控制台
  3. 会自动检测到服务器当前位于NAT网络,没有配置TLS证书,点击 Settings 来设置
  4. 在 Passive mode settings 被动模式中,设置端口范围,如 20000 - 20500
  5. 在 FTP over TLS settings 里选择证书的文件(服务器证书和私匙等文件),也可尝试自动创建证书(Generate new cetficiate)
  6. 点击快捷菜单里的用户头像图标,或 Edit -> Users 来添加FTP用户,输入用户名;点击 Password 为新创建的用户设置密码
  7. 点击 Shared folders ,再为FTP用户设置默认目录,及勾选读写等权限(Read Write Delete Append 等)
  8. 在实例的安全组规则里,添加允许TCP 21 和 TCP 2000 - 20500 访问的规则
  9. 在 FileZilla Client 快速连接测试,首次会提示证书的详情,点击“确定”后即可成功连接

参考:https://forum.filezilla-project.org/viewtopic.php?f=2&t=25595