X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
73
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
8 years ago

OpenVZ如何给VPS启用ppp

大家好!在上一篇文章(如何在Linux(CentOS)上安装OpenVZ)中,我为大家讲述了如何在CentOS环境下安装OpenVZ虚拟框架。在此,有许多网友阅读并安装后,想给自己的VPS开启ppp功能以备不时之需。在这里,补充一篇文章为大家做补充的说明。

话不多说,切入正题~

** 本处定义的[VEnumber]为1,即假设我想要开放ppp功能的目标vps编号为1

** 本处所有操作全部在HN(母鸡)上完成

1.请先确认ppp的模块是否在母鸡系统上开启

# modprobe ppp_async
# modprobe ppp_deflate
# modprobe ppp_mppe
# lsmod | grep ppp

2. 确保ppp模块会在母鸡开机时被自动加载
# vi /etc/sysconfig/modules/ppp.modules
#!/bin/sh
/sbin/modprobe ppp_async
/sbin/modprobe ppp_deflate
/sbin/modprobe ppp_mppe
# chmod +x /etc/sysconfig/modules/ppp.modules

3.关闭目标VPS虚拟机并将ppp写入配置文件

# vzctl stop 1
# vzctl set 1 --features ppp:on --save

4.开启目标VPS,并执行以下命令

# vzctl start 1
# vzctl set 1 --devices c:108:0:rw --save
# vzctl exec 1 mknod /dev/ppp c 108 0
# vzctl exec 1 chmod 600 /dev/ppp

通过以上步骤,您已经成功的为编号为1的VPS开启了ppp功能。至于检测是否成功开启,请在编号为1的VPS下执行下面的操作。

# vzctl enter 1  //这一步可以通过ssh替代

# cat /dev/ppp

如果回应cat: /dev/ppp: No such file or directory或者是cat: /dev/ppp: No such device or address,说明开启成功。如果不是,请检查VPS的配置。

  • 技术小絮
  • 虚拟化
等 人表示很赞
2,849
0

📮Comments

No Comment.
xosadmin
xosadmin
6 years ago
推荐 Windows Server 2008安装.net 4.8时提示证书问题的解决方法
近日在给Windows Server 2008 R2安装.net framework 4.8时,提示一个证书错误,无论如何重启或恢复,均无效。错误如下: A certificate chain could not be built to a ...
  • 技术小絮
6,687 0
xosadmin
xosadmin
6 years ago
推荐 apache提示You don’t have permission to access /* on this server.的解决方法
首先,X-osadmin在这里祝大家520快乐!近日有朋友遇到了这样一个问题:在CentOS 8下安装php-fpm+apache,在浏览器打开时均提示You don’t have permission to access / ...
  • 技术小絮
3,873 0
xosadmin
xosadmin
8 years ago
推荐 CentOS 6下如何安装KVM虚拟化
昨天,小编讲述了在CentOS上安装OpenVZ虚拟框架的方式。应公众号里部分读者的要求,今天再给大家讲讲如何在CentOS上安装KVM虚拟框架。所谓KVM,官网给的定义如下: KVM (for Kernel-based Virtual ...
  • 技术小絮
  • 虚拟化
2,216 1
xosadmin
xosadmin
2 years ago
推荐 LXC上安装Gitlab时sysctl报错的解决方法
问题情况:在LXC unprivileged容器上安装Gitlab时,在执行gitlab-ctl reconfigure时可能会报出sysctl: permission denied的错误。 解决方法:在/etc/gitlab/gitlab ...
  • 技术小絮
584 0
xosadmin
xosadmin
4 years ago
推荐 wordpress在安装插件和主题时提示需要FTP的解决方法
问题描述:在给wordpress安装插件或者主题时,点击安装后,弹出需要输入FTP信息的框 解决方法:在wp-config.php文件下加入以下代码后刷新页面。 define(“FS_METHOD”, &#8220 ...
  • 技术小絮
694 0
  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案

文章聚合

  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘

Multilangual Translator

Copyright © 2016-2026 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login