最超值的手机网站建设photoshop 网站设计

当前位置: 首页 > news >正文

最超值的手机网站建设,photoshop 网站设计,湛江做网站建设,建网站英文文章目录敏捷持续集成是什么#xff1f;linux安装jdk和maven安装jdk安装mavenlinux安装nexus3.xnexus私服的使用编译安装mysql可能遇到的问题使用cmake时报错敏捷持续集成是什么#xff1f; 持续集成是一种软件开发实践#xff0c;即团队开发成员经常集成他们的工作#x… 文章目录敏捷持续集成是什么linux安装jdk和maven安装jdk安装mavenlinux安装nexus3.xnexus私服的使用编译安装mysql可能遇到的问题使用cmake时报错敏捷持续集成是什么 持续集成是一种软件开发实践即团队开发成员经常集成他们的工作通过每个成员每天至少集成一次也就意味着每天可能会发生多次集成。每次集成都通过自动化的构建包括编译发布自动化测试来验证从而尽早地发现集成错误。 好处 节省人力成本加快软件开发进度实时交付 整体流程 成员通过git提交代码–》持续集成引擎来去代码并使用构建工具自动构建–》发布项目 重要组成部分 gitgitlabjenkins 持续集成引擎maven 构建工具sonarqube 代码质量管理junit 自动执行单元测试JDKTomcat 几个war–》微服务架构 linux安装jdk和maven 安装jdk1.8和maven3.9.1当前最新 安装jdk 下载地址https://www.oracle.com/java/technologies/downloads/ 1、下载后的安装包传输到虚拟机文件夹中 2、解压到/usr/local/目录下tar -zxvf jdk-8u361-linux-x64.tar.gz -C /usr/local/ 3、修改环境变量vim /etc/profile并在最下面填写 export JAVA_HOME/usr/local/jdk export JRE_HOME\(JAVA_HOME/jre export CLASSPATH\)JAVA_HOME/lib:\(JRE_HOME/lib:\)CLASSPATH export PATH\(JAVA_HOME/bin:\)JRE_HOME/bin:\(PATH4、激活配置source /etc/profile 5、验证安装成功java -version 安装maven 下载地址https://maven.apache.org/download.cgi 1、下载后的安装包传输到虚拟机文件夹中 2、解压到/usr/local/目录下tar -zxvf apache-maven-3.9.1-bin.tar.gz -C /usr/local/ 3、给解压后的文件改名mv apache-maven-3.9.1 maven 4、修改环境变量vim /etc/profile并在最下面填写 export MAVEN_HOME/usr/local/maven export PATH\)PATH:\(MAVEN_HOME/bin5、激活配置source /etc/profile 6、验证安装成功mvn -version linux安装nexus3.x 下载地址https://help.sonatype.com/repomanager3/product-information/download 1、上传到服务器/root/test/ 2、解压tar -zxvf nexus-3.50.0-01-unix.tar.gz -C /usr/local/ 3、修改配置文件 修改对应的端口确保这个端口是空闲的vim /usr/local/nexus-3.50.0-01/etc/nexus-default.properties 修改防火墙vim /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT 开放8081端口firewall-cmd --permanent --add-port80/tcp --permanent 4、进入目录/usr/local/nexus-3.50.0-01/bin启动nexus./nexus start 5、访问域名端口验证启动成功 6、默认登录名admin根据提示查看文件获取密码/usr/local/sonatype-work/nexus3/admin.password修改自定义密码 7、配置开机自启动 /etc/init.d目录下创建服务脚本nexus #!/bin/bash #chkconfig:2345 20 90 #description:nexus #processname:nexus export NEXUS_HOME/usr/local/nexus-3.50.0-01 case \)1 instart) su root \(NEXUS_HOME/bin/nexus start;;stop) su root \)NEXUS_HOME/bin/nexus stop;;status) su root \(NEXUS_HOME/bin/nexus status;;restart) su root \)NEXUS_HOME/bin/nexus restart;;dump ) su root \(NEXUS_HOME/bin/nexus dump ;;console ) su root \)NEXUS_HOME/bin/nexus console ;;*) echo require console | start | stop | restart | status | dump ;; esac给nexus脚本设置可执行权限chmod x /etc/init.d/nexus添加nexus服务chkconfig –add nexus添加开机自启动chkconfig nexus on 可以使用此类方式快捷使用服务service nexus status nexus私服的使用 仓库类型
proxy代理仓库用于代理远程仓库 group仓库组通常包含了多个代理仓库和宿主仓库在项目中只要引入仓库组就可以下载到代理仓库和宿主仓库中的包 hosted宿主仓库内部项目、付费jar​ releases 发布内部release版本的仓库​ snapshots 发布内部snapshots版本的仓库​ third 自建第三方jar 1、配置仓库代理http://maven.aliyun.com/nexus/content/groups/public/
2、使用本地maven配置验证nexus配置是否成功 修改maven目录下的conf/setting.xml ?xml version1.0 encodingUTF-8?settings xmlnshttp://maven.apache.org/SETTINGS/1.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsdlocalRepositoryD:SoftWareinstallIDEA2020apache-maven-3.6.1repository/localRepositorypluginGroups/proxies/serversserveridzyten-releases/idusernameadmin/usernamepasswordroot/password/serverserveridzyten-snapshots/idusernameadmin/usernamepasswordroot/password/server/serversmirrors/profilesprofileidzyten/idactivationactiveByDefaultfalse/activeByDefault/activation!– 私有库地址–repositoriesrepositoryidzyten/idurlhttp://10.24.200.10:8081/repository/maven-public//urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repository/repositories!–插件库地址–pluginRepositoriespluginRepositoryidzyten/idurlhttp://10.24.200.10:8081/repository/maven-public//urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepository/pluginRepositories/profile/profilesactiveProfilesactiveProfilezyten/activeProfile/activeProfiles /settings测试是否nexus搭建成功 新增 nexus私服验证成功
3、本地项目打包发到远程nexus私服pom添加本地没有的依赖看nexus会不会代理​ mvn deploy看是否成功推送至nexus pom配置id值要和setting.xml中对应 distributionManagementrepositoryidzyten-releases/idnameRuizhi Release Repository/nameurlhttp://10.24.200.10:8081/repository/maven-releases//url/repositorysnapshotRepositoryidzyten-snapshots/idnameRuizhi Snapshot Repository/nameurlhttp://10.24.200.10:8081/repository/maven-snapshots//url/snapshotRepository /distributionManagementmvn clean和mvn deploy 验证成功
编译安装mysql 下载地址https://mirrors.sohu.com/mysql/MySQL-5.7/ 下载到root/test/目录下 1、解压tar -zxvf mysql-5.7.37.tar.gz 2、安装相应的依赖yum install make cmake gcc gcc-c bison bison-devel ncurses ncurses-devel autoconf automake wget 3、下载boost mkdir /usr/local/boost cd /usr/local/boostwget http://www.sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz –no-check-certificate4、添加用户并创建相应目录存放数据 useradd mysql cd /home/mysql/ mkdir data logs temp​ chown -R mysql:mysql data logs temp5、进入mysql的解压目录cd /root/test/mysql-5.7.37/并执行cmake cmake
-DCMAKE_INSTALL_PREFIX/usr/local/mysql
-DMYSQL_UNIX_ADDR/usr/local/mysql/mysql.sock
-DDEFAULT_CHARSETutf8
-DDEFAULT_COLLATIONutf8_general_ci
-DWITH_MYISAM_STORAGE_ENGINE1
-DWITH_INNOBASE_STORAGE_ENGINE1
-DWITH_ARCHIVE_STORAGE_ENGINE1
-DWITH_BLACKHOLE_STORAGE_ENGINE1
-DWITH_MEMORY_STORAGE_ENGINE1
-DWITH_READLINE1
-DENABLED_LOCAL_INFILE1
-DMYSQL_DATADIR/home/mysql/data
-DMYSQL_USERmysql
-DMYSQL_TCP_PORT3306
-DWITH_BOOST/usr/local/boost6、使用make进行编译​使用make install进行安装
7、修改mysql安装目录权限chown -R mysql:mysql /usr/local/mysql 8、配置权限vi /etc/profile添加mysql目录export PATH/usr/local/mysql/bin:/usr/local/mysql/lib:$PATH配置生效source /etc/profile 9、初始化mysqlmysqld –initialize –usermysql –basedir/usr/local/mysql –datadir/home/mysql/data产生密码[kkgTgwx-4st]
10、删除/etc下的my.cnfrm /etc/my.cnf 11、复制服务启动脚本cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql 12、启动 MySQL 服务service mysql start
13、设置mysql服务开机自启动chkconfig mysql on 14、登陆mysql并设置可远程登陆mysql -u root -p 粘贴初始化时产生的临时密码[kkgTgwx-4st]
GRANT ALL PRIVILEGES ON . TO root% IDENTIFIED BY zyten WITH GRANT OPTION; 此时不让改提示要先设置下密码​SET PASSWORD PASSWORD(zyten);​ ALTER USER rootlocalhost PASSWORD EXPIRE NEVER;​ flush privileges;​
exit; ​ 重新登陆使用刚刚设置的密码​mysql -u root -p登陆完成之后即可设置允许远程登陆​GRANT ALL PRIVILEGES ON . TO root% IDENTIFIED BY zyten WITH GRANT OPTION;
15、进入文件vim /etc/sysconfig/iptables加入-A INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT重启防火墙服务service iptables restart开启防火墙端口 16、使用连接工具测试远程连接验证成功 可能遇到的问题 使用cmake时报错 cmake编译会有缓存每次编译前要清下缓存rm CMakeCache.txt