代码拉取完成,页面将自动刷新
同步操作将从 awakenjoys/Auto_Install_console 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding:utf8 -*-
#导入各模块
from core import *
from config import *
from account import *
from init import *
from iptables import *
from java import *
from mysql import *
from redis import *
#----------------------------------------------------------------------------------------
#主函数
if __name__ == "__main__":
server = "192.168.100.100"
port = 22
username = "root"
password = "kuentech"
account = "hartnett"
passwd = "hartnett999"
newpasswd = "hartnett123456"
iptables_file = "kuen_firewall.sh"
iptables_template = "basic/iptables/iptables.tpl"
ntpserver = "210.72.145.44" #国家授时中心服务器IP地址
start_area = 1
end_area = 2
add_account(server, port, username, password, account, passwd)
modify_pass(server, port, username, password, account, newpasswd)
del_account(server, port, username, password, account)
#set_iptables(server, port, username, password, iptables_file, iptables_template)
set_hostname(server, port, username, password, 'kuen_server06')
set_ntpserver(server, port, username, password, ntpserver)
set_history(server, port, username, password) #profile也在里面
#set_nameserver(server, port, username, password)
set_limlits(server, port, username, password)
#Install_Java(server, port, username, password, start_area, end_area)
#Install_mysql(server, port, username, password, start_area, end_area)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。