1、vps centos7如何安装ftp
一、安装vsftpd及ftp命令
yum install vsftpd -y
yum install ftp -y
二、vsftpd服务器的配置文件
实现在开启防火墙和SELinux情况下,实现匿名用户的登录,可以上传下载,可以创建目录,创建权限掩码为022,可以删除文件,最大上传速度为100kbit/s。
这个是我自己的vsftpd服务器的主要配置文件是/etc/chaodiquan.com/vsftpd/vsftpd.conf。
1.服务器端设置
1.1修改配置文件开放匿名用户上传、下载及其他权限,
anonymous_enable=yes //允许匿名用户登录
anon_upload_enable=yes //允许匿名用户上传
write_enable=yes //赋予写权限
anon_mkdir_write_enable=yes //允许匿名用户新建文件夹
anon_other_write_enable=yes //匿名用户拥有除了上传和新建目录之外的其他权限
anon_amask=022 //匿名用户的权限掩码
anon_max_rate=102400 //最大上传速度100kbit/s
然后重启服务
systemctl restart vsftpd.service
1.2修改上传目录的权限
为了让匿名用户实现上传,必须开放目录的写权限,以anonymous用户名登录后,相当于ftp用户的身份,ftp的登录目录为/var/ftp,开放这个目录的写权限:
chmod 777 /var/ftp,但是再重启服务并在服务器上用ftp登录时会出错,这是因为/var/ftp的权限不对所致,这个目录的权限是不能打开所有权限的。解决方法为在/var/ftp下再建一个目录,权限是777就可以了:
mkdir /var/ftp/pub
chmod 777 /var/ftp/pub
1.3开启防火墙和SELinux。
2.测试
ftp://IP
登录并创建文件
2、hostigation的128M内存KVM的VPS如何安装CentOS系统?
At any requested input, hit return to accept the default response. Once the cd is fully booted, it is time to prepare it to preform the image restore to your disk space by entering the following commands.启动后一路回车,使用默认值启动。使用下列命令恢复CentOS到硬盘:/etc/init.d/rpc.statd restartmkdir /mnt/sysmount lanas.hostigation.com:/mnt/volgroup00/logvol00/kvm /mnt/sys *** or 或者 ***mount rhnas.hostigation.com:/mnt/exports/exports/kvm /mnt/sysdd_rescue /mnt/sys/CentOS-5.6-i386.img /dev/sda *** or 或者 ***dd_rescue /mnt/sys/CentOS-6.0-i386.img /dev/sdaWith the above, you have some choices to make, if your VPS is in Los Angeles, you will want to select the line with lanas.hostigation.com otherwise the line with rhnas.hostigation.com for Rock Hill SC. Also, depending which version of CentOS you wish to install will determine your other selection.执行命令时会出现一些选项,如果你的KVM在Los Angeles 就选择 lanas.hostigation.com,在Rock Hill SC就选择rhnas.hostigation.com。还有一些其它选项,相应的做出选择就行了。 Once the restore has finished, back in SolusVM insure your Hard Drive is set to boot first in the boot order and click reboot, these images are set to use DHCP to obtain your IP address and the default root password is set to t3mp4n0w! please change this as soon as logging in the first time.镜像恢复完毕后,到SolusVM控制面板将Hard Drive(硬盘)设置为第一启动顺序。然后重启,系统会自动获取IP地址,默认的root密码是t3mp4n0w。登录后请立即修改root密码! One problem has been found that may effect your image, if after your first boot you have no networking, check dmesg and see if it renamed eth0 to eth1, if so如果出现没有网络连接的意外情况,可能是网卡被命名为eth1导致的,执行下面命令解决rm /etc/udev/rules.d/70-persisent-net-rules and reboot.然后执行reboot重启系统。
3、我的vps已安装了centos-7.6-x86_64,怎样安装php扩展?
为了让网站成功运行,就需要在php中增加bcmath这个扩展(其实默认的php中已经存在bcmath扩展,但是没有安装编译)
安装php的扩展bcmath具体步骤如下(以下操作均在wdcp 2.4的环境中):
1、ssh登陆vps控制台后,进入要安装的扩展的源码目录:cd /root/lanmp/php-5.2.17/ext/bcmath
2、运行phpize,这是wdcp中的路径: /www/wdlinux/php/bin/phpize
出现如下提示:
configuring for:
php api version:
20041225
zend mole api no: 20060613
zend extension api no: 220060519
3、编译安装:
./configure --with-php-config=/www/wdlinux/php/bin/php-config
make
make install
4、增加到配置文件php.ini里
vi /www/wdlinux/etc/php.ini
在最后增加:extension=bcmath.so
5、重启服务
service httpd restart
service nginxd restart
然后就大功告成
4、VPS上安装centos7合适么?怎么配置优化lnmp环境
vps很多地方的镜像文件还没有centos7把
lamp都可以安装只是变化了一些,mysql暂时用mariadb-serve替换
但是命令变化了很多
5、学习:如何在VPS上安装和访问CentOS 7远
vps已经为你装好了系统的,直接用ssh软件比如putty,xshell链接就行了
6、今天开通vps,安装Centos的系统,默认什么都没有,然后安装了webmin,按百度说明,简单的安装,但是最后
没用过webmin
查看http和mysql服务是否已启动
ps aux|grep httpd
ps aux|grep mysqld
或者直接重启下这2个服务
service httpd start
service mysqld start
然后看看webmin服务是否启动了
service webmin start
7、vps一般安装什么版本centos
现在一般用的比较多的是6.X版本,6.2、6.4的都是可以,这个主要还是看你想要什么具体的版本。你可以直接问VPS商家,让他们推荐。不过一般不建议用最新的版本,最新的往往不稳定。
主机侦探论坛为您解答!
8、如何知道vps中的centos系统下都安装了什么?
rpm -qa 类似这样的
9、CentOS 怎么搭建VPS?需要哪些软件?
centos可以装openvz的环境,也可以装xen或者kvm技术的。具体安装办法你搜索这些软件名称,就有了,推荐先用openvz的熟悉下看看。
10、如何在VPS上安装和访问CentOS 7远程桌面
确保你的VPS实例有至少1GB的内存。不然,CentOS将会在你访问远程桌面的时候会崩溃。
第一步: 安装CentOS桌面
如果你现在安装的CentOS版本是没有桌面的最小版本,你需要先在VPS上安装桌面(比如GNOME)。比如,DigitalOcean的镜像就是最小版本,它需要如下安装桌面GUI
# yum groupinstall "GNOME Desktop"
在安装完成之后重启VPS。
第二步:安装和配置VNC服务器
接下来就是安装和配置VNC服务器。我们使用的是TigerVNC,一个开源的VNC服务实现。
# yum install tigervnc-server
现在创建一个用户账户(比如:xmolo)用来访问远程桌面。
# useradd xmolo
# passwd xmolo
当一个用户尝试使用VNC访问远程桌面时,VNC守护进程就会启动来处理这个请求。这意味着你需要为每个用户创建一个独立的VNC配置文件。
CentOS依靠systemd来管理和配置系统服务。所以我们将使用systemd来为用户xmolo配置VNC服务器。
首先让我们使用下面任意一条命令来检查VNC服务器的状态。
# systemctl status vncserver@:.service
# systemctl is-enabled [email protected]
默认的,刚安装的VNC服务并没有激活(禁用)。
现在复制一份通用的VNC服务文件来为用户xmolo创建一个VNC服务配置。
# cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service
用本文编辑器来打开配置文件,用实际的用户名(比如:xmolo)来替换[Service]下面的。同样。在ExecStart后面追加 "-geometry " 参数。最后,要修改下面“ExecStart”和“PIDFile”两行。
# vi /etc/systemd/system/vncserver@:1.service
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l xmolo -c "/usr/bin/vncserver %i -geometry 1024x768"
PIDFile=/home/xmolo/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
现在为用户xmolo设置密码(可选)。首先切换到该用户,并运行vncserver命令。
# su - xmolo
# vncserver
你会被提示输入用户的VNC密码。密码设置完成后,你下次需要用这个密码来访问你的远程桌面。
最后,重新加载服务来使新的VNC配置生效:
# systemctl daemon-reload
在启动时自动启动VNC服务:
# systemctl enable vncserver@:1.service
检查vnc服务正在监听的端口:
# netstat -tulpn | grep vnc
端口5901是VNC默认的客户端连接到VNC服务器使用的端口。
第三步:通过SSH连接到远程桌面
从设计上说,VNC使用的远程帧缓存(RFB)并不是一种安全的协议,那么在VNC客户端上直接连接到VNC服务器上并不是一个好主意。任何敏感信息比如密码都可以在VNC流量中被轻易地泄露。因此,我强烈建议使用SSH隧道来加密你的VNC流量。
在你要运行VNC客户端的本机上,使用下面的命令来创建一个连接到远程VPS的SSH通道。当被要输入SSH密码时,输入用户的密码。
$ ssh xmolo@<VPS-IP-address>-L 5901:127.0.0.1:5901
用你自己的VNC用户名来替换“xmolo”,并填上你自己的VPS IP地址。
一旦SSH通道建立之后,远程VNC流量就会通过ssh通道路由并发送到127.0.0.1:5901。
现在启动你最爱的VNC客户端(比如:vinagre),来连接到127.0.0.1:5901。
你将被要求输入VNC密码。当你输入VNC密码时,你就可以安全地连接到CentOS的远程桌面了。