Godaddy VDS使用入门教程

版权声明:转载 Godaddy VDS使用入门教程 时请以超链接形式标明文章出自 正确的方法 !!!
https://cn.chinese-blog.org/godaddy-vds-ru-men-jiao-cheng/

本人是准菜鸟一个, Linux的基础为零(Windows就不考虑了), 不过英文教程基本看得懂, 一些简单的SSH远程管理操作其实也不难.

如果你也象我一样的基础, 也想使用VDS或 Dedicated server, 最好先把相关英文教程通读一遍, 可能很多问题自己就可以解决了. 更加重要的是, 你可能从此就踏入了Linux的世界…

作者 海云青飞:哲学家,生命科学家,传统文化第一人,唯一悟道者 《悟道相对论》《中医有毒吗》《黄帝内经是真的吗》《父母怎么教育孩子》

下面是自己的一些学习总结, 希望能帮助到一些朋友.

GoDaddy相关教程

  • 下载VDS pdf教程:

    http://products.secureserver.net/guides/vdhlin_scp.pdf 注意,教程中有些内容有实际略有出入.

  • VDS帮助中心

    http://help.godaddy.com/topic_list.php?topic_id=60

服务器相关文档路径:

You can use the Linux which command to return the location of binaries defined in your PATH environment variable. Its syntax is shown below:

which application name

perl /usr/bin/perl php /usr/bin/php sendmail /usr/sbin/sendmail

Below are the locations of important control panel-dependent paths:

cPanel HTTP Document Root /home//public_html/ HTTPS Document Root /home//public_html/ CGI-BIN /home//public_html/cgi-bin/ HTTP Logs /usr/local/apache/domlogs/

Simple Control Panel HTTP Document Root /home//public_html/ HTTPS Document Root /home//public_html/ CGI-BIN /home//public_html/cgi-bin/ HTTP Logs /var/log/httpd/

Plesk version 7.5.3 and below HTTP Document Root /home/httpd/vhosts//httpdocs/ HTTPS Document Root /home/httpd/vhosts//httpsdocs/ CGI-BIN /home/httpd/vhosts//cgi-bin/ HTTP Logs /home/httpd/vhosts//statistics/logs/ Plesk version 7.5.4 and above HTTP Document Root /var/www/vhosts//httpdocs/ HTTPS Document Root /var/www/vhosts//httpsdocs/ CGI-BIN /var/www/vhosts//cgi-bin/ HTTP Logs /var/www/vhosts//statistics/logs/

No control panel HTTP Document Root /etc/httpd/htdocs/ HTTPS Document Root /etc/httpd/htdocs/ CGI-BIN /etc/httpd/cgi-bin/ HTTP Logs /etc/httpd/logs/

/etc/php.ini /etc/httpd/conf/httpd.conf

mysql目录:

/usr/lib/mysql /usr/bin/mysql /usr/share/mysql /usr/include/mysql /var/lib/mysql

php目录

/usr/include/php /usr/lib/php /usr/bin/php /usr/share/php /var/lib/php

smtp:

/usr/sbin/sendmail.exim /usr/sbin/sendmail.postfix /usr/sbin/sendmail /usr/lib/mailman/tests/bounces/sendmail_01.txt /usr/lib/sendmail.exim /usr/lib/sendmail.postfix /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz /usr/share/man/man1/sendmail.postfix.1.gz

/usr/lib/python2.4/smtpd.pyc /usr/lib/python2.4/smtpd.pyo /usr/lib/python2.4/smtpd.py /usr/lib/sasl/smtpd.conf /usr/lib/sasl2/smtpd.conf.tpsave /usr/lib/sasl2/smtpd.conf /usr/share/turbopanel/skel/postfix/smtpd.conf /usr/share/man/man8/smtpd.8.gz /usr/libexec/postfix/smtpd /var/turbopanel/uninstall/sasl2/smtpd.conf

/usr/sbin/saslauthd /etc/rc.d/init.d/saslauthd /etc/sysconfig/saslauthd /var/lock/subsys/saslauthd /var/run/saslauthd

SSH远程操作常用命令:

  • 重启httpd:

    /sbin/service httpd restart

  • 启动mailman(Plesk)

    /sbin/service mailman start

  • 重启服务器:

    su- reboot

SSH远程修改PHP.in示例

这是我第一次使用vi, 感觉一点也不难, :>

  • 用SSH远程连接到VDS
  • 执行su –, 然后输入密码获得root权限
  • 执行 vi /etc/php.ini
  • 执行/safe_mode查找safe_字符串
  • 按i切换到插入模式
  • 按$移动到行末
  • 修改字符串
  • 按ESC返回到命令模式
  • 执行:wq保存并退出
  • 然后重启server使修改生效

删除全部:

光标移到第一行 :.,$d 冒号+一个点+一个逗号+一个$+一个d再回车

SSH远程连接数据库

su
mysql -uroot -p 

一些链接:

Module mod_rewrite URL Rewriting Engine

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Which php libraries are installed by default on my Virtual Dedicated Server?

http://help.godaddy.com/article.php?article_id=2587&topic_id=92

What Software is Installed on my Virtual Dedicated Server

http://help.godaddy.com/article.php?article_id=152&topic_id=92

禁止递归域名查询(一般用不到)

http://help.godaddy.com/article.php?article_id=1194&prog_id=GoDaddy&isc=

su -
cd /tmp/
wget -O rdnsfix http://products.secureserver.net/scripts/rdnsfix
php -c /r rdnsfix

godaddy dns 服务器

NS43.DOMAINCONTROL.COM, NS44.DOMAINCONTROL.COM
Godaddy VDS使用入门教程
https://cn.chinese-blog.org/godaddy-vds-ru-men-jiao-cheng/

相关文章: