ssh shellp@8.142.*.* ssh 用户@外网ip地址(需要开启22端口)
在有些时候,可能会出现以下错误。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:7yVHadMS/5fRzMSD2TG7OLpRPUKNFSfn8dKMHOb905k. Please contact your system administrator. Add correct host key in /home/shellp/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/shellp/.ssh/known_hosts:1 remove with: ssh-keygen -f "/home/shellp/.ssh/known_hosts" -R "8.142.*.*" ECDSA host key for 8.142.*.* has changed and you have requested strict checking. Host key verification failed.
解决办法将报错的.ssh/known_hosts文件删除即可。
2.安装Apache:在Ubuntu安装不用费尽周折,很简单就可以安装完成了哦。
apt-get install apache2 ##安装apahce2 systemctl status apache2 ##查看apache2服务状态
状态处于活动中就可以使用外网ip访问了。(安全组需要80端口规则)
3.安装MysqlMysql deb软件包地址https://dev.mysql.com/downloads/repo/apt/ 顺带将文件超链接复制了。
使用wget 下载至服务器
wget https://dev.mysql.com/get/mysql-apt-config_0.8.17-1_all.deb dpkg -i mysql-apt-config_0.8.17-1_all.deb
执行dpkg -i 后显示:
这里的话根据自己的实际情况而定,我直接选Ok。
apt-get update apt-get install mysql-community-server ##安装Mysql的核心,也就是服务端
根据提示输入Mysql密码
登陆Mysql并且创建库
mysql -u root -p #输入密码。。。。 alter user 'root'@'localhost' identified by 'CH412.9458.@7&66'; #修改一下密码,是因为我原先密码太简单了。 create database wordpress; ##创建库4.安装PHP
apt-get install php apt-get install php-fpm
下载WordPress压缩包解压更改wp-config文件
wget https://cn.wordpress.org/latest-zh_CN.tar.gz ##下载 tar -xzvf latest-zh_CN.tar.gz ##解压 cd wordpress ##定位至wordpress文件夹 mv wp-config-sample.php wp-config.php ##文件改名
编辑配置文件
database_name_here 改成数据库库名
username_here 改成数据库用户名
password_here 改成数据库密码
改好移动全部文件到Web服务器的目录下
mv * /var/www/html
WordPress已经移动至/var/www/html目录下了,无法进行安装。报错:“您的PHP似乎没有安装运行WordPress所必需的MySQL扩展”。解决方法如下:
apt-get install php-mysql systemctl stop apache2 systemctl start apache2
接下来就可以对WordPress安装与配置了,有关WordPress相关帮助文档可以参照官网等等。
定位/var目录chown -R www-data:www-data www
//更改用户根用户组
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)