您的位置:首页 > 其它

阿里云的一些奇怪问题

2016-01-21 20:32 351 查看
1、session貌似无法设置

<?php

echo ini_get("session.save_path");

echo var_dump(is_writeable(ini_get("session.save_path")));

?>

第一个是返回session路径,第二个如果返回false代表目录不存在或者没有写入权限

2、mysql启动报错

/etc/init.d/mysqld start

Starting MySQL. ERROR! The server quit without updating PID file (/alidata/server/mysql/data/AY140409190102955e73Z.pid
http://www.jb51.net/article/48625.htm
参照上面的问题,但我这个问题原因是log目录不存在

查看/etc/my.cnf文件,log-error=/alidata/log/mysql/error.log,建立这个目录并赋予权限就OK了

3、关于阿里云服务器的安装参照这个帖子
http://www.cnblogs.com/ada-zheng/p/3724957.html
各个服务操作命令汇总:

nginx:

/etc/init.d/nginx start/stop/restart/reload)

apache:

/etc/init.d/httpd start/stop/restart/...

mysql:

/etc/init.d/mysqld start/stop/restart/...

php-fpm:

/etc/init.d/php-fpm start/stop/restart/...

ftp:

/etc/init.d/vsftpd start/stop/restart/...

比如启动nginx:

/etc/init.d/nginx start
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: