一、常用命令
远程下载网站程序的命令:
解压缩命令:
zip:unzip xxx.zip
tar.gz:tar xvfz xxx.tar.gz
二、discuz相关
关于discuz伪静态
如果是老版本的不是X系列的 请在绑定域名的时候再伪静态规则中输入discuz,如果是X系列的,请输入discuzx。如果你已经选择错误了没有关系,请/usr/local/nginx/conf/vhost/中找到你的绑定域名配置文件。
修改配置文件中的:
include discuz.conf:
更改为
include discuzx.conf;
三、关于在WordPress中自动更新版本或者插件提示输入FTP信息的解决方法
直接在SSH中输入命令:
chown -R www /home/wwwroot/xxx.com
xxx.com为你的域名绑定目录,这其实是一条赋予你目录权限的命令,当你安装其他程序提示找不到目录or没有权限时可以使用词条命令来赋予权限解决问题
四、无法调用php函数发送邮件的
1.安装sendmail
yum install sendmail
2.启动sendmail
service sendmail start
3.设置为auto start
chkconfig sendmail on
4.重启lnmp
/root/lnmp restart
暂时到此…