时间:2023-05-31 10:42:01 | 来源:网站运营
时间:2023-05-31 10:42:01 来源:网站运营
【转】个人网站搭建之服务器环境搭建:tar -xzvf nginx-1.13.9.tar.gz cd nginx-1.13.9mkdir /usr/local/nginx./configure --prefix=/usr/local/nginx make && make install
sudo ln -s /usr/local/nginx/sbin/ngin /usr/bin/nginx
nginx
tar xvJf node.tar.xz
sudo ln -s /usr/local/node/bin/node /usr/local/bin/nodesudo ln -s /usr/local/node/bin/npm /usr/local/bin/npm现在就可以愉快地使用npm和node啦
tar -zxvf mysql-5.7.21-linux-glibc2.12-x86_64.tar.gz
mv mysql-5.7.21-linux-glibc2.12-x86_64 /usr/local/mysql
cat /etc/group | grep mysql
chown -R mysql mysqlchgrp -R mysql mysql
cd /usr/local/mysql/bin/生成临时密码:./mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data ./mysql_ssl_rsa_setup--datadir=/usr/local/mysql/data
touch /etc/my.cnf
vim /etc/my.cnf
basedir=/usr/local/mysql/ datadir=/usr/local/mysql/data/
./mysqld_safe --user=mysql &
cd bin
./mysql -uroot -p
mysql> set password=password("123456");
exit;
关键词:服务,环境