systemctl stop firewalld
setenforce 0
vim /etc/sysconfig/network-scripts/ifcfg-ens33
systemctl restart network
ping baidu.com
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum -y install epel-release
yum -y install nginx
systemctl start nginx
ss -nplt | grep 80
yum -y install mysql-community-server
systemctl start msyqld
mysqladmin -p"`awk '/temporary password/{p=$NF}END{print p}' /var/log/mysqld.log`" password 'Xiaoxue@123'
yum -y install php php-fpm php-curl php-intl php-mcrypt php-mysql php-mbstring php-xml php-dom php-gd gd
tar -xf jdk-8u211-linux-x64.tar.gz
mv jdk1.8.0_211/ /usr/jdk
vim /etc/profile
export PATH =/usr/jdk/bin:$PATH
使配置文件生效
source /etc/profile
java -version
tar -xf zjwy.tar.gz -C /
cp -r /www/wwwroot/yixiaw/* /usr/share/nginx/html/
vim /usr/share/nginx/html/index.html
vim /opt/server/100001/Application.properties
vim /opt/server/apache-tomcat-8080/conf/context.xml
mysqladmin -p'Xiaoxue@123' password 'jgirlstest'
vim /etc/my.cnf
validate_password=OFF
systemctl restart mysqld
create database jgirls_test default charset "utf8";
use jgirls_test
source /root/jgirls_test.sql;
UPDATE `jgirls_test`.`system` SET `id`='1', `data`='{\"version\":\"1.0.0.0\",\"resVersion\":\"1.0.0.0.0.0.0.0\",\"areas\":[{\"id\":100001,\"name\":\"云计算1\",\"host\":\"ip地址\",\"port\":10090,\"status\":2},{\"id\":100002,\"name\":\"www.QFetu.com\",\"host\":\"ip地址\",\"port\":10100,\"status\":1}],\"globalStatus\":1,\"versionStr\":\"\",\"whiteListWhenMaintenance\":\",\",\"declaration\":[{\"declarationTitle\":\"云计算\",\"declarationCotent\":\"www.QF.com\"},{\"declarationTitle\":\"公告标题2\",\"declarationCotent\":\"公告内容2\"},{\"declarationTitle\":\"公告标题3\",\"declarationCotent\":\"公告内容3\"}]}' WHERE (`id`='1');
cd /opt/server/mongodb-linux-x86_64-rhel70-3.2.9/ && ./start.sh
cd /opt/server/AdminNew/ && ./restart.sh
sh /opt/server/apache-tomcat-8080/bin/startup.sh
cd /opt/server/chatserver/ && ./start.sh
cd /opt/server/100001/ && ./start.sh start
浏览器访问ip地址